]>
Commit | Line | Data |
---|---|---|
259c3296 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
50685501 | 15 | // |
16 | // QA class of Heavy Flavor quark and fragmeted/decayed particles | |
17 | // -Check kinematics of Heavy Quarks/hadrons, and decayed leptons | |
18 | // pT, rapidity | |
19 | // decay lepton kinematics w/wo acceptance | |
20 | // heavy hadron decay length, electron pT fraction carried from decay | |
21 | // -Check yield of Heavy Quarks/hadrons | |
22 | // Number of produced heavy quark | |
23 | // Number of produced hadron of given pdg code | |
24 | // | |
259c3296 | 25 | |
c2690925 | 26 | #ifndef ALIHFEMCQA_H |
27 | #define ALIHFEMCQA_H | |
28 | ||
259c3296 | 29 | #ifndef ROOT_TObject |
75d81601 | 30 | //#include <TObject.h> |
259c3296 | 31 | #endif |
32 | ||
33 | class TH1F; | |
34 | class TH2F; | |
70da6c5a | 35 | class TList; |
259c3296 | 36 | class TParticle; |
37 | class TString; | |
faee3b18 | 38 | class AliMCEvent; |
9bcfd1ab | 39 | class AliGenEventHeader; |
0792aa82 | 40 | class AliAODMCParticle; |
c2690925 | 41 | class AliHFEcollection; |
259c3296 | 42 | |
43 | //________________________________________________________________ | |
44 | class AliHFEmcQA: public TObject { | |
45 | ||
70da6c5a | 46 | public: |
faee3b18 | 47 | enum heavyType {kCharm=4, kBeauty=5, kOthers=6, kElectronPDG=11}; |
70da6c5a | 48 | enum qType {kQuark, kantiQuark, kHadron, keHadron, kDeHadron, kElectron, kElectron2nd}; |
c2690925 | 49 | enum SourceType {kDirectCharm=1, kDirectBeauty=2, kBeautyCharm=3, kGamma=4, kPi0=5, kElse=6, kMisID=7, kEta=8, kOmega=9, kPhi=10, kEtaPrime=11, kRho0=12, kGammaPi0=13, kGammaEta=14, kGammaOmega=15, kGammaPhi=16, kGammaEtaPrime=17, kGammaRho0=18}; |
70da6c5a | 50 | enum ProcessType { |
51 | kPairCreationFromq, kPairCreationFromg, kFlavourExitation, kGluonSplitting, kInitialPartonShower, kLightQuarkShower | |
52 | }; | |
53 | ||
54 | AliHFEmcQA(); | |
55 | AliHFEmcQA(const AliHFEmcQA &p); // copy constructor | |
56 | AliHFEmcQA &operator=(const AliHFEmcQA &); // assignment operator | |
57 | ||
58 | virtual ~AliHFEmcQA(); | |
59 | ||
70da6c5a | 60 | TList *GetList() const { return fQAhistos; }; |
61 | void PostAnalyze() const; | |
e3fc062d | 62 | void CreatDefaultHistograms(TList * const qaList); // create default histograms |
70da6c5a | 63 | void CreateHistograms(const Int_t kquark, Int_t icut, TString hnopt=""); // create histograms for mc qa analysis |
faee3b18 | 64 | void SetMCEvent(AliMCEvent* const mcEvent){fMCEvent = mcEvent;} |
70da6c5a | 65 | void SetGenEventHeader(AliGenEventHeader* const mcHeader){fMCHeader=mcHeader;} // set stack pointer |
66 | void SetMCArray(TClonesArray* const mcarry){fMCArray=mcarry;} // set mcarray pointer | |
67 | void Init(); | |
68 | ||
69 | void GetQuarkKine(TParticle *part, Int_t iTrack, const Int_t kquark); // get heavy quark kinematics distribution | |
70 | void GetHadronKine(TParticle *part, const Int_t kquark); // get heavy hadron kinematics distribution | |
71 | void GetDecayedKine(TParticle *part, const Int_t kquark, const Int_t kdecayed, Int_t icut); // get decay electron kinematics distribution | |
0792aa82 | 72 | void GetDecayedKine(AliAODMCParticle *mcpart, const Int_t kquark, Int_t kdecayed, Int_t icut); // get decay electron kinematics for AOD |
c2690925 | 73 | void GetMesonKine(); // get meson and its decay electron pt spectra |
70da6c5a | 74 | void EndOfEventAna(const Int_t kquark); // run analysis which should be done at the end of the event loop |
c2690925 | 75 | Int_t GetSource(const TParticle * const mcpart); // return source id |
e3fc062d | 76 | Int_t GetElecSource(TParticle * const mcpart); // return electron source id |
c2690925 | 77 | Int_t GetSource(const AliAODMCParticle * const mcpart); // return electron source id for AOD |
dbe3abbe | 78 | |
70da6c5a | 79 | protected: |
80 | void IdentifyMother(Int_t motherlabel, Int_t &motherpdg, Int_t &grandmotherlabel); // | |
81 | void HardScattering(const Int_t kquark, Int_t &motherID, Int_t &mothertype, Int_t &motherlabel); // check if the quark is produced from hard scattering | |
82 | void ReportStrangeness(Int_t &motherID, Int_t &mothertype, Int_t &motherlabel); // report if the quark production process is unknown | |
83 | Bool_t IsFromInitialShower(Int_t inputmotherlabel, Int_t &motherID, Int_t &mothertype, Int_t &motherlabel); // check if the quark is produced from initial parton shower | |
84 | Bool_t IsFromFinalParton(Int_t inputmotherlabel, Int_t &motherID, Int_t &mothertype, Int_t &motherlabel); // check if the quark is produced from final parton shower | |
85 | ||
faee3b18 | 86 | AliMCEvent* fMCEvent; // mcevent pointer |
70da6c5a | 87 | AliGenEventHeader* fMCHeader; // mcheader pointer |
88 | TClonesArray *fMCArray; // mc array pointer | |
89 | ||
c2690925 | 90 | static const Int_t fgkGluon=21; // gluon pdg code |
91 | static const Int_t fgkMaxGener=10; // ancester level wanted to be checked | |
92 | static const Int_t fgkMaxIter=100; // number of iteration to find out matching particle | |
93 | static const Int_t fgkqType=7; // number of particle type to be checked | |
70da6c5a | 94 | |
95 | struct AliHists{ | |
96 | TH1F *fPdgCode; // histogram to store particle pdg code | |
97 | TH1F *fPt; // histogram to store pt | |
98 | TH1F *fY; // histogram to store rapidity | |
99 | TH1F *fEta; // histogram to store eta | |
75d81601 | 100 | |
101 | AliHists() | |
102 | : fPdgCode() | |
103 | , fPt() | |
104 | , fY() | |
105 | , fEta() | |
70da6c5a | 106 | { |
75d81601 | 107 | // default constructor |
108 | }; | |
109 | AliHists(const AliHists & p) | |
110 | : fPdgCode(p.fPdgCode) | |
111 | , fPt(p.fPt) | |
112 | , fY(p.fY) | |
113 | , fEta(p.fEta) | |
70da6c5a | 114 | { |
75d81601 | 115 | // copy constructor |
116 | }; | |
117 | AliHists &operator=(const AliHists &) | |
118 | { | |
119 | // assignment operator, not yet implemented | |
120 | return *this; | |
121 | } | |
70da6c5a | 122 | void FillList(TList *l) const; |
123 | }; | |
124 | struct AliHistsComm { | |
125 | TH1F *fNq; // histogram to store number of quark | |
126 | TH1F *fProcessID; // histogram to store process id | |
127 | TH2F *fePtRatio; // fraction of electron pT from D or B hadron | |
ccc37cdc | 128 | TH2F *fPtCorr; // pt correlation between e and direct D or B |
c2690925 | 129 | TH2F *fPtCorrDp; // pt correlation between e and direct D+ |
130 | TH2F *fPtCorrD0; // pt correlation between e and direct D0 | |
131 | TH2F *fPtCorrDrest; // pt correlation between e and direct D rest | |
70da6c5a | 132 | TH2F *fDePtRatio; // fraction of D electron pT from B hadron |
133 | TH2F *feDistance; // distance between electron production point to mother particle | |
134 | TH2F *fDeDistance; // distance between D electron production point to mother particle | |
75d81601 | 135 | |
136 | AliHistsComm() | |
137 | : fNq() | |
138 | , fProcessID() | |
139 | , fePtRatio() | |
ccc37cdc | 140 | , fPtCorr() |
c2690925 | 141 | , fPtCorrDp() |
142 | , fPtCorrD0() | |
143 | , fPtCorrDrest() | |
75d81601 | 144 | , fDePtRatio() |
145 | , feDistance() | |
146 | , fDeDistance() | |
70da6c5a | 147 | { |
75d81601 | 148 | // default constructor |
149 | }; | |
150 | AliHistsComm(const AliHistsComm & p) | |
151 | : fNq(p.fNq) | |
152 | , fProcessID(p.fProcessID) | |
153 | , fePtRatio(p.fePtRatio) | |
ccc37cdc | 154 | , fPtCorr(p.fPtCorr) |
c2690925 | 155 | , fPtCorrDp(p.fPtCorrDp) |
156 | , fPtCorrD0(p.fPtCorrD0) | |
157 | , fPtCorrDrest(p.fPtCorrDrest) | |
75d81601 | 158 | , fDePtRatio(p.fDePtRatio) |
159 | , feDistance(p.feDistance) | |
160 | , fDeDistance(p.fDeDistance) | |
70da6c5a | 161 | { |
75d81601 | 162 | // copy constructor |
163 | }; | |
164 | AliHistsComm &operator=(const AliHistsComm &) | |
165 | { | |
166 | // assignment operator, not yet implemented | |
167 | return *this; | |
168 | } | |
70da6c5a | 169 | void FillList(TList *l) const; |
170 | }; | |
259c3296 | 171 | |
faee3b18 | 172 | AliHists fHist[3][7][6]; // struct of histograms to store kinematics of given particles |
173 | AliHistsComm fHistComm[2][6]; // struct of additional histograms of given particles | |
ccc37cdc | 174 | TH2F *fhD[9]; // D meson pt,Y spectra |
175 | TH1F *fhDLogbin[9]; // D meson pt w diff binning | |
259c3296 | 176 | |
70da6c5a | 177 | TList *fQAhistos; // Container for QA histos |
c2690925 | 178 | AliHFEcollection *fMCQACollection; //! Tasks own QA collection |
bf892a6a | 179 | TParticle *fHeavyQuark[50]; //! store pointer of heavy flavour quark |
70da6c5a | 180 | Int_t fIsHeavy[2]; // count of heavy flavour |
181 | Int_t fNparents; // number of heavy hadrons to be considered | |
182 | Int_t fParentSelect[2][7]; // heavy hadron species | |
259c3296 | 183 | |
70da6c5a | 184 | ClassDef(AliHFEmcQA,1); |
259c3296 | 185 | }; |
186 | ||
187 | #endif |