]>
Commit | Line | Data |
---|---|---|
3b77b2d1 | 1 | #ifndef ALICONVERSIONCUTS_H |
2 | #define ALICONVERSIONCUTS_H | |
3 | ||
4 | // Class handling all kinds of selection cuts for Gamma Conversion analysis | |
5 | // Authors: Svein Lindal, Daniel Lohner * | |
6 | ||
7 | #include "AliAODpidUtil.h" | |
8 | #include "AliConversionPhotonBase.h" | |
9 | #include "AliAODConversionMother.h" | |
10 | #include "AliAODTrack.h" | |
11 | #include "AliESDtrack.h" | |
12 | #include "AliVTrack.h" | |
13 | #include "AliAODTrack.h" | |
14 | #include "AliStack.h" | |
15 | #include "AliAnalysisCuts.h" | |
d008165e | 16 | #include "TH1F.h" |
0a2b2b4b | 17 | #include "AliAnalysisUtils.h" |
11c1e680 | 18 | #include "AliAnalysisManager.h" |
3b77b2d1 | 19 | |
20 | class AliESDEvent; | |
21 | class AliAODEvent; | |
22 | class AliConversionPhotonBase; | |
23 | class AliKFVertex; | |
24 | class TH1F; | |
25 | class TH2F; | |
26 | class AliPIDResponse; | |
27 | class AliAnalysisCuts; | |
28 | class iostream; | |
29 | class TList; | |
30 | class AliAnalysisManager; | |
ae947965 | 31 | class AliAODMCParticle; |
3b77b2d1 | 32 | |
3b77b2d1 | 33 | using namespace std; |
34 | ||
35 | class AliConversionCuts : public AliAnalysisCuts { | |
36 | ||
37 | public: | |
ccfa8c0d | 38 | |
3b77b2d1 | 39 | |
40 | enum cutIds { | |
ca91a3e1 | 41 | kisHeavyIon, |
42 | kCentralityMin, | |
43 | kCentralityMax, | |
44 | kselectV0AND, | |
45 | kmultiplicityMethod, | |
46 | kremovePileUp, | |
47 | kExtraSignals, | |
3b77b2d1 | 48 | kv0FinderType, |
ca91a3e1 | 49 | ketaCut, |
50 | kRCut, | |
3b77b2d1 | 51 | ksinglePtCut, |
52 | kclsTPCCut, | |
ca91a3e1 | 53 | kededxSigmaCut, |
54 | kpidedxSigmaCut, | |
55 | kpiMomdedxSigmaCut, | |
3b77b2d1 | 56 | kpiMaxMomdedxSigmaCut, |
ca91a3e1 | 57 | kLowPRejectionSigmaCut, |
3b77b2d1 | 58 | kTOFelectronPID, |
ca91a3e1 | 59 | kQtMaxCut, |
60 | kchi2GammaCut, | |
3b77b2d1 | 61 | kPsiPair, |
ca91a3e1 | 62 | kdoPhotonAsymmetryCut, |
3b77b2d1 | 63 | kCosPAngle, |
ca91a3e1 | 64 | kElecShare, |
65 | kToCloseV0s, | |
3b77b2d1 | 66 | kNCuts |
67 | }; | |
68 | ||
d008165e | 69 | enum photonCuts { |
70 | kPhotonIn=0, | |
71 | kOnFly, | |
72 | kNoTracks, | |
73 | kTrackCuts, | |
74 | kdEdxCuts, | |
92efd725 | 75 | kConvPointFail, |
d008165e | 76 | kPhotonCuts, |
77 | kPhotonOut | |
78 | }; | |
79 | ||
80 | ||
3b77b2d1 | 81 | Bool_t SetCutIds(TString cutString); |
82 | Int_t fCuts[kNCuts]; | |
83 | Bool_t SetCut(cutIds cutID, Int_t cut); | |
e5b6e8a6 | 84 | Bool_t UpdateCutString(); |
3b77b2d1 | 85 | |
86 | ||
87 | static const char * fgkCutNames[kNCuts]; | |
88 | ||
92efd725 | 89 | Double_t GetCosineOfPointingAngle(const AliConversionPhotonBase * photon, AliVEvent * event) const; |
3b77b2d1 | 90 | |
91 | ||
92 | Bool_t InitializeCutsFromCutString(const TString analysisCutSelection); | |
ae947965 | 93 | void SelectCollisionCandidates(UInt_t offlineTriggerMask = AliVEvent::kAny) { |
94 | fOfflineTriggerMask = offlineTriggerMask; | |
95 | fTriggerSelectedManually = kTRUE; | |
96 | } | |
97 | void SelectSpecialTrigger(UInt_t offlineTriggerMask = AliVEvent::kAny, TString TriggerClassName = "AliVEvent::kAny" ) { | |
98 | fOfflineTriggerMask = offlineTriggerMask; | |
99 | fSpecialTriggerName = TriggerClassName; | |
100 | cout << fSpecialTriggerName.Data() << endl; | |
101 | ||
102 | } | |
92efd725 | 103 | void FillElectonLabelArray(AliAODConversionPhoton* photon, Int_t nV0); |
ca91a3e1 | 104 | void SetAcceptedHeader(TList *HeaderList){fHeaderList = HeaderList;} |
ae947965 | 105 | void SetPreSelectionCutFlag(Bool_t preSelFlag){fPreSelCut = preSelFlag;} |
e5b6e8a6 | 106 | TString *GetFoundHeader(){return fGeneratorNames;} |
ca91a3e1 | 107 | |
92efd725 | 108 | Int_t GetEventQuality(){return fEventQuality;} |
e5b6e8a6 | 109 | Bool_t GetIsFromPileup(){return fRemovePileUp;} |
110 | ||
3b77b2d1 | 111 | AliConversionCuts(const char *name="V0Cuts", const char * title="V0 Cuts"); |
a280ac15 | 112 | AliConversionCuts(const AliConversionCuts&); |
113 | AliConversionCuts& operator=(const AliConversionCuts&); | |
1d9e6011 | 114 | |
3b77b2d1 | 115 | virtual ~AliConversionCuts(); //virtual destructor |
116 | ||
a280ac15 | 117 | static AliConversionCuts * GetStandardCuts2010PbPb(); |
118 | static AliConversionCuts * GetStandardCuts2010pp(); | |
119 | ||
3b77b2d1 | 120 | virtual Bool_t IsSelected(TObject* /*obj*/){return kTRUE;} |
121 | virtual Bool_t IsSelected(TList* /*list*/) {return kTRUE;} | |
122 | ||
123 | TString GetCutNumber(); | |
11c1e680 | 124 | |
92efd725 | 125 | void GetCentralityRange(Double_t range[2]){range[0]=10*fCentralityMin;range[1]=10*fCentralityMax;}; |
11c1e680 | 126 | |
3b77b2d1 | 127 | // Cut Selection |
92efd725 | 128 | Bool_t EventIsSelected(AliVEvent *fInputEvent, AliVEvent *fMCEvent); |
e5b6e8a6 | 129 | Int_t IsEventAcceptedByConversionCut(AliConversionCuts *ReaderCuts, AliVEvent *InputEvent, AliMCEvent *MCEvent, Bool_t isHeavyIon); |
d008165e | 130 | Bool_t PhotonIsSelected(AliConversionPhotonBase * photon, AliVEvent * event); |
92efd725 | 131 | Bool_t PhotonIsSelectedMC(TParticle *particle,AliStack *fMCStack,Bool_t checkForConvertedGamma=kTRUE); |
ae947965 | 132 | Bool_t PhotonIsSelectedAODMC(AliAODMCParticle *particle,TClonesArray *aodmcArray,Bool_t checkForConvertedGamma=kTRUE); |
2bb2434e | 133 | Bool_t ElectronIsSelectedMC(TParticle *particle,AliStack *fMCStack); |
3b77b2d1 | 134 | Bool_t TracksAreSelected(AliVTrack * negTrack, AliVTrack * posTrack); |
135 | Bool_t MesonIsSelected(AliAODConversionMother *pi0,Bool_t IsSignal=kTRUE); | |
92efd725 | 136 | Bool_t MesonIsSelectedMC(TParticle *fMCMother,AliStack *fMCStack, Bool_t bMCDaughtersInAcceptance=kFALSE); |
3b77b2d1 | 137 | |
138 | void InitAODpidUtil(Int_t type); | |
3b77b2d1 | 139 | Bool_t InitPIDResponse(); |
140 | ||
141 | void SetPIDResponse(AliPIDResponse * pidResponse) {fPIDResponse = pidResponse;} | |
142 | AliPIDResponse * GetPIDResponse() { return fPIDResponse;} | |
143 | ||
144 | void PrintCuts(); | |
145 | ||
92efd725 | 146 | void InitCutHistograms(TString name="",Bool_t preCut = kTRUE); |
147 | void SetFillCutHistograms(TString name="",Bool_t preCut = kTRUE){if(!fHistograms){InitCutHistograms(name,preCut);};} | |
3b77b2d1 | 148 | TList *GetCutHistograms(){return fHistograms;} |
d008165e | 149 | void FillPhotonCutIndex(Int_t photoncut){if(hCutIndex)hCutIndex->Fill(photoncut);} |
11c1e680 | 150 | void SetEtaShift(Double_t etaShift) { |
151 | fEtaShift = etaShift; | |
152 | fLineCutZRSlope = tan(2*atan(exp(-fEtaCut + etaShift))); | |
153 | if(fEtaCutMin > -0.1) | |
154 | fLineCutZRSlopeMin = tan(2*atan(exp(-fEtaCutMin + etaShift))); | |
ccfa8c0d | 155 | } |
156 | void SetEtaShift(TString pPbOrPbp) { | |
157 | Double_t etaShift = 0.0; | |
158 | if(!pPbOrPbp.CompareTo("pPb")) etaShift = -0.465; | |
159 | else if(!pPbOrPbp.CompareTo("Pbp")) etaShift = 0.465; | |
160 | ||
161 | fEtaShift = etaShift; | |
162 | fLineCutZRSlope = tan(2*atan(exp(-fEtaCut + etaShift))); | |
163 | if(fEtaCutMin > -0.1) | |
164 | fLineCutZRSlopeMin = tan(2*atan(exp(-fEtaCutMin + etaShift))); | |
11c1e680 | 165 | } |
166 | Double_t GetEtaShift() {return fEtaShift;} | |
167 | Bool_t GetDoEtaShift(){return fDoEtaShift;} | |
168 | void DoEtaShift(Bool_t doEtaShift){fDoEtaShift = doEtaShift;} | |
ccfa8c0d | 169 | void GetCorrectEtaShiftFromPeriod(TString periodName); |
170 | ||
92efd725 | 171 | static AliVTrack * GetTrack(AliVEvent * event, Int_t label); |
e5b6e8a6 | 172 | static AliESDtrack *GetESDTrack(AliESDEvent * event, Int_t label); |
173 | ||
3b77b2d1 | 174 | ///Cut functions |
175 | Bool_t SpecificTrackCuts(AliAODTrack * negTrack, AliAODTrack * posTrack,Int_t &cutIndex); | |
176 | Bool_t SpecificTrackCuts(AliESDtrack * negTrack, AliESDtrack * posTrack,Int_t &cutIndex); | |
177 | Bool_t AcceptanceCuts(AliConversionPhotonBase *photon); | |
178 | Bool_t AcceptanceCut(TParticle *particle, TParticle * ePos,TParticle* eNeg); | |
179 | Bool_t dEdxCuts(AliVTrack * track); | |
180 | Bool_t ArmenterosQtCut(AliConversionPhotonBase *photon); | |
181 | Bool_t AsymmetryCut(AliConversionPhotonBase *photon,AliVEvent *event); | |
182 | Bool_t PIDProbabilityCut(AliConversionPhotonBase *photon, AliVEvent * event); | |
92efd725 | 183 | Bool_t SelectV0Finder(Bool_t onfly){ |
184 | if(onfly == fUseOnFlyV0Finder) return kTRUE; | |
185 | else return kFALSE; | |
186 | } | |
3b77b2d1 | 187 | Bool_t PhotonCuts(AliConversionPhotonBase *photon,AliVEvent *event); |
188 | Bool_t CorrectedTPCClusterCut(AliConversionPhotonBase *photon, AliVEvent * event); | |
92efd725 | 189 | Bool_t PsiPairCut(const AliConversionPhotonBase * photon) const; |
190 | Bool_t CosinePAngleCut(const AliConversionPhotonBase * photon, AliVEvent * event) const; | |
191 | Bool_t RejectSharedElectronV0s(AliAODConversionPhoton* photon, Int_t nV0, Int_t nV0s); | |
192 | Bool_t RejectToCloseV0s(AliAODConversionPhoton* photon, TList *photons, Int_t nV0); | |
ae947965 | 193 | Int_t IsParticleFromBGEvent(Int_t index, AliStack *MCStack, AliVEvent *InputEvent = 0x0); |
194 | void GetNotRejectedParticles(Int_t rejection, TList *HeaderList, AliVEvent *MCEvent); | |
195 | void SetUseReweightingWithHistogramFromFile( Bool_t pi0reweight=kTRUE, Bool_t etareweight=kFALSE, Bool_t k0sreweight=kFALSE,TString path="$ALICE_ROOT/PWGGA/GammaConv/MCSpectraInput.root", | |
196 | TString histoNamePi0 = "Hijing_PbPb_2760GeV_0005", TString histoNameEta = "", TString histoNameK0s = "") { | |
197 | fDoReweightHistoMCPi0 = pi0reweight; | |
198 | fDoReweightHistoMCEta = etareweight; | |
199 | fDoReweightHistoMCK0s = k0sreweight; | |
200 | fPathTrFReweighting=path; | |
201 | fNameHistoReweightingPi0 =histoNamePi0; | |
202 | fNameHistoReweightingEta =histoNameEta; | |
203 | fNameHistoReweightingK0s =histoNameK0s; | |
204 | } | |
205 | void LoadReweightingHistosMCFromFile (); | |
3b77b2d1 | 206 | // Event Cuts |
e5b6e8a6 | 207 | Bool_t IsCentralitySelected(AliVEvent *fInputEvent, AliVEvent *fMCEvent = NULL); |
3b77b2d1 | 208 | Double_t GetCentrality(AliVEvent *event); |
209 | Int_t GetNumberOfContributorsVtx(AliVEvent *event); | |
210 | Bool_t VertexZCut(AliVEvent *fInputEvent); | |
92efd725 | 211 | Bool_t IsTriggerSelected(); |
e5b6e8a6 | 212 | Bool_t HasV0AND(){return fHasV0AND;} |
213 | Bool_t IsSDDFired(){return fIsSDDFired;} | |
214 | Int_t IsSpecialTrigger(){return fSpecialTrigger;} | |
ae947965 | 215 | TString GetSpecialTriggerName(){return fSpecialTriggerName;} |
3b77b2d1 | 216 | |
217 | // Set Individual Cuts | |
218 | Bool_t SetRCut(Int_t RCut); | |
219 | Bool_t SetV0Finder(Int_t v0FinderType); | |
3b77b2d1 | 220 | Bool_t SetChi2GammaCut(Int_t chi2GammaCut); |
221 | Bool_t SetTPCdEdxCutPionLine(Int_t pidedxSigmaCut); | |
222 | Bool_t SetTPCdEdxCutElectronLine(Int_t ededxSigmaCut); | |
223 | Bool_t SetSinglePtCut(Int_t singlePtCut); | |
224 | Bool_t SetTPCClusterCut(Int_t clsTPCCut); | |
225 | Bool_t SetEtaCut(Int_t etaCut); | |
3b77b2d1 | 226 | Bool_t SetMinMomPiondEdxCut(Int_t piMinMomdedxSigmaCut); |
227 | Bool_t SetMaxMomPiondEdxCut(Int_t piMaxMomdedxSigmaCut); | |
228 | Bool_t SetLowPRejectionCuts(Int_t LowPRejectionSigmaCut); | |
229 | Bool_t SetQtMaxCut(Int_t QtMaxCut); | |
3b77b2d1 | 230 | Bool_t SetTOFElectronPIDCut(Int_t TOFelectronPID); |
231 | Bool_t SetTRDElectronCut(Int_t TRDElectronCut); | |
92efd725 | 232 | Bool_t SetCentralityMin(Int_t useCentrality); |
3b77b2d1 | 233 | Bool_t SetIsHeavyIon(Int_t isHeavyIon); |
92efd725 | 234 | Bool_t SetCentralityMax(Int_t centralityBin); |
3b77b2d1 | 235 | Bool_t SetPhotonAsymmetryCut(Int_t doPhotonAsymmetryCut); |
ca91a3e1 | 236 | Bool_t SetRemovePileUp(Int_t removePileUp); |
92efd725 | 237 | Bool_t SetMultiplicityMethod(Int_t multiplicityMethod); |
e5b6e8a6 | 238 | Int_t SetSelectSpecialTrigger(Int_t selectSpecialTrigger); |
3b77b2d1 | 239 | Bool_t SetCosPAngleCut(Int_t cosCut); |
240 | Bool_t SetPsiPairCut(Int_t psiCut); | |
92efd725 | 241 | Bool_t SetSharedElectronCut(Int_t sharedElec); |
242 | Bool_t SetToCloseV0sCut(Int_t toClose); | |
ca91a3e1 | 243 | Bool_t SetRejectExtraSignalsCut(Int_t extraSignal); |
11c1e680 | 244 | |
245 | ||
3b77b2d1 | 246 | // Request Flags |
247 | ||
0a2b2b4b | 248 | Int_t IsHeavyIon(){return fIsHeavyIon;} |
3b77b2d1 | 249 | Int_t GetFirstTPCRow(Double_t radius); |
ae947965 | 250 | Float_t GetWeightForMeson(TString period, Int_t index, AliStack *MCStack, AliVEvent *InputEvent = 0x0); |
ca91a3e1 | 251 | |
92efd725 | 252 | Bool_t UseElecSharingCut(){return fDoSharedElecCut;} |
253 | Bool_t UseToCloseV0sCut(){return fDoToCloseV0sCut;} | |
254 | Int_t GetMultiplicityMethod(){return fMultiplicityMethod;} | |
255 | Double_t GetEtaCut(){return fEtaCut;} | |
ca91a3e1 | 256 | Int_t GetSignalRejection(){return fRejectExtraSignals;} |
a280ac15 | 257 | Int_t GetNAcceptedHeaders(){return fnHeaders; } |
258 | TString * GetAcceptedHeaderNames(){return fGeneratorNames;} | |
259 | Int_t * GetAcceptedHeaderStart(){return fNotRejectedStart;} | |
260 | Int_t * GetAcceptedHeaderEnd(){return fNotRejectedEnd;} | |
ca91a3e1 | 261 | TList* GetAcceptedHeader(){return fHeaderList;} |
11c1e680 | 262 | |
263 | ||
3b77b2d1 | 264 | protected: |
265 | TList *fHistograms; | |
ca91a3e1 | 266 | TList *fHeaderList; |
3b77b2d1 | 267 | AliPIDResponse *fPIDResponse; |
268 | ||
92efd725 | 269 | |
270 | Int_t fEventQuality; // EventQuality | |
3b77b2d1 | 271 | //cuts |
272 | Double_t fMaxR; //r cut | |
273 | Double_t fMinR; //r cut | |
274 | Double_t fEtaCut; //eta cut | |
275 | Double_t fEtaCutMin; //eta cut | |
276 | Double_t fPtCut; // pt cut | |
277 | Double_t fSinglePtCut; // pt cut for electron/positron | |
278 | Double_t fMaxZ; //z cut | |
279 | Double_t fMinClsTPC; // minimum clusters in the TPC | |
280 | Double_t fMinClsTPCToF; // minimum clusters to findable clusters | |
281 | Double_t fLineCutZRSlope; //linecut | |
282 | Double_t fLineCutZValue; //linecut | |
283 | Double_t fLineCutZRSlopeMin; //linecut | |
284 | Double_t fLineCutZValueMin; //linecut | |
285 | Double_t fChi2CutConversion; //chi2cut | |
3b77b2d1 | 286 | Double_t fPIDProbabilityCutNegativeParticle; |
287 | Double_t fPIDProbabilityCutPositiveParticle; | |
288 | Bool_t fDodEdxSigmaCut; // flag to use the dEdxCut based on sigmas | |
289 | Bool_t fDoTOFsigmaCut; // flag to use TOF pid cut RRnewTOF | |
290 | Double_t fPIDTRDEfficiency; // required electron efficiency for TRD PID | |
291 | Bool_t fDoTRDPID; // flag to use TRD pid | |
292 | Double_t fPIDnSigmaAboveElectronLine; // sigma cut | |
293 | Double_t fPIDnSigmaBelowElectronLine; // sigma cut | |
294 | Double_t fTofPIDnSigmaAboveElectronLine; // sigma cut RRnewTOF | |
295 | Double_t fTofPIDnSigmaBelowElectronLine; // sigma cut RRnewTOF | |
296 | Double_t fPIDnSigmaAbovePionLine; // sigma cut | |
297 | Double_t fPIDnSigmaAbovePionLineHighPt; // sigma cut | |
298 | Double_t fPIDMinPnSigmaAbovePionLine; // sigma cut | |
299 | Double_t fPIDMaxPnSigmaAbovePionLine; // sigma cut | |
300 | Double_t fDoKaonRejectionLowP; // Kaon rejection at low p | |
301 | Double_t fDoProtonRejectionLowP; // Proton rejection at low p | |
302 | Double_t fDoPionRejectionLowP; // Pion rejection at low p | |
303 | Double_t fPIDnSigmaAtLowPAroundKaonLine; // sigma cut | |
304 | Double_t fPIDnSigmaAtLowPAroundProtonLine; // sigma cut | |
305 | Double_t fPIDnSigmaAtLowPAroundPionLine; // sigma cut | |
306 | Double_t fPIDMinPKaonRejectionLowP; // Momentum limit to apply kaon rejection | |
307 | Double_t fPIDMinPProtonRejectionLowP; // Momentum limit to apply proton rejection | |
308 | Double_t fPIDMinPPionRejectionLowP; // Momentum limit to apply proton rejection | |
309 | Bool_t fDoQtGammaSelection; // Select gammas using qtMax | |
310 | Bool_t fDoHighPtQtGammaSelection; // RRnew Select gammas using qtMax for high pT | |
311 | Double_t fQtMax; // Maximum Qt from Armenteros to select Gammas | |
312 | Double_t fHighPtQtMax; // RRnew Maximum Qt for High pT from Armenteros to select Gammas | |
313 | Double_t fPtBorderForQt; // RRnew | |
314 | Double_t fXVertexCut; //vertex cut | |
315 | Double_t fYVertexCut; //vertex cut | |
316 | Double_t fZVertexCut; // vertexcut | |
317 | Double_t fNSigmaMass; //nsigma cut | |
318 | Bool_t fUseEtaMinCut; //flag | |
319 | Bool_t fUseOnFlyV0Finder; //flag | |
320 | Bool_t fDoPhotonAsymmetryCut; // flag to use the PhotonAsymetryCut | |
321 | Double_t fMinPPhotonAsymmetryCut; // Min Momentum for Asymmetry Cut | |
322 | Double_t fMinPhotonAsymmetry; // Asymmetry Cut | |
0a2b2b4b | 323 | Int_t fIsHeavyIon; // flag for heavy ion |
92efd725 | 324 | Int_t fDetectorCentrality; // centrality detecotor V0M or CL1 |
325 | Int_t fModCentralityClass; // allows to select smaller centrality classes | |
3b77b2d1 | 326 | Double_t fMaxVertexZ; // max z offset of vertex |
92efd725 | 327 | Int_t fCentralityMin; // centrality selection lower bin value |
328 | Int_t fCentralityMax; // centrality selection upper bin value | |
3b77b2d1 | 329 | Bool_t fUseCorrectedTPCClsInfo; // flag to use corrected tpc cl info |
330 | Bool_t fUseTOFpid; // flag to use tof pid | |
92efd725 | 331 | Int_t fMultiplicityMethod; // selected multiplicity method |
e5b6e8a6 | 332 | Int_t fSpecialTrigger; // flag |
3b77b2d1 | 333 | Bool_t fRemovePileUp; //flag |
334 | Float_t fOpeningAngle; // min opening angle for meson | |
335 | Float_t fPsiPairCut; | |
336 | Float_t fCosPAngleCut; | |
92efd725 | 337 | Bool_t fDoToCloseV0sCut; // |
ca91a3e1 | 338 | Int_t fRejectExtraSignals;// |
92efd725 | 339 | Double_t fminV0Dist; // |
340 | Bool_t fDoSharedElecCut; // | |
341 | UInt_t fOfflineTriggerMask; // Task processes collision candidates only | |
e5b6e8a6 | 342 | Bool_t fHasV0AND; // V0AND Offline Trigger |
343 | Bool_t fIsSDDFired; // SDD FIRED to select with SDD events | |
92efd725 | 344 | TRandom3 fRandom; // |
e5b6e8a6 | 345 | Int_t fElectronArraySize; // Size of electron array |
346 | Int_t *fElectronLabelArray; //[fElectronArraySize] | |
2bb2434e | 347 | Float_t fConversionPointXArray; // Array with conversion Point x |
348 | Float_t fConversionPointYArray; // Array with conversion Point y | |
349 | Float_t fConversionPointZArray; // Array with conversion Point z | |
e5b6e8a6 | 350 | Int_t fnHeaders; // Number of Headers |
4a0aab28 | 351 | Int_t *fNotRejectedStart; //[fnHeaders] |
352 | Int_t *fNotRejectedEnd; //[fnHeaders] | |
353 | TString *fGeneratorNames; //[fnHeaders] | |
0a2b2b4b | 354 | TObjString *fCutString; // cut number used for analysis |
355 | AliAnalysisUtils *fUtils; | |
11c1e680 | 356 | Double_t fEtaShift; |
ae947965 | 357 | Bool_t fDoEtaShift; // Flag for Etashift |
358 | Bool_t fDoReweightHistoMCPi0; // Flag for reweighting Pi0 input with histogram | |
359 | Bool_t fDoReweightHistoMCEta; // Flag for reweighting Eta input with histogram | |
360 | Bool_t fDoReweightHistoMCK0s; // Flag for reweighting K0s input with histogram | |
361 | TString fPathTrFReweighting; // Path for file used in reweighting | |
362 | TString fNameHistoReweightingPi0; //Histogram name for reweighting Pi0 | |
363 | TString fNameHistoReweightingEta; //Histogram name for reweighting Eta | |
364 | TString fNameHistoReweightingK0s; //Histogram name for reweighting K0s | |
3b77b2d1 | 365 | // Histograms |
3b77b2d1 | 366 | TH1F *hdEdxCuts; // bookkeeping for dEdx cuts |
367 | TH2F *hTPCdEdxbefore; // TPC dEdx before cuts | |
368 | TH2F *hTPCdEdxafter; // TPC dEdx after cuts | |
e5b6e8a6 | 369 | TH2F *hTPCdEdxSigbefore; // TPC Sigma dEdx before cuts |
370 | TH2F *hTPCdEdxSigafter; // TPC Sigm dEdx after cuts | |
371 | TH2F *hTOFbefore; // TOF before cuts | |
372 | TH2F *hTOFSigbefore; // TOF Sigma before cuts | |
373 | TH2F *hTOFSigafter; // TOF Sigma after cuts | |
3b77b2d1 | 374 | TH1F *hTrackCuts; // bookkeeping for track cuts |
375 | TH1F *hPhotonCuts; // bookkeeping for photon specific cuts | |
376 | TH1F *hInvMassbefore; // e+e- inv mass distribution before cuts | |
377 | TH2F *hArmenterosbefore; // armenteros podolanski plot before cuts | |
378 | TH1F *hInvMassafter; // e+e- inv mass distribution after cuts | |
379 | TH2F *hArmenterosafter; // armenteros podolanski plot after cuts | |
380 | TH1F *hAcceptanceCuts; // bookkeeping for acceptance cuts | |
381 | TH1F *hCutIndex; // bookkeeping for cuts | |
382 | TH1F *hV0EventCuts; // bookkeeping for event selection cuts | |
383 | TH1F *hCentrality; // centrality distribution for selected events | |
384 | TH1F *hVertexZ; // vertex z distribution for selected events | |
92efd725 | 385 | TH1F *hTriggerClass; //fired offline trigger class |
a280ac15 | 386 | TH1F *hTriggerClassSelected; //selected fired offline trigger class |
ae947965 | 387 | TH1D *hReweightMCHistPi0; //histogram input for reweighting Pi0 |
388 | TH1D *hReweightMCHistEta; //histogram input for reweighting Eta | |
389 | TH1D *hReweightMCHistK0s; //histogram input for reweighting K0s | |
390 | Bool_t fPreSelCut; // Flag for preselection cut used in V0Reader | |
391 | Bool_t fTriggerSelectedManually; // Flag for manual trigger selection | |
392 | TString fSpecialTriggerName; // Name of the Special Triggers | |
a280ac15 | 393 | private: |
3b77b2d1 | 394 | |
ae947965 | 395 | ClassDef(AliConversionCuts,4) |
3b77b2d1 | 396 | }; |
397 | ||
398 | ||
399 | inline void AliConversionCuts::InitAODpidUtil(Int_t type) { | |
400 | if (!fPIDResponse) fPIDResponse = new AliAODpidUtil(); | |
401 | Double_t alephParameters[5]; | |
402 | // simulation | |
403 | alephParameters[0] = 2.15898e+00/50.; | |
404 | alephParameters[1] = 1.75295e+01; | |
405 | alephParameters[2] = 3.40030e-09; | |
406 | alephParameters[3] = 1.96178e+00; | |
407 | alephParameters[4] = 3.91720e+00; | |
408 | fPIDResponse->GetTOFResponse().SetTimeResolution(80.); | |
409 | ||
410 | // data | |
411 | if (type==1){ | |
412 | alephParameters[0] = 0.0283086/0.97; | |
413 | alephParameters[1] = 2.63394e+01; | |
414 | alephParameters[2] = 5.04114e-11; | |
415 | alephParameters[3] = 2.12543e+00; | |
416 | alephParameters[4] = 4.88663e+00; | |
417 | fPIDResponse->GetTOFResponse().SetTimeResolution(130.); | |
418 | fPIDResponse->GetTPCResponse().SetMip(50.); | |
419 | } | |
420 | ||
421 | fPIDResponse->GetTPCResponse().SetBetheBlochParameters( | |
422 | alephParameters[0],alephParameters[1],alephParameters[2], | |
423 | alephParameters[3],alephParameters[4]); | |
424 | ||
425 | fPIDResponse->GetTPCResponse().SetSigma(3.79301e-03, 2.21280e+04); | |
426 | } | |
427 | ||
428 | ||
429 | #endif |