AliPhysics  88b7ad0 (88b7ad0)
Go to the documentation of this file.
4 #include "AliAODpidUtil.h"
7 #include "AliAODTrack.h"
8 #include "AliESDtrack.h"
9 #include "AliVTrack.h"
10 #include "AliAODTrack.h"
11 #include "AliMCEvent.h"
12 #include "AliAnalysisCuts.h"
13 #include "TH1F.h"
14 #include "AliAODMCParticle.h"
15 #include "AliCaloPhotonCuts.h"
17 class AliESDEvent;
18 class AliAODEvent;
20 class AliKFVertex;
21 class TH1F;
22 class TH2F;
23 class AliPIDResponse;
24 class AliAnalysisCuts;
25 class iostream;
26 class TList;
27 class AliAnalysisManager;
62 class AliConversionMesonCuts : public AliAnalysisCuts {
64  public:
67  enum cutIds {
85  };
87  Bool_t SetCutIds(TString cutString);
89  Bool_t SetCut(cutIds cutID, Int_t cut);
92  static const char * fgkCutNames[kNCuts];
94  Bool_t InitializeCutsFromCutString(const TString analysisCutSelection);
97  AliConversionMesonCuts(const char *name="MesonCuts", const char * title="Meson Cuts");
101  virtual ~AliConversionMesonCuts(); //virtual destructor
103  virtual Bool_t IsSelected(TObject* /*obj*/){return kTRUE;}
104  virtual Bool_t IsSelected(TList* /*list*/) {return kTRUE;}
109  // Cut Selection
110  Bool_t MesonIsSelected(AliAODConversionMother *pi0,Bool_t IsSignal=kTRUE, Double_t fRapidityShift=0., Int_t leadingCellID1 = 0, Int_t leadingCellID2 = 0);
111  Bool_t MesonIsSelectedMC(TParticle *fMCMother,AliMCEvent *mcEvent, Double_t fRapidityShift=0.);
112  Bool_t MesonIsSelectedAODMC(AliAODMCParticle *MCMother,TClonesArray *AODMCArray, Double_t fRapidityShift=0.);
113  Bool_t MesonIsSelectedMCDalitz(TParticle *fMCMother,AliMCEvent *mcEvent, Int_t &labelelectron, Int_t &labelpositron, Int_t &labelgamma,Double_t fRapidityShift=0.);
114  Bool_t MesonIsSelectedAODMCDalitz(AliAODMCParticle *MCMother,TClonesArray *AODMCArray, Int_t &labelelectron, Int_t &labelpositron, Int_t &labelgamma,Double_t fRapidityShift=0.);
115  Bool_t MesonIsSelectedMCEtaPiPlPiMiGamma(TParticle *fMCMother,AliMCEvent *mcEvent, Int_t &labelNegPion, Int_t &labelPosPion, Int_t &labelGamma, Double_t fRapidityShift=0);
116  Bool_t MesonIsSelectedMCPiPlPiMiPiZero(TParticle *fMCMother,AliMCEvent *mcEvent, Int_t &labelNegPion, Int_t &labelPosPion, Int_t &labelNeutPion, Double_t fRapidityShift=0);
117  Bool_t MesonIsSelectedMCPiZeroGamma(TParticle *fMCMother, AliMCEvent *mcEvent, Int_t &labelNeutPion, Int_t &labelGamma, Double_t fRapidityShift=0);
118  Bool_t MesonIsSelectedMCChiC(TParticle *fMCMother,AliMCEvent *mcEvent, Int_t &, Int_t &, Int_t &, Double_t fRapidityShift=0. );
120  Bool_t DoPiZeroAngleCut, TF1 *maxfit, Double_t lowerFactor, Double_t upperFactor);
121  void PrintCuts();
122  void PrintCutsWithValues();
124  void SetLightOutput( Bool_t flag ){fDoLightOutput = flag; return;}
125  void SetRunningMode(Int_t mode){fMode = mode; return;}
126  void InitCutHistograms(TString name="",Bool_t additionalHists=kFALSE);
129  void SmearParticle(AliAODConversionPhoton * photon);
131  TLorentzVector SmearElectron(TLorentzVector particle);
135  //Cut functions
137  Bool_t RejectToCloseV0s(AliAODConversionPhoton* photon, TList *photons, Int_t nV0);
141  // Set Individual Cuts
142  Bool_t SetMinPtCut(Int_t PtCut);
143  Bool_t SetMesonKind(Int_t mesonKind);
144  Bool_t SetSelectionWindowCut(Int_t selectionCut);
146  Bool_t SetAlphaMesonCut(Int_t alphaMesonCut);
147  Bool_t SetAlphaMesonMergedCut(Int_t alphaMesonCut);
148  Bool_t SetRapidityMesonCut(Int_t RapidityMesonCut);
149  Bool_t SetBackgroundScheme(Int_t BackgroundScheme);
150  Bool_t SetNDegreesForRotationMethod(Int_t DegreesForRotationMethod);
151  Bool_t SetNumberOfBGEvents(Int_t NumberOfBGEvents);
152  Bool_t SetMCPSmearing(Int_t useMCPSmearing);
153  Bool_t SetSharedElectronCut(Int_t sharedElec);
154  Bool_t SetToCloseV0sCut(Int_t toClose);
155  Bool_t SetDCAGammaGammaCut(Int_t DCAGammaGamma);
156  Bool_t SetDCAZMesonPrimVtxCut(Int_t DCAZMesonPrimVtx);
157  Bool_t SetDCARMesonPrimVtxCut(Int_t DCARMesonPrimVtx);
158  void SetOpeningAngleCut(Float_t OpeningAngle){fOpeningAngle = OpeningAngle;}
159  Bool_t SetMinOpanMesonCut(Int_t minOpanMesonCut);
160  Bool_t SetMaxOpanMesonCut(Int_t maxOpanMesonCut);
162  void SetIsMergedClusterCut(Int_t merged) { fIsMergedClusterCut = merged; return;}
169  // Request Flags
184  Double_t GetMinPt() const {return fMinPt;}
195  protected:
196  TRandom3 fRandom;
199  TObjString* fCutString;
201  // Histograms
213  TF1* fBrem;
214  TF1* fFAlphaCut;
250  Int_t* fElectronLabelArray; //[fElectronLabelArraySize] Array with elec/pos v0 label
277  private:
280  ClassDef(AliConversionMesonCuts,24)
282 };
285 #endif
Bool_t fAcceptMesonMass
flag to distinguish rejecting and accepting meson mass window for further analysis ...
AliCaloPhotonCuts * fCaloPhotonCuts
CaloPhotonCutObject belonging to same main task.
void SetLightOutput(Bool_t flag)
Bool_t SetSelectionWindowMergedCut(Int_t selectionCut)
double Double_t
Definition: External.C:58
Int_t fSelectionWindowCut
selection window for merged ana in mass
Definition: External.C:236
const char * title
Definition: MakeQAPdf.C:27
AliConversionMesonCuts & operator=(const AliConversionMesonCuts &)
void FillElectonLabelArray(AliAODConversionPhoton *photon, Int_t nV0)
void SetDefaultSmearing(Double_t p0, Double_t p1, Double_t p2)
Bool_t SetBackgroundScheme(Int_t BackgroundScheme)
Bool_t MesonIsSelectedMCPiZeroGamma(TParticle *fMCMother, AliMCEvent *mcEvent, Int_t &labelNeutPion, Int_t &labelGamma, Double_t fRapidityShift=0)
Double_t GetSidebandMixingLow() const
Double_t GetSidebandMixingRightLow() const
virtual Bool_t IsSelected(TList *)
void SetEnableOpeningAngleCut(Bool_t isOn)
Double_t GetSidebandMixingHigh() const
Float_t FunctionMaxMassCut(Float_t e)
Double_t fDCARMesonPrimVtxCut
cut value for the maximum distance in R between the production point of the Meson & the primary verte...
Double_t fRapidityCutMeson
max value for meson rapidity
Bool_t SetNumberOfBGEvents(Int_t NumberOfBGEvents)
Int_t fMode
running mode of ConversionMesonCuts to select different sets of cut parameters for different running ...
Bool_t MesonIsSelectedMCChiC(TParticle *fMCMother, AliMCEvent *mcEvent, Int_t &, Int_t &, Int_t &, Double_t fRapidityShift=0.)
Bool_t MesonIsSelectedAODMC(AliAODMCParticle *MCMother, TClonesArray *AODMCArray, Double_t fRapidityShift=0.)
Double_t GetSidebandMixingLeftLow() const
Bool_t RejectSharedElectronV0s(AliAODConversionPhoton *photon, Int_t nV0, Int_t nV0s)
Double_t GetAcceptMassFlag() const
void InitCutHistograms(TString name="", Bool_t additionalHists=kFALSE)
Bool_t SetAlphaMesonMergedCut(Int_t alphaMesonCut)
Double_t fSelectionHigh
higher meson inv mass window for further selection
Bool_t MesonIsSelectedMCEtaPiPlPiMiGamma(TParticle *fMCMother, AliMCEvent *mcEvent, Int_t &labelNegPion, Int_t &labelPosPion, Int_t &labelGamma, Double_t fRapidityShift=0)
Bool_t SetToCloseV0sCut(Int_t toClose)
Bool_t MesonIsSelectedMCDalitz(TParticle *fMCMother, AliMCEvent *mcEvent, Int_t &labelelectron, Int_t &labelpositron, Int_t &labelgamma, Double_t fRapidityShift=0.)
Float_t fOpeningAngle
min opening angle for meson
Bool_t fDoBG
flag to intialize BG
Bool_t MesonIsSelectedMCPiPlPiMiPiZero(TParticle *fMCMother, AliMCEvent *mcEvent, Int_t &labelNegPion, Int_t &labelPosPion, Int_t &labelNeutPion, Double_t fRapidityShift=0)
Bool_t SetSelectionWindowCut(Int_t selectionCut)
Double_t GetSidebandMixingRightHigh() const
Bool_t MesonIsSelectedAODMCDalitz(AliAODMCParticle *MCMother, TClonesArray *AODMCArray, Int_t &labelelectron, Int_t &labelpositron, Int_t &labelgamma, Double_t fRapidityShift=0.)
void SetCaloMesonCutsObject(AliCaloPhotonCuts *cuts)
Bool_t SetDCAGammaGammaCut(Int_t DCAGammaGamma)
Float_t FunctionMinMassCut(Float_t e)
Bool_t fUseTrackMultiplicityForBG
flag to use track multiplicity for meson bg estimation (else V0 mult)
Bool_t SetCutIds(TString cutString)
int Int_t
Definition: External.C:63
Class handling all kinds of selection cuts for Gamma Calo analysis.
Bool_t SetRapidityMesonCut(Int_t RapidityMesonCut)
Bool_t SetAlphaMesonCut(Int_t alphaMesonCut)
Double_t fAlphaCutMeson
max value for meson alpha cut
float Float_t
Definition: External.C:68
void SetFillCutHistograms(TString name="")
void SmearParticle(AliAODConversionPhoton *photon)
Bool_t RejectToCloseV0s(AliAODConversionPhoton *photon, TList *photons, Int_t nV0)
Double_t GetSelectionLow() const
void SetIsMergedClusterCut(Int_t merged)
TH2F * fHistoMesonCuts
bookkeeping for meson cuts
Bool_t fUsePtmaxMethodForBG
flag to apply Ptmax method
void SetOpeningAngleCut(Float_t OpeningAngle)
TObjString * fCutString
cut number used for analysis
Double_t GetSidebandMixingLeftHigh() const
Int_t mode
Definition: anaM.C:41
void SmearVirtualPhoton(AliAODConversionPhoton *photon)
Bool_t fEnableMinOpeningAngleCut
flag to enable min opening angle cut
Int_t fIsMergedClusterCut
flag for merged cluster and di cluster analysis
Bool_t fDoMinPtCut
do min pT cut
Double_t GetSelectionHigh() const
Bool_t MesonIsSelectedPiZeroGammaAngle(AliAODConversionMother *omega, AliAODConversionMother *pi0, AliAODConversionPhoton *gamma, Bool_t DoPiZeroAngleCut, TF1 *maxfit, Double_t lowerFactor, Double_t upperFactor)
Bool_t fEnableMassCut
flag to enable mass cut
Bool_t MesonIsSelectedMC(TParticle *fMCMother, AliMCEvent *mcEvent, Double_t fRapidityShift=0.)
Bool_t fDoLightOutput
switch for running light output, kFALSE -> normal mode, kTRUE -> light mode
static const char * fgkCutNames[kNCuts]
Bool_t fEnableOneCellDistCut
flag to enable 1 cell dist cut
Bool_t SetDCAZMesonPrimVtxCut(Int_t DCAZMesonPrimVtx)
AliConversionMesonCuts(const char *name="MesonCuts", const char *title="Meson Cuts")
Class handling all kinds of selection cuts for Gamma Conversion analysis.
Bool_t MesonIsSelected(AliAODConversionMother *pi0, Bool_t IsSignal=kTRUE, Double_t fRapidityShift=0., Int_t leadingCellID1=0, Int_t leadingCellID2=0)
TH2F * fHistoMesonBGCuts
bookkeeping for meson bg cuts
Bool_t SetMaxOpanMesonCut(Int_t maxOpanMesonCut)
Double_t fSelectionLow
lower meson inv mass window for further selection
Bool_t fDCARMesonPrimVtxCutOn
cut flag for the maximum distance in R between the production point of the Meson & the primary vertex...
Bool_t SetSharedElectronCut(Int_t sharedElec)
bool Bool_t
Definition: External.C:53
Bool_t fDCAZMesonPrimVtxCutOn
cut flag for the maximum distance in Z between the production point of the Meson & the primary vertex...
Bool_t SetNDegreesForRotationMethod(Int_t DegreesForRotationMethod)
Bool_t fDoBGProbability
flag to use probability method for meson bg estimation
Bool_t SetMinOpanMesonCut(Int_t minOpanMesonCut)
Bool_t MesonIsSelectedByMassCut(AliAODConversionMother *meson, Int_t nominalRange)
Bool_t fUseRotationMethodInBG
flag to apply rotation method for meson bg estimation
Double_t fAlphaMinCutMeson
min value for meson alpha cut
TLorentzVector SmearElectron(TLorentzVector particle)
TList * fHistograms
List of QA histograms.
TString meson
Bool_t SetMesonKind(Int_t mesonKind)
Double_t fDCAGammaGammaCut
cut value for the maximum distance between the two photons [cm]
Bool_t fDCAGammaGammaCutOn
cut flag for the maximum distance between the two photons
Bool_t InitializeCutsFromCutString(const TString analysisCutSelection)
Bool_t SetDCARMesonPrimVtxCut(Int_t DCARMesonPrimVtx)
Bool_t SetMCPSmearing(Int_t useMCPSmearing)
Bool_t SetCut(cutIds cutID, Int_t cut)
Double_t fDCAZMesonPrimVtxCut
cut value for the maximum distance in Z between the production point of the Meson & the primary verte...
virtual Bool_t IsSelected(TObject *)