1 #ifndef ALICONVERSIONMESONCUTS_H
2 #define ALICONVERSIONMESONCUTS_H
4 // Class handling all kinds of selection cuts for Gamma Conversion analysis
5 // Authors: Svein Lindal, Daniel Lohner *
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"
15 #include "AliAnalysisCuts.h"
17 #include "AliAODMCParticle.h"
21 class AliConversionPhotonBase;
26 class AliAnalysisCuts;
29 class AliAnalysisManager;
34 class AliConversionMesonCuts : public AliAnalysisCuts {
43 kDegreesForRotationMethod,
57 Bool_t SetCutIds(TString cutString);
59 Bool_t SetCut(cutIds cutID, Int_t cut);
60 Bool_t UpdateCutString();
62 static const char * fgkCutNames[kNCuts];
64 Bool_t InitializeCutsFromCutString(const TString analysisCutSelection);
65 void FillElectonLabelArray(AliAODConversionPhoton* photon, Int_t nV0);
67 AliConversionMesonCuts(const char *name="MesonCuts", const char * title="Meson Cuts");
68 AliConversionMesonCuts(const AliConversionMesonCuts&);
69 AliConversionMesonCuts& operator=(const AliConversionMesonCuts&);
71 virtual ~AliConversionMesonCuts(); //virtual destructor
73 virtual Bool_t IsSelected(TObject* /*obj*/){return kTRUE;}
74 virtual Bool_t IsSelected(TList* /*list*/) {return kTRUE;}
76 TString GetCutNumber();
79 Bool_t MesonIsSelected(AliAODConversionMother *pi0,Bool_t IsSignal=kTRUE, Double_t fRapidityShift=0.);
80 Bool_t MesonIsSelectedMC(TParticle *fMCMother,AliStack *fMCStack, Double_t fRapidityShift=0.);
81 Bool_t MesonIsSelectedAODMC(AliAODMCParticle *MCMother,TClonesArray *AODMCArray, Double_t fRapidityShift=0.);
82 Bool_t MesonIsSelectedMCDalitz(TParticle *fMCMother,AliStack *fMCStack, Int_t &labelelectron, Int_t &labelpositron, Int_t &labelgamma,Double_t fRapidityShift=0.);
83 Bool_t MesonIsSelectedMCChiC(TParticle *fMCMother,AliStack *fMCStack, Int_t &, Int_t &, Int_t &, Double_t fRapidityShift=0. );
86 void InitCutHistograms(TString name="",Bool_t additionalHists=kFALSE);
87 void SetFillCutHistograms(TString name=""){if(!fHistograms){InitCutHistograms(name);};}
88 TList *GetCutHistograms(){return fHistograms;}
89 void SmearParticle(AliAODConversionPhoton * photon);
91 Bool_t RejectSharedElectronV0s(AliAODConversionPhoton* photon, Int_t nV0, Int_t nV0s);
92 Bool_t RejectToCloseV0s(AliAODConversionPhoton* photon, TList *photons, Int_t nV0);
93 // Set Individual Cuts
94 Bool_t SetRCut(Int_t RCut);
95 Bool_t SetMesonKind(Int_t mesonKind);
96 Bool_t SetChi2MesonCut(Int_t chi2MesonCut);
97 Bool_t SetAlphaMesonCut(Int_t alphaMesonCut);
98 Bool_t SetRapidityMesonCut(Int_t RapidityMesonCut);
99 Bool_t SetBackgroundScheme(Int_t BackgroundScheme);
100 Bool_t SetNDegreesForRotationMethod(Int_t DegreesForRotationMethod);
101 Bool_t SetNumberOfBGEvents(Int_t NumberOfBGEvents);
102 Bool_t SetMCPSmearing(Int_t useMCPSmearing);
103 Bool_t SetSharedElectronCut(Int_t sharedElec);
104 Bool_t SetToCloseV0sCut(Int_t toClose);
105 Bool_t SetDCAGammaGammaCut(Int_t DCAGammaGamma);
106 Bool_t SetDCAZMesonPrimVtxCut(Int_t DCAZMesonPrimVtx);
107 Bool_t SetDCARMesonPrimVtxCut(Int_t DCARMesonPrimVtx);
110 Bool_t UseRotationMethod(){return fUseRotationMethodInBG;}
111 Bool_t UseTrackMultiplicity(){return fUseTrackMultiplicityForBG;}
112 Int_t GetNumberOfBGEvents(){return fNumberOfBGEvents;}
113 Int_t NDegreesRotation(){return fnDegreeRotationPMForBG;}
114 Bool_t DoBGCalculation(){return fDoBG;}
115 Bool_t DoBGProbability(){return fdoBGProbability;}
116 Bool_t UseElecSharingCut(){return fDoSharedElecCut;}
117 Bool_t UseToCloseV0sCut(){return fDoToCloseV0sCut;}
118 Bool_t UseMCPSmearing(){return fUseMCPSmearing;}
119 Int_t BackgroundHandlerType(){return fBackgroundHandler;}
125 Double_t fMaxR; //r cut
126 Double_t fChi2CutMeson; //chicut meson
127 Double_t fAlphaMinCutMeson; // min value for meson alpha cut
128 Double_t fAlphaCutMeson; // max value for meson alpha cut
129 Double_t fRapidityCutMeson; // max value for meson rapidity
130 Bool_t fUseRotationMethodInBG; // flag to apply rotation method for meson bg estimation
131 Bool_t fDoBG; // flag to intialize BG
132 Bool_t fdoBGProbability; // flag to use probability method for meson bg estimation
133 Bool_t fUseTrackMultiplicityForBG; // flag to use track multiplicity for meson bg estimation (else V0 mult)
134 Int_t fnDegreeRotationPMForBG; //
135 Int_t fNumberOfBGEvents; //
136 Float_t fOpeningAngle; // min opening angle for meson
137 Bool_t fDoToCloseV0sCut; //
138 Double_t fminV0Dist; //
139 Bool_t fDoSharedElecCut; //
140 Bool_t fUseMCPSmearing; // flag
141 Double_t fPBremSmearing;//
142 Double_t fPSigSmearing; //
143 Double_t fPSigSmearingCte; //
147 Bool_t fAlphaPtDepCut;
148 Int_t fElectronLabelArraySize;
149 Int_t *fElectronLabelArray; //[fElectronLabelArraySize] Array with elec/pos v0 label
150 Double_t fDCAGammaGammaCut; // cut value for the maximum distance between the two photons [cm]
151 Double_t fDCAZMesonPrimVtxCut; // cut value for the maximum distance in Z between the production point of the Meson & the primary vertex [cm]
152 Double_t fDCARMesonPrimVtxCut; // cut value for the maximum distance in R between the production point of the Meson & the primary vertex [cm]
153 Int_t fBackgroundHandler; //
156 TObjString *fCutString; // cut number used for analysis
157 TH1F *hMesonCuts; // bookkeeping for meson cuts
158 TH1F *hMesonBGCuts; // bookkeeping for meson bg cuts
159 TH1F *hDCAGammaGammaMesonBefore;
160 TH1F *hDCAZMesonPrimVtxBefore;
161 TH1F *hDCARMesonPrimVtxBefore;
162 TH1F *hDCAGammaGammaMesonAfter;
163 TH2F *hDCAZMesonPrimVtxAfter;
164 TH1F *hDCARMesonPrimVtxAfter;
169 ClassDef(AliConversionMesonCuts,4)