CbmRoot
CbmAnaConversionPhotons2.h
Go to the documentation of this file.
1 
9 #ifndef CBM_ANA_CONVERSION_PHOTONS2
10 #define CBM_ANA_CONVERSION_PHOTONS2
11 
12 // included from ROOT
13 #include <TClonesArray.h>
14 #include <TH1.h>
15 #include <TH2.h>
16 #include <TH3.h>
17 #include <TStopwatch.h>
18 
19 // included from CbmRoot
20 #include "CbmKFVertex.h"
21 #include "CbmLitGlobalElectronId.h"
22 #include "CbmMCTrack.h"
23 #include "CbmVertex.h"
24 
25 #include <vector>
26 
28 
29 public:
31  virtual ~CbmAnaConversionPhotons2();
32 
33  void Init();
34  void InitHistos();
35  void Finish();
36  void Exec();
37 
38  void AnalyseElectronsReco();
40 
42 
43 
44 private:
45  TClonesArray* fRichPoints;
46  TClonesArray* fRichRings;
47  TClonesArray* fRichRingMatches;
48  TClonesArray* fMcTracks;
49  TClonesArray* fStsTracks;
50  TClonesArray* fStsTrackMatches;
51  TClonesArray* fGlobalTracks;
54 
55  std::vector<TH1*>
56  fHistoList_photons; // list of all histograms related to rich rings
57  std::vector<TH1*>
58  fHistoList_photons_withRICH; // list of all histograms related to rich rings
59  std::vector<TH1*>
60  fHistoList_photons_withRICH_withChi; // list of all histograms related to rich rings
61  std::vector<TH1*>
62  fHistoList_photons_withRICH_fromTarget; // list of all histograms related to rich rings
63 
64  std::vector<Int_t> fRecoTracklist_gtIndex;
65  std::vector<Int_t> fRecoTracklist_mcIndex;
66  std::vector<TVector3> fRecoTracklist_momentum;
67  std::vector<Double_t> fRecoTracklist_chi;
68  std::vector<CbmMCTrack*> fRecoTracklist_mctrack;
69 
70  std::vector<Int_t> fRecoTracklist_withRICH_gtIndex;
71  std::vector<Int_t> fRecoTracklist_withRICH_mcIndex;
72  std::vector<TVector3> fRecoTracklist_withRICH_momentum;
73  std::vector<Double_t> fRecoTracklist_withRICH_chi;
74  std::vector<CbmMCTrack*> fRecoTracklist_withRICH_mctrack;
75 
76 
77  // distribution of opening angles from reconstructed momenta
81 
82  // distribution of opening angles from reconstructed momenta, with application of opening angle cuts
86 
87  // histogram for comparison of different opening angle cuts and their influence on signal and background amounts
90 
94 
95 
96  // distribution of invariant masses from reconstructed momenta
100 
101  // distribution of invariant masses from reconstructed momenta with cut on opening angle
105 
106  // opening angle vs pt from reconstructed data
110 
111  // invariant mass vs pt from reconstructed data
115 
116 
117  // distribution of opening angles from reconstructed momenta, with RICH
121 
122 
123  // opening angle vs pt from reconstructed data, with RICH
127 
128 
129  // distribution of opening angles from reconstructed momenta, with RICH
133 
134 
135  // opening angle vs pt from reconstructed data, with RICH
139 
140 
141  // opening angle vs pt from reconstructed data, with RICH and with CHI-cut
154 
155 
156  // opening angle vs pt from reconstructed data, with RICH, from TARGET (z>1cm)
169 
170 
171  // crosscheck for full reco, or estimation of signal and background
172  std::vector<std::vector<int>> fVector_combinations;
174 
175  // timer
176  TStopwatch timer;
177  Double_t fTime;
178 
181 
182  ClassDef(CbmAnaConversionPhotons2, 1)
183 };
184 
185 #endif
CbmAnaConversionPhotons2::~CbmAnaConversionPhotons2
virtual ~CbmAnaConversionPhotons2()
Definition: CbmAnaConversionPhotons2.cxx:128
CbmVertex.h
CbmAnaConversionPhotons2::fMcTracks
TClonesArray * fMcTracks
Definition: CbmAnaConversionPhotons2.h:48
CbmAnaConversionPhotons2::fRichPoints
TClonesArray * fRichPoints
Definition: CbmAnaConversionPhotons2.h:45
CbmAnaConversionPhotons2::fh2Electrons_angleVSpt_combBack
TH2D * fh2Electrons_angleVSpt_combBack
Definition: CbmAnaConversionPhotons2.h:108
CbmAnaConversionPhotons2::fh2Electrons_invmassVSpt_withRICH_fromTarget_all
TH2D * fh2Electrons_invmassVSpt_withRICH_fromTarget_all
Definition: CbmAnaConversionPhotons2.h:166
CbmAnaConversionPhotons2::fh2Electrons_invmass_allSameG_cut
TH1D * fh2Electrons_invmass_allSameG_cut
Definition: CbmAnaConversionPhotons2.h:104
CbmAnaConversionPhotons2::fRichRingMatches
TClonesArray * fRichRingMatches
Definition: CbmAnaConversionPhotons2.h:47
CbmAnaConversionPhotons2::fh2Electrons_angle_allSameG
TH1D * fh2Electrons_angle_allSameG
Definition: CbmAnaConversionPhotons2.h:80
CbmAnaConversionPhotons2::fh2Electrons_angle_CUTcomparison_withRICH_chi
TH1I * fh2Electrons_angle_CUTcomparison_withRICH_chi
Definition: CbmAnaConversionPhotons2.h:92
CbmAnaConversionPhotons2::fRecoTracklist_chi
std::vector< Double_t > fRecoTracklist_chi
Definition: CbmAnaConversionPhotons2.h:67
CbmAnaConversionPhotons2::fPrimVertex
CbmVertex * fPrimVertex
Definition: CbmAnaConversionPhotons2.h:52
CbmAnaConversionPhotons2::fHistoList_photons_withRICH_withChi
std::vector< TH1 * > fHistoList_photons_withRICH_withChi
Definition: CbmAnaConversionPhotons2.h:60
CbmAnaConversionPhotons2
Definition: CbmAnaConversionPhotons2.h:27
CbmAnaConversionPhotons2::fh2Electrons_angleVSpt_withRICH_allSameG
TH2D * fh2Electrons_angleVSpt_withRICH_allSameG
Definition: CbmAnaConversionPhotons2.h:126
CbmAnaConversionPhotons2::EstimateFullRecoResults
void EstimateFullRecoResults()
Definition: CbmAnaConversionPhotons2.cxx:1562
CbmAnaConversionPhotons2::InitHistos
void InitHistos()
Definition: CbmAnaConversionPhotons2.cxx:186
CbmAnaConversionPhotons2::Finish
void Finish()
Definition: CbmAnaConversionPhotons2.cxx:901
CbmAnaConversionPhotons2::fStsTrackMatches
TClonesArray * fStsTrackMatches
Definition: CbmAnaConversionPhotons2.h:50
CbmAnaConversionPhotons2::fRecoTracklist_withRICH_chi
std::vector< Double_t > fRecoTracklist_withRICH_chi
Definition: CbmAnaConversionPhotons2.h:73
CbmAnaConversionPhotons2::fh2Electrons_angle_CUTcomparison_withRICH_withChi
TH1I * fh2Electrons_angle_CUTcomparison_withRICH_withChi
Definition: CbmAnaConversionPhotons2.h:93
CbmAnaConversionPhotons2::fh2Electrons_invmassVSpt_withRICH_withChi_allSameG
TH2D * fh2Electrons_invmassVSpt_withRICH_withChi_allSameG
Definition: CbmAnaConversionPhotons2.h:153
CbmAnaConversionPhotons2::fh2Electrons_fullrecoCheck
TH1I * fh2Electrons_fullrecoCheck
Definition: CbmAnaConversionPhotons2.h:173
CbmAnaConversionPhotons2::fh2Electrons_angle_CUTcomparison_chi
TH1I * fh2Electrons_angle_CUTcomparison_chi
Definition: CbmAnaConversionPhotons2.h:89
CbmAnaConversionPhotons2::fh2Electrons_angle_combBack
TH1D * fh2Electrons_angle_combBack
Definition: CbmAnaConversionPhotons2.h:79
CbmAnaConversionPhotons2::AnalyseElectronsRecoWithRICH
void AnalyseElectronsRecoWithRICH()
Definition: CbmAnaConversionPhotons2.cxx:1231
CbmAnaConversionPhotons2::fh2Electrons_invmass_combBack
TH1D * fh2Electrons_invmass_combBack
Definition: CbmAnaConversionPhotons2.h:98
CbmAnaConversionPhotons2::fh2Electrons_invmassVSpt_all
TH2D * fh2Electrons_invmassVSpt_all
Definition: CbmAnaConversionPhotons2.h:112
CbmAnaConversionPhotons2::fGlobalTracks
TClonesArray * fGlobalTracks
Definition: CbmAnaConversionPhotons2.h:51
CbmAnaConversionPhotons2::AnalyseElectronsReco
void AnalyseElectronsReco()
Definition: CbmAnaConversionPhotons2.cxx:1057
CbmAnaConversionPhotons2::fh2Electrons_angleVSpt_withRICH_all
TH2D * fh2Electrons_angleVSpt_withRICH_all
Definition: CbmAnaConversionPhotons2.h:124
CbmAnaConversionPhotons2::fh2Electrons_invmass_withRICH_all
TH1D * fh2Electrons_invmass_withRICH_all
Definition: CbmAnaConversionPhotons2.h:130
CbmAnaConversionPhotons2::fHistoList_photons_withRICH
std::vector< TH1 * > fHistoList_photons_withRICH
Definition: CbmAnaConversionPhotons2.h:58
CbmAnaConversionPhotons2::fRecoTracklist_momentum
std::vector< TVector3 > fRecoTracklist_momentum
Definition: CbmAnaConversionPhotons2.h:66
CbmAnaConversionPhotons2::fRecoTracklist_gtIndex
std::vector< Int_t > fRecoTracklist_gtIndex
Definition: CbmAnaConversionPhotons2.h:64
CbmAnaConversionPhotons2::fh2Electrons_angleVSpt_withRICH_withChi_all
TH2D * fh2Electrons_angleVSpt_withRICH_withChi_all
Definition: CbmAnaConversionPhotons2.h:145
CbmAnaConversionPhotons2::fh2Electrons_angle_withRICH_fromTarget_all
TH1D * fh2Electrons_angle_withRICH_fromTarget_all
Definition: CbmAnaConversionPhotons2.h:157
CbmAnaConversionPhotons2::fh2Electrons_invmassVSpt_withRICH_fromTarget_allSameG
TH2D * fh2Electrons_invmassVSpt_withRICH_fromTarget_allSameG
Definition: CbmAnaConversionPhotons2.h:168
CbmAnaConversionPhotons2::operator=
CbmAnaConversionPhotons2 operator=(const CbmAnaConversionPhotons2 &)
CbmAnaConversionPhotons2::fRecoTracklist_mcIndex
std::vector< Int_t > fRecoTracklist_mcIndex
Definition: CbmAnaConversionPhotons2.h:65
CbmAnaConversionPhotons2::fh2Electrons_invmass_all
TH1D * fh2Electrons_invmass_all
Definition: CbmAnaConversionPhotons2.h:97
CbmAnaConversionPhotons2::fRecoTracklist_withRICH_momentum
std::vector< TVector3 > fRecoTracklist_withRICH_momentum
Definition: CbmAnaConversionPhotons2.h:72
CbmAnaConversionPhotons2::fh2Electrons_angleVSpt_withRICH_combBack
TH2D * fh2Electrons_angleVSpt_withRICH_combBack
Definition: CbmAnaConversionPhotons2.h:125
CbmAnaConversionPhotons2::fh2Electrons_angle_withRICH_withChi_allSameG
TH1D * fh2Electrons_angle_withRICH_withChi_allSameG
Definition: CbmAnaConversionPhotons2.h:144
CbmAnaConversionPhotons2::fh2Electrons_invmass_withRICH_withChi_all
TH1D * fh2Electrons_invmass_withRICH_withChi_all
Definition: CbmAnaConversionPhotons2.h:148
CbmAnaConversionPhotons2::fh2Electrons_invmassVSpt_withRICH_allSameG
TH2D * fh2Electrons_invmassVSpt_withRICH_allSameG
Definition: CbmAnaConversionPhotons2.h:138
CbmAnaConversionPhotons2::fh2Electrons_angle_combBack_cuts
TH1D * fh2Electrons_angle_combBack_cuts
Definition: CbmAnaConversionPhotons2.h:84
CbmAnaConversionPhotons2::fh2Electrons_angle_withRICH_fromTarget_combBack
TH1D * fh2Electrons_angle_withRICH_fromTarget_combBack
Definition: CbmAnaConversionPhotons2.h:158
CbmAnaConversionPhotons2::CbmAnaConversionPhotons2
CbmAnaConversionPhotons2(const CbmAnaConversionPhotons2 &)
CbmAnaConversionPhotons2::fh2Electrons_angle_withRICH_allSameG
TH1D * fh2Electrons_angle_withRICH_allSameG
Definition: CbmAnaConversionPhotons2.h:120
CbmAnaConversionPhotons2::fh2Electrons_angle_withRICH_combBack
TH1D * fh2Electrons_angle_withRICH_combBack
Definition: CbmAnaConversionPhotons2.h:119
CbmAnaConversionPhotons2::fh2Electrons_invmass_withRICH_fromTarget_all
TH1D * fh2Electrons_invmass_withRICH_fromTarget_all
Definition: CbmAnaConversionPhotons2.h:163
CbmAnaConversionPhotons2::fh2Electrons_angle_withRICH_fromTarget_allSameG
TH1D * fh2Electrons_angle_withRICH_fromTarget_allSameG
Definition: CbmAnaConversionPhotons2.h:159
CbmAnaConversionPhotons2::fh2Electrons_invmassVSpt_allSameG
TH2D * fh2Electrons_invmassVSpt_allSameG
Definition: CbmAnaConversionPhotons2.h:114
CbmAnaConversionPhotons2::fTime
Double_t fTime
Definition: CbmAnaConversionPhotons2.h:177
CbmVertex
Definition: CbmVertex.h:26
CbmAnaConversionPhotons2::fRichRings
TClonesArray * fRichRings
Definition: CbmAnaConversionPhotons2.h:46
CbmAnaConversionPhotons2::fh2Electrons_angleVSpt_withRICH_withChi_allSameG
TH2D * fh2Electrons_angleVSpt_withRICH_withChi_allSameG
Definition: CbmAnaConversionPhotons2.h:147
CbmAnaConversionPhotons2::fh2Electrons_angle_withRICH_all
TH1D * fh2Electrons_angle_withRICH_all
Definition: CbmAnaConversionPhotons2.h:118
CbmAnaConversionPhotons2::fh2Electrons_angleVSpt_all
TH2D * fh2Electrons_angleVSpt_all
Definition: CbmAnaConversionPhotons2.h:107
CbmAnaConversionPhotons2::fh2Electrons_angle_CUTcomparison
TH1I * fh2Electrons_angle_CUTcomparison
Definition: CbmAnaConversionPhotons2.h:88
CbmAnaConversionPhotons2::fh2Electrons_angle_all
TH1D * fh2Electrons_angle_all
Definition: CbmAnaConversionPhotons2.h:78
CbmAnaConversionPhotons2::fRecoTracklist_withRICH_mctrack
std::vector< CbmMCTrack * > fRecoTracklist_withRICH_mctrack
Definition: CbmAnaConversionPhotons2.h:74
CbmAnaConversionPhotons2::fRecoTracklist_mctrack
std::vector< CbmMCTrack * > fRecoTracklist_mctrack
Definition: CbmAnaConversionPhotons2.h:68
CbmAnaConversionPhotons2::fRecoTracklist_withRICH_gtIndex
std::vector< Int_t > fRecoTracklist_withRICH_gtIndex
Definition: CbmAnaConversionPhotons2.h:70
CbmAnaConversionPhotons2::fh2Electrons_angle_allSameG_cuts
TH1D * fh2Electrons_angle_allSameG_cuts
Definition: CbmAnaConversionPhotons2.h:85
CbmAnaConversionPhotons2::CbmAnaConversionPhotons2
CbmAnaConversionPhotons2()
Definition: CbmAnaConversionPhotons2.cxx:40
CbmAnaConversionPhotons2::fh2Electrons_invmass_withRICH_withChi_allSameG
TH1D * fh2Electrons_invmass_withRICH_withChi_allSameG
Definition: CbmAnaConversionPhotons2.h:150
CbmAnaConversionPhotons2::fh2Electrons_angleVSpt_allSameG
TH2D * fh2Electrons_angleVSpt_allSameG
Definition: CbmAnaConversionPhotons2.h:109
CbmAnaConversionPhotons2::fh2Electrons_angle_CUTcomparison_withRICH
TH1I * fh2Electrons_angle_CUTcomparison_withRICH
Definition: CbmAnaConversionPhotons2.h:91
CbmAnaConversionPhotons2::fHistoList_photons
std::vector< TH1 * > fHistoList_photons
Definition: CbmAnaConversionPhotons2.h:56
CbmAnaConversionPhotons2::Exec
void Exec()
Definition: CbmAnaConversionPhotons2.cxx:937
CbmAnaConversionPhotons2::timer
TStopwatch timer
Definition: CbmAnaConversionPhotons2.h:176
CbmAnaConversionPhotons2::Init
void Init()
Definition: CbmAnaConversionPhotons2.cxx:131
CbmAnaConversionPhotons2::fh2Electrons_invmassVSpt_withRICH_withChi_all
TH2D * fh2Electrons_invmassVSpt_withRICH_withChi_all
Definition: CbmAnaConversionPhotons2.h:151
CbmAnaConversionPhotons2::fh2Electrons_invmassVSpt_withRICH_combBack
TH2D * fh2Electrons_invmassVSpt_withRICH_combBack
Definition: CbmAnaConversionPhotons2.h:137
CbmAnaConversionPhotons2::fHistoList_photons_withRICH_fromTarget
std::vector< TH1 * > fHistoList_photons_withRICH_fromTarget
Definition: CbmAnaConversionPhotons2.h:62
CbmAnaConversionPhotons2::fh2Electrons_angle_withRICH_withChi_all
TH1D * fh2Electrons_angle_withRICH_withChi_all
Definition: CbmAnaConversionPhotons2.h:142
CbmMCTrack.h
CbmAnaConversionPhotons2::fh2Electrons_invmass_allSameG
TH1D * fh2Electrons_invmass_allSameG
Definition: CbmAnaConversionPhotons2.h:99
CbmAnaConversionPhotons2::fh2Electrons_invmassVSpt_withRICH_all
TH2D * fh2Electrons_invmassVSpt_withRICH_all
Definition: CbmAnaConversionPhotons2.h:136
CbmAnaConversionPhotons2::fh2Electrons_invmass_combBack_cut
TH1D * fh2Electrons_invmass_combBack_cut
Definition: CbmAnaConversionPhotons2.h:103
CbmAnaConversionPhotons2::fh2Electrons_invmass_withRICH_allSameG
TH1D * fh2Electrons_invmass_withRICH_allSameG
Definition: CbmAnaConversionPhotons2.h:132
CbmAnaConversionPhotons2::fh2Electrons_angleVSpt_withRICH_fromTarget_allSameG
TH2D * fh2Electrons_angleVSpt_withRICH_fromTarget_allSameG
Definition: CbmAnaConversionPhotons2.h:162
CbmAnaConversionPhotons2::fh2Electrons_angleVSpt_withRICH_withChi_combBack
TH2D * fh2Electrons_angleVSpt_withRICH_withChi_combBack
Definition: CbmAnaConversionPhotons2.h:146
CbmAnaConversionPhotons2::fh2Electrons_invmass_withRICH_fromTarget_combBack
TH1D * fh2Electrons_invmass_withRICH_fromTarget_combBack
Definition: CbmAnaConversionPhotons2.h:164
CbmAnaConversionPhotons2::fStsTracks
TClonesArray * fStsTracks
Definition: CbmAnaConversionPhotons2.h:49
CbmAnaConversionPhotons2::fh2Electrons_invmass_withRICH_combBack
TH1D * fh2Electrons_invmass_withRICH_combBack
Definition: CbmAnaConversionPhotons2.h:131
CbmAnaConversionPhotons2::fh2Electrons_angle_withRICH_withChi_combBack
TH1D * fh2Electrons_angle_withRICH_withChi_combBack
Definition: CbmAnaConversionPhotons2.h:143
CbmAnaConversionPhotons2::fh2Electrons_invmass_all_cut
TH1D * fh2Electrons_invmass_all_cut
Definition: CbmAnaConversionPhotons2.h:102
CbmLitGlobalElectronId.h
CbmAnaConversionPhotons2::fKFVertex
CbmKFVertex fKFVertex
Definition: CbmAnaConversionPhotons2.h:53
CbmAnaConversionPhotons2::fh2Electrons_invmass_withRICH_withChi_combBack
TH1D * fh2Electrons_invmass_withRICH_withChi_combBack
Definition: CbmAnaConversionPhotons2.h:149
CbmAnaConversionPhotons2::fh2Electrons_angleVSpt_withRICH_fromTarget_combBack
TH2D * fh2Electrons_angleVSpt_withRICH_fromTarget_combBack
Definition: CbmAnaConversionPhotons2.h:161
CbmKFVertex.h
CbmAnaConversionPhotons2::fh2Electrons_invmass_withRICH_fromTarget_allSameG
TH1D * fh2Electrons_invmass_withRICH_fromTarget_allSameG
Definition: CbmAnaConversionPhotons2.h:165
CbmAnaConversionPhotons2::fh2Electrons_angleVSpt_withRICH_fromTarget_all
TH2D * fh2Electrons_angleVSpt_withRICH_fromTarget_all
Definition: CbmAnaConversionPhotons2.h:160
CbmAnaConversionPhotons2::fh2Electrons_invmassVSpt_withRICH_withChi_combBack
TH2D * fh2Electrons_invmassVSpt_withRICH_withChi_combBack
Definition: CbmAnaConversionPhotons2.h:152
CbmAnaConversionPhotons2::fRecoTracklist_withRICH_mcIndex
std::vector< Int_t > fRecoTracklist_withRICH_mcIndex
Definition: CbmAnaConversionPhotons2.h:71
CbmAnaConversionPhotons2::fVector_combinations
std::vector< std::vector< int > > fVector_combinations
Definition: CbmAnaConversionPhotons2.h:172
CbmAnaConversionPhotons2::fh2Electrons_angle_all_cuts
TH1D * fh2Electrons_angle_all_cuts
Definition: CbmAnaConversionPhotons2.h:83
CbmKFVertex
Definition: CbmKFVertex.h:6
CbmAnaConversionPhotons2::fh2Electrons_invmassVSpt_combBack
TH2D * fh2Electrons_invmassVSpt_combBack
Definition: CbmAnaConversionPhotons2.h:113
CbmAnaConversionPhotons2::fh2Electrons_invmassVSpt_withRICH_fromTarget_combBack
TH2D * fh2Electrons_invmassVSpt_withRICH_fromTarget_combBack
Definition: CbmAnaConversionPhotons2.h:167