AliPhysics  dde76db (dde76db)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Go to the documentation of this file.
3 /* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
6 /* $Id$ */
8 //***********************************************************
11 //***********************************************************
13 #include "AliRDHFCuts.h"
16 {
17  public:
24  };
26  AliRDHFCutsXictoeleXifromAODtracks(const char* name="CutsXictoeleXi");
32  virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters);
35  virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel);
37  virtual Int_t IsSelectedPID(AliAODRecoDecayHF* obj);
39  Bool_t IsSelectedeID(AliAODTrack* trk);
40  Bool_t IsSelectedCustomizedeID(AliAODTrack* trk);
41  Bool_t IsSelectedCustomizedPtDepeID(AliAODTrack* trk, AliAODTrack *trkpid);
42  Bool_t IsSelectedCombinedeID(AliAODTrack* trk);
43  Int_t IsSelected(TLorentzVector* vtrk, TLorentzVector *vcasc, Double_t *cutvars, Int_t selectionLevel);
45  void SetPIDStrategy(EPIDStrategy pidStrategy){fPIDStrategy=pidStrategy;}
50  void SetUseV0Topology(Int_t a) { fUseV0Topology=a; }
51  Int_t GetUseV0Topology() { return fUseV0Topology; }
53  Bool_t SingleTrkCuts(AliAODTrack *trk, AliAODTrack *trkpid, AliAODVertex *primvert);
54  Bool_t SingleTrkCutsNoPID(AliAODTrack *trk, AliAODTrack *trkpid, AliAODVertex *primvert);
55  Bool_t SingleCascadeCuts(AliAODcascade *casc, Double_t *vert);
56  Bool_t TagConversions(AliAODTrack *etrk, Int_t *id2index, AliAODEvent *evt, Int_t ntrk, Double_t &minmass);
57  Bool_t TagConversionsSameSign(AliAODTrack *etrk, Int_t *id2index, AliAODEvent *evt, Int_t ntrk, Double_t &minmass);
58  Bool_t SelectWithRoughCuts(AliAODcascade *casc, AliAODTrack *trk1);
60  void SetMagneticField(Double_t a){fBzkG = a;}
61  void SetPrimaryVertex(Double_t *a){fPrimVert[0] = a[0];fPrimVert[1] = a[1];fPrimVert[2] = a[2];}
70  void SetProdMassTolXi(Double_t a){fProdMassTolXi=a;}
72  void SetProdRfidMinV0(Double_t a){fProdRfidMinV0=a;}
73  void SetProdRfidMaxV0(Double_t a){fProdRfidMaxV0=a;}
74  void SetProdRfidMinXi(Double_t a){fProdRfidMinXi=a;}
75  void SetProdRfidMaxXi(Double_t a){fProdRfidMaxXi=a;}
86  void SetProdCascEtaRange(Double_t a, Double_t b){fProdCascEtaMin=a;fProdCascEtaMax=b;}
87  void SetProdCascRapRange(Double_t a, Double_t b){fProdCascRapMin=a;fProdCascRapMax=b;}
88  void SetProdCascPtRange(Double_t a, Double_t b){fProdCascPtMin=a;fProdCascPtMax=b;}
90  void SetProdRoughPtMin(Double_t a){fProdRoughPtMin=a;}
99  Double_t GetProdMassTolXi(){return fProdMassTolXi;}
101  Double_t GetProdRfidMinV0(){return fProdRfidMinV0;}
102  Double_t GetProdRfidMaxV0(){return fProdRfidMaxV0;}
103  Double_t GetProdRfidMinXi(){return fProdRfidMinXi;}
104  Double_t GetProdRfidMaxXi(){return fProdRfidMaxXi;}
115  Double_t GetProdRoughPtMin(){return fProdRoughPtMin;}
117  void GetProdCascEtaRange(Double_t &a, Double_t &b){a=fProdCascEtaMin;b=fProdCascEtaMax;}
118  void GetProdCascRapRange(Double_t &a, Double_t &b){a=fProdCascRapMin;b=fProdCascRapMax;}
119  void GetProdCascPtRange(Double_t &a, Double_t &b){a=fProdCascPtMin;b=fProdCascPtMax;}
122  void SetUseCascadePID(Bool_t a){fUseCascadePID=a;}
123  void SetPidCascPi(AliAODPidHF* pidPion) {
124  if(fPidObjCascPi) delete fPidObjCascPi;
125  fPidObjCascPi=new AliAODPidHF(*pidPion);
126  }
128  void SetPidCascPr(AliAODPidHF* pidProton) {
129  if(fPidObjCascPr) delete fPidObjCascPr;
130  fPidObjCascPr=new AliAODPidHF(*pidProton);
131  }
151  Bool_t IsPeakRegion(AliAODcascade *c);
152  Bool_t IsPeakRegion(TLorentzVector *c);
153  Bool_t IsSideBand(AliAODcascade *c);
154  Bool_t IsSideBand(TLorentzVector *c);
156  void SetSftPosR125(AliAODTrack *track,Double_t bfield,Double_t priVtx[3], Double_t *XSftR125);
157  Double_t dEtaSR125(Double_t *postrack1,Double_t *postrack2);
158  Double_t dPhiSR125(Double_t *postrack1,Double_t *postrack2);
159  Double_t GetdPhiSdEtaSR125(AliAODTrack *tracke, AliAODTrack *trackp,AliAODTrack *trackn, AliAODTrack *trackb, Double_t bfield,Double_t priVtx[3], Double_t &dPhiS_ep, Double_t &dEtaS_ep,Double_t &dPhiS_en, Double_t &dEtaS_en, Double_t &dPhiS_eb, Double_t &dEtaS_eb);
160  Double_t DeltaPhi(AliAODcascade *casc, AliAODTrack *trk);
161  Double_t DeltaEta(AliAODcascade *casc, AliAODTrack *trk);
163  protected:
165  private:
169  Bool_t fUseCascadePID;
172 // Bool_t fUseOnTheFlyV0; /// Flag to check if we use on-the-fly v0
174  Double_t fBzkG;
175  Double_t fPrimVert[3];
184  Double_t fProdMassTolXi;
185  Double_t fProdMassRejOmega;
186  Double_t fProdRfidMinV0;
187  Double_t fProdRfidMaxV0;
188  Double_t fProdRfidMinXi;
189  Double_t fProdRfidMaxXi;
200  Double_t fProdCascEtaMin;
201  Double_t fProdCascEtaMax;
202  Double_t fProdCascRapMin;
203  Double_t fProdCascRapMax;
204  Double_t fProdCascPtMin;
205  Double_t fProdCascPtMax;
206  Double_t fProdRoughMassTol;
207  Double_t fProdRoughPtMin;
228 };
230 #endif
Bool_t IsSelectedCustomizedPtDepeID(AliAODTrack *trk, AliAODTrack *trkpid)
Int_t fUseV0Topology
PID object for cascade-proton.
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)=0
Double_t fConversionMassMax
nSigma to exclude for Kaon band
Double_t fSigmaElectronTPCMax
nSigma electron lower limit (par2)
AliRDHFCutsXictoeleXifromAODtracks(const char *name="CutsXictoeleXi")
Bool_t fExcludePionTPC
pT cut for Lc used before object creation
Double_t fProdRfidMaxV0
Minimum Decay vertex of V0.
Bool_t SingleCascadeCuts(AliAODcascade *casc, Double_t *vert)
Double_t dEtaSR125(Double_t *postrack1, Double_t *postrack2)
AliRDHFCutsXictoeleXifromAODtracks & operator=(const AliRDHFCutsXictoeleXifromAODtracks &source)
Double_t fProdDcaV0PrToPrimVertexMin
Min Dca between v0 and PV.
Bool_t fExcludeKaonTPC
Flag wheter to exlude proton band.
Double_t fProdV0CosineOfPoiningAngleXiMin
Min Xi cos pointing angle to PV.
Double_t fExcludenSigmaPionTPC
Flag wheter to exlude proton band.
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)
Double_t fProdCascEtaMin
Minimum number of TPC clusters.
Double_t fProdMassTolXi
Tolerance of Xi mass from PDG value (including sideband)
Double_t fProdDcaBachToPrimVertexMin
Max Dca between V0 daughters.
Double_t fProdMassRejOmega
Tolerance of Xi mass from PDG value.
Double_t fProdTrackTPCNclsRatioMin
Min. Number of TPC PID cluster.
Double_t fProdDcaV0DaughtersMax
Max Dca between Xi daughters.
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *obj)
Double_t fExcludenSigmaKaonTPC
nSigma to exclude for proton band
Double_t fProdRfidMaxXi
Minimum Decay vertex of Xi.
Double_t fSigmaElectronTPCMin
nSigma to exclude for Kaon band
Double_t fProdDcaV0ToPrimVertexMin
Min Dca between Bachelor and PV.
Bool_t fExcludeProtonTPC
Flag wheter to exlude pion band.
Bool_t TagConversionsSameSign(AliAODTrack *etrk, Int_t *id2index, AliAODEvent *evt, Int_t ntrk, Double_t &minmass)
AliAODPidHF * fPidObjCascPr
PID object for cascade-pion.
Bool_t TagConversions(AliAODTrack *etrk, Int_t *id2index, AliAODEvent *evt, Int_t ntrk, Double_t &minmass)
Bool_t fUseCascadePID
Threshold used in IsSelectedCombinedPID.
Double_t fSigmaElectronTOFMin
nSigma to exclude for Kaon band
void GetSigmaElectronTPCRange(Double_t &a, Double_t &b)
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *)
Definition: AliRDHFCuts.h:281
Double_t fProdDcaV0PiToPrimVertexMin
Min Dca between v0-proton and PV.
Bool_t fProdRejectTrackWithShared
AOD filter Bit used before object creation.
Double_t fProdMassTolLambda
Flag to Reject tracks with shared clusters.
Bool_t SelectWithRoughCuts(AliAODcascade *casc, AliAODTrack *trk1)
Double_t fSigmaElectronTPCPtDepPar1
nSigma electron lower limit (par0)
Double_t fBzkG
0: Cowboy+Sailor 1: Cowboy 2:Sailor
Double_t fSigmaElectronTPCPtDepPar0
nSigma to exclude for Kaon band
void SetSftPosR125(AliAODTrack *track, Double_t bfield, Double_t priVtx[3], Double_t *XSftR125)
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel)
Double_t fSigmaElectronTPCPtDepPar2
nSigma electron lower limit (par1)
void SetSigmaElectronTPCPtDepPars(Double_t a, Double_t b, Double_t c)
Double_t fSigmaElectronTOFMax
nSigma to exclude for Kaon band
Double_t fProdMassTolXiRough
Tolerance of Lambda mass from PDG value.
Double_t fProdXiCosineOfPoiningAngleMin
Min Dca between v0-pion and PV.
Double_t fProdCascProperDecayLengthMax
Max Decay vertex of Xi.
Double_t fProdCascNTPCClustersMin
Min V0 cos pointing angle to Xi vertex.
Double_t fProdCascRapMax
Minimum rapidity of cascade.
void GetSigmaElectronTPCPtDepPars(Double_t &a, Double_t &b, Double_t &c)
Bool_t fProdUseAODFilterBit
Min. Number of TPC PID cluster.
AliAODPidHF * fPidObjCascPi
Use PID for cascade or not.
Double_t fProdRfidMinV0
Rejection range of Omega mass from PDG value.
Double_t fExcludenSigmaProtonTPC
nSigma to exclude for pion band
Double_t fProdCascPtMin
Maximum rapidity of cascade.
Bool_t IsSelected(TObject *obj)
Definition: AliRDHFCuts.h:274
Bool_t SingleTrkCutsNoPID(AliAODTrack *trk, AliAODTrack *trkpid, AliAODVertex *primvert)
void GetSigmaElectronTOFRange(Double_t &a, Double_t &b)
Int_t fProdAODFilterBit
Flag for AOD filter Bit used before object creation.
Double_t fProdRoughPtMin
Mass cut for Lc used before object creation.
Bool_t SingleTrkCuts(AliAODTrack *trk, AliAODTrack *trkpid, AliAODVertex *primvert)
Double_t GetdPhiSdEtaSR125(AliAODTrack *tracke, AliAODTrack *trackp, AliAODTrack *trackn, AliAODTrack *trackb, Double_t bfield, Double_t priVtx[3], Double_t &dPhiS_ep, Double_t &dEtaS_ep, Double_t &dPhiS_en, Double_t &dEtaS_en, Double_t &dPhiS_eb, Double_t &dEtaS_eb)
Double_t DeltaPhi(AliAODcascade *casc, AliAODTrack *trk)
Double_t DeltaEta(AliAODcascade *casc, AliAODTrack *trk)
void GetSigmaElectronTPCPtDepPars(Double_t &a, Double_t &b)
Double_t dPhiSR125(Double_t *postrack1, Double_t *postrack2)