CbmRoot
CbmAnaConversionKF.h
Go to the documentation of this file.
1 
9 #ifndef CBM_ANA_CONVERSION_KF
10 #define CBM_ANA_CONVERSION_KF
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 "CbmKFParticle.h"
21 #include "CbmKFParticleFinder.h"
22 #include "CbmKFParticleFinderQA.h"
23 #include "CbmMCTrack.h"
24 #include "CbmVertex.h"
25 #include "KFPartMatch.h"
26 #include "KFParticle.h"
27 #include "KFTopoPerformance.h"
28 
29 #include <vector>
30 
32 
33 public:
35  virtual ~CbmAnaConversionKF();
36 
37  void Init();
38  void InitHistos();
39  void Finish();
40  void Exec();
41 
42  //void KFParticle_Analysis();
43 
44  void SetKF(CbmKFParticleFinder* kfparticle,
45  CbmKFParticleFinderQA* kfparticleQA);
46  void SetSignalIds(std::vector<int>* signalids);
47  void SetGhostIds(std::vector<int>* ghostids);
48 
49 
50  void test();
51  Double_t Invmass_4particles(const CbmMCTrack* mctrack1,
52  const CbmMCTrack* mctrack2,
53  const CbmMCTrack* mctrack3,
54  const CbmMCTrack* mctrack4);
55 
56  void test2();
57  void CombineElectrons();
58  void CombinePhotons();
59  void Reconstruct();
60  void ReconstructGammas();
61  Double_t Invmass_4particlesRECO(KFParticle part1,
62  KFParticle part2,
63  KFParticle part3,
64  KFParticle part4);
65  Double_t Invmass_2gamma(KFParticle part1, KFParticle part2);
66  Double_t Invmass_2electrons(KFParticle part1, KFParticle part2);
67 
68  Double_t OpeningAngleBetweenPhotons(KFParticle part1, KFParticle part2);
69 
70 
71 private:
72  TClonesArray* fKFMcParticles;
73  TClonesArray* fMcTracks;
74  TClonesArray* fStsTracks;
75  TClonesArray* fStsTrackMatches;
76 
79 
80  const KFParticleTopoReconstructor* fKFtopo;
81  KFTopoPerformance* fKFtopoPerf;
82  std::vector<int> trackindexarray;
89 
90  // for data gained from the KFParticle package
91  Int_t
92  fNofGeneratedPi0_allEvents; // number of generated pi0 summed up over ALL EVENTS
93  Int_t
94  fNofPi0_kfparticle_allEvents; // number of all reconstructed pi0 summed up over ALL EVENTS
97  TH1D* fhPi0Ratio;
98  TH1D* fhPi0_mass;
99 
100 
101  std::vector<int> fSignalIds;
102  std::vector<int> fGhostIds;
103 
104 
105  std::vector<TH1*>
106  fHistoList_kfparticle; // list of all histograms containing results from KFParticle package
107 
108 
109  std::vector<KFParticle> particlevector;
110  std::vector<KFPartMatch> particleMatch;
111  std::vector<int> electronIDs;
112  std::vector<int> gammaIDs;
114 
117 
120 
121  TH1D* fhKF_NofPi0;
124 
125 
126  std::vector<std::vector<int>> fKF_photon_pairs;
128 
129 
130  // timer
131  TStopwatch timer;
132  Double_t fTime;
133 
136 
137  ClassDef(CbmAnaConversionKF, 1)
138 };
139 
140 #endif
CbmAnaConversionKF::OpeningAngleBetweenPhotons
Double_t OpeningAngleBetweenPhotons(KFParticle part1, KFParticle part2)
Definition: CbmAnaConversionKF.cxx:806
CbmAnaConversionKF::particlecounter
Int_t particlecounter
Definition: CbmAnaConversionKF.h:83
CbmAnaConversionKF::fSignalIds
std::vector< int > fSignalIds
Definition: CbmAnaConversionKF.h:101
CbmVertex.h
CbmAnaConversionKF::fhKF_NofPi0
TH1D * fhKF_NofPi0
Definition: CbmAnaConversionKF.h:121
CbmAnaConversionKF::test
void test()
Definition: CbmAnaConversionKF.cxx:383
CbmKFParticleFinder.h
CbmKFParticleFinder
Definition: CbmKFParticleFinder.h:26
CbmAnaConversionKF::fNofPi0_kfparticle_allEvents
Int_t fNofPi0_kfparticle_allEvents
Definition: CbmAnaConversionKF.h:94
CbmAnaConversionKF::particlevector
std::vector< KFParticle > particlevector
Definition: CbmAnaConversionKF.h:109
CbmKFParticleFinderQA
Definition: CbmKFParticleFinderQA.h:21
CbmAnaConversionKF::Invmass_4particles
Double_t Invmass_4particles(const CbmMCTrack *mctrack1, const CbmMCTrack *mctrack2, const CbmMCTrack *mctrack3, const CbmMCTrack *mctrack4)
Definition: CbmAnaConversionKF.cxx:461
CbmAnaConversionKF::fhPi0Ratio
TH1D * fhPi0Ratio
Definition: CbmAnaConversionKF.h:97
CbmAnaConversionKF::CbmAnaConversionKF
CbmAnaConversionKF(const CbmAnaConversionKF &)
CbmAnaConversionKF::fKF_photon_pairs
std::vector< std::vector< int > > fKF_photon_pairs
Definition: CbmAnaConversionKF.h:126
CbmAnaConversionKF::fKFparticle
CbmKFParticleFinder * fKFparticle
Definition: CbmAnaConversionKF.h:77
CbmAnaConversionKF::fTime
Double_t fTime
Definition: CbmAnaConversionKF.h:132
CbmAnaConversionKF::Invmass_4particlesRECO
Double_t Invmass_4particlesRECO(KFParticle part1, KFParticle part2, KFParticle part3, KFParticle part4)
Definition: CbmAnaConversionKF.cxx:740
CbmAnaConversionKF::InitHistos
void InitHistos()
Definition: CbmAnaConversionKF.cxx:111
CbmAnaConversionKF::Finish
void Finish()
Definition: CbmAnaConversionKF.cxx:167
CbmAnaConversionKF::fhInvMassPi0WithFullReco
TH1D * fhInvMassPi0WithFullReco
Definition: CbmAnaConversionKF.h:113
CbmAnaConversionKF::fhKF_NofPi0_trackvector
TH1D * fhKF_NofPi0_trackvector
Definition: CbmAnaConversionKF.h:123
CbmAnaConversionKF::Init
void Init()
Definition: CbmAnaConversionKF.cxx:76
CbmAnaConversionKF::trackindexarray
std::vector< int > trackindexarray
Definition: CbmAnaConversionKF.h:82
CbmAnaConversionKF::fStsTracks
TClonesArray * fStsTracks
Definition: CbmAnaConversionKF.h:74
CbmAnaConversionKF::Exec
void Exec()
Definition: CbmAnaConversionKF.cxx:180
CbmAnaConversionKF::particlecounter_3daughters
Int_t particlecounter_3daughters
Definition: CbmAnaConversionKF.h:85
CbmAnaConversionKF::gammaIDs
std::vector< int > gammaIDs
Definition: CbmAnaConversionKF.h:112
CbmAnaConversionKF::fhKF_trackvector
TH1D * fhKF_trackvector
Definition: CbmAnaConversionKF.h:119
CbmAnaConversionKF::fKFtopo
const KFParticleTopoReconstructor * fKFtopo
Definition: CbmAnaConversionKF.h:80
CbmAnaConversionKF::CombinePhotons
void CombinePhotons()
Definition: CbmAnaConversionKF.cxx:599
CbmAnaConversionKF::SetSignalIds
void SetSignalIds(std::vector< int > *signalids)
Definition: CbmAnaConversionKF.cxx:213
CbmAnaConversionKF::fNofGeneratedPi0
Int_t fNofGeneratedPi0
Definition: CbmAnaConversionKF.h:95
CbmAnaConversionKF::particlecounter_4daughters
Int_t particlecounter_4daughters
Definition: CbmAnaConversionKF.h:86
CbmAnaConversionKF::fhInvMass2Gammas_cut
TH1D * fhInvMass2Gammas_cut
Definition: CbmAnaConversionKF.h:116
CbmAnaConversionKF::test2
void test2()
Definition: CbmAnaConversionKF.cxx:489
CbmAnaConversionKF::fhInvMass2Gammas
TH1D * fhInvMass2Gammas
Definition: CbmAnaConversionKF.h:115
CbmAnaConversionKF::SetKF
void SetKF(CbmKFParticleFinder *kfparticle, CbmKFParticleFinderQA *kfparticleQA)
Definition: CbmAnaConversionKF.cxx:201
CbmAnaConversionKF::Invmass_2gamma
Double_t Invmass_2gamma(KFParticle part1, KFParticle part2)
Definition: CbmAnaConversionKF.cxx:770
CbmAnaConversionKF::SetGhostIds
void SetGhostIds(std::vector< int > *ghostids)
Definition: CbmAnaConversionKF.cxx:218
CbmAnaConversionKF::Invmass_2electrons
Double_t Invmass_2electrons(KFParticle part1, KFParticle part2)
Definition: CbmAnaConversionKF.cxx:788
CbmAnaConversionKF::fhPi0_mass
TH1D * fhPi0_mass
Definition: CbmAnaConversionKF.h:98
CbmAnaConversionKF::fNofGeneratedPi0_allEvents
Int_t fNofGeneratedPi0_allEvents
Definition: CbmAnaConversionKF.h:92
CbmAnaConversionKF::fMcTracks
TClonesArray * fMcTracks
Definition: CbmAnaConversionKF.h:73
CbmKFParticle.h
CbmAnaConversionKF::fhPi0_NDaughters
TH1D * fhPi0_NDaughters
Definition: CbmAnaConversionKF.h:88
CbmAnaConversionKF::~CbmAnaConversionKF
virtual ~CbmAnaConversionKF()
Definition: CbmAnaConversionKF.cxx:73
CbmAnaConversionKF::fKFMcParticles
TClonesArray * fKFMcParticles
Definition: CbmAnaConversionKF.h:72
CbmKFParticleFinderQA.h
CbmAnaConversionKF::fStsTrackMatches
TClonesArray * fStsTrackMatches
Definition: CbmAnaConversionKF.h:75
CbmAnaConversionKF
Definition: CbmAnaConversionKF.h:31
CbmAnaConversionKF::ReconstructGammas
void ReconstructGammas()
Definition: CbmAnaConversionKF.cxx:717
CbmAnaConversionKF::timer
TStopwatch timer
Definition: CbmAnaConversionKF.h:131
CbmMCTrack.h
CbmAnaConversionKF::electronIDs
std::vector< int > electronIDs
Definition: CbmAnaConversionKF.h:111
CbmAnaConversionKF::fKFparticleFinderQA
CbmKFParticleFinderQA * fKFparticleFinderQA
Definition: CbmAnaConversionKF.h:78
CbmMCTrack
Definition: CbmMCTrack.h:34
CbmAnaConversionKF::fHistoList_kfparticle
std::vector< TH1 * > fHistoList_kfparticle
Definition: CbmAnaConversionKF.h:106
CbmAnaConversionKF::particlecounter_all
Int_t particlecounter_all
Definition: CbmAnaConversionKF.h:87
CbmAnaConversionKF::fhKF_particlevector
TH1D * fhKF_particlevector
Definition: CbmAnaConversionKF.h:118
CbmAnaConversionKF::fGhostIds
std::vector< int > fGhostIds
Definition: CbmAnaConversionKF.h:102
CbmAnaConversionKF::CombineElectrons
void CombineElectrons()
Definition: CbmAnaConversionKF.cxx:565
CbmAnaConversionKF::fhKF_invmass_fullReco
TH1D * fhKF_invmass_fullReco
Definition: CbmAnaConversionKF.h:127
CbmAnaConversionKF::fNofPi0_kfparticle
Int_t fNofPi0_kfparticle
Definition: CbmAnaConversionKF.h:96
CbmAnaConversionKF::particlecounter_2daughters
Int_t particlecounter_2daughters
Definition: CbmAnaConversionKF.h:84
CbmAnaConversionKF::fKFtopoPerf
KFTopoPerformance * fKFtopoPerf
Definition: CbmAnaConversionKF.h:81
CbmAnaConversionKF::particleMatch
std::vector< KFPartMatch > particleMatch
Definition: CbmAnaConversionKF.h:110
CbmAnaConversionKF::operator=
CbmAnaConversionKF operator=(const CbmAnaConversionKF &)
CbmAnaConversionKF::Reconstruct
void Reconstruct()
Definition: CbmAnaConversionKF.cxx:620
CbmAnaConversionKF::CbmAnaConversionKF
CbmAnaConversionKF()
Definition: CbmAnaConversionKF.cxx:31
CbmAnaConversionKF::fhKF_NofPi0_signal
TH1D * fhKF_NofPi0_signal
Definition: CbmAnaConversionKF.h:122