]>
Commit | Line | Data |
---|---|---|
daf66719 | 1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. */ |
2 | /* See cxx source for full Copyright notice */ | |
3 | /* $Id$ */ | |
4 | ||
5 | // AliFlowTrackESDCuts: | |
6 | // A cut class for ESD, AOD and MC particles for the flow framework | |
7 | // author: Mikolaj Krzewicki (mikolaj.krzewicki@cern.ch) | |
8 | ||
9 | #ifndef ALIFLOWTRACKCUTS_H | |
10 | #define ALIFLOWTRACKCUTS_H | |
11 | ||
32b846cd | 12 | #include <TMatrix.h> |
499fe731 | 13 | #include <TList.h> |
daf66719 | 14 | #include "AliFlowTrackSimpleCuts.h" |
cc0afcfc | 15 | #include "AliFlowTrackSimple.h" |
daf66719 | 16 | #include "AliESDtrackCuts.h" |
17 | #include "TMCProcess.h" | |
1ff4bda1 | 18 | #include "AliESDtrack.h" |
2e5052c5 | 19 | #include "AliMuonTrackCuts.h" // XZhang 20120604 |
32b846cd | 20 | #include "AliPID.h" |
aab6527a | 21 | #include "AliESDpid.h" |
daf66719 | 22 | |
499fe731 | 23 | class TBrowser; |
daf66719 | 24 | class AliVParticle; |
25 | class AliMCParticle; | |
26 | class AliFlowTrack; | |
27 | class AliMCEvent; | |
68e9b988 | 28 | class AliInputEventHandler; |
daf66719 | 29 | class AliVEvent; |
12b2b8bc | 30 | class AliMultiplicity; |
2e5052c5 | 31 | class AliAODTracklets; // XZhang 20120615 |
42655d16 | 32 | class AliAODTrack; |
33 | class AliESDtrack; | |
d148af7e | 34 | class AliESDPmdTrack; |
cc0afcfc | 35 | class AliFlowBayesianPID; |
daf66719 | 36 | |
37 | class AliFlowTrackCuts : public AliFlowTrackSimpleCuts { | |
38 | ||
39 | public: | |
40 | AliFlowTrackCuts(); | |
441ea1cf | 41 | AliFlowTrackCuts(const char* name); |
daf66719 | 42 | AliFlowTrackCuts(const AliFlowTrackCuts& someCuts); |
43 | AliFlowTrackCuts& operator=(const AliFlowTrackCuts& someCuts); | |
44 | virtual ~AliFlowTrackCuts(); | |
45 | ||
1a80f9f6 | 46 | static AliFlowTrackCuts* GetStandardTPCStandaloneTrackCuts(); |
47 | static AliFlowTrackCuts* GetStandardTPCStandaloneTrackCuts2010(); | |
a0241c3a | 48 | static AliFlowTrackCuts* GetStandardGlobalTrackCuts2010(); |
daf66719 | 49 | static AliFlowTrackCuts* GetStandardITSTPCTrackCuts2009(Bool_t selPrimaries=kTRUE); |
1a80f9f6 | 50 | static AliFlowTrackCuts* GetStandardVZEROOnlyTrackCuts(); |
84714904 | 51 | static AliFlowTrackCuts* GetStandardMuonTrackCuts(Bool_t isMC=kFALSE, Int_t passN=2); // XZhang 20120604 |
daf66719 | 52 | |
a0241c3a | 53 | Int_t Count(AliVEvent* event=NULL); |
54 | ||
2b1eaa10 | 55 | enum trackParameterType { kMC, |
56 | kGlobal, | |
1a80f9f6 | 57 | kTPCstandalone, |
58 | kSPDtracklet, | |
22289738 | 59 | kPMD, |
2e5052c5 | 60 | kV0, |
61 | kMUON // XZhang 20120604 | |
2b1eaa10 | 62 | }; |
63 | enum trackParameterMix { kPure, | |
64 | kTrackWithMCkine, | |
65 | kTrackWithMCPID, | |
66 | kTrackWithMCpt, | |
d79d61fb | 67 | kTrackWithPtFromFirstMother, |
68 | kTrackWithTPCInnerParams | |
2b1eaa10 | 69 | }; |
70 | enum PIDsource { | |
71 | kTPCpid, // default TPC pid (via GetTPCpid) | |
72 | kTOFpid, // default TOF pid (via GetTOFpid) | |
73 | kTOFbayesian, // TOF bayesian pid (F.Noferini) | |
74 | kTOFbeta, // asymmetric cuts of TOF beta signal | |
1a80f9f6 | 75 | kTPCdedx, // asymmetric cuts of TPC dedx signal |
76 | kTOFbetaSimple, //simple TOF only cut | |
8eca5d19 | 77 | kTPCbayesian, //bayesian cutTPC |
78 | kTPCNuclei // added by Natasha for Nuclei | |
79 | }; | |
daf66719 | 80 | |
81 | //setters (interface to AliESDtrackCuts) | |
42655d16 | 82 | void SetMinNClustersTPC( Int_t a ) {fCutNClustersTPC=kTRUE; fNClustersTPCMin=a;} |
83 | void SetMinNClustersITS( Int_t a ) {fCutNClustersITS=kTRUE; fNClustersITSMin=a;} | |
daf66719 | 84 | void SetClusterRequirementITS( AliESDtrackCuts::Detector det, |
85 | AliESDtrackCuts::ITSClusterRequirement req = AliESDtrackCuts::kOff ) | |
441ea1cf | 86 | { InitESDcuts(); fAliESDtrackCuts->SetClusterRequirementITS(det,req); } |
2948ac5a | 87 | void SetMaxChi2PerClusterTPC( Float_t a ) {fMaxChi2PerClusterTPC=a;fCutChi2PerClusterTPC=kTRUE;} |
88 | void SetMinChi2PerClusterTPC( Float_t a ) {fMinChi2PerClusterTPC=a;fCutChi2PerClusterTPC=kTRUE;} | |
441ea1cf | 89 | void SetMaxChi2PerClusterITS( Float_t a ) {InitESDcuts(); fAliESDtrackCuts->SetMaxChi2PerClusterITS(a);} |
90 | void SetRequireTPCRefit( Bool_t a ) {InitESDcuts(); fAliESDtrackCuts->SetRequireTPCRefit(a);} | |
91 | void SetRequireTPCStandAlone( Bool_t a) {InitESDcuts(); fAliESDtrackCuts->SetRequireTPCStandAlone(a);} | |
92 | void SetRequireITSRefit( Bool_t a ) {InitESDcuts(); fAliESDtrackCuts->SetRequireITSRefit(a);} | |
93 | void SetRequireITSStandAlone( Bool_t a) {InitESDcuts(); fAliESDtrackCuts->SetRequireITSStandAlone(a);} | |
94 | void SetAcceptKinkDaughters( Bool_t a ) {InitESDcuts(); fAliESDtrackCuts->SetAcceptKinkDaughters(a);} | |
a63303bd | 95 | void SetMaxDCAToVertexZ( Float_t a ) {InitESDcuts(); fAliESDtrackCuts->SetMaxDCAToVertexZ(a);fCutDCAToVertexZ=kTRUE;} |
96 | void SetMaxDCAToVertexXY( Float_t a ) {InitESDcuts(); fAliESDtrackCuts->SetMaxDCAToVertexXY(a);fCutDCAToVertexXY=kTRUE;} | |
441ea1cf | 97 | void SetMaxDCAToVertexXYPtDep( const char* a ) {InitESDcuts(); fAliESDtrackCuts->SetMaxDCAToVertexXYPtDep(a);} |
98 | void SetRequireSigmaToVertex(Bool_t a) {InitESDcuts(); fAliESDtrackCuts->SetRequireSigmaToVertex(a);} | |
99 | void SetMaxNsigmaToVertex(Float_t sigma=1e10) {InitESDcuts(); fAliESDtrackCuts->SetMaxNsigmaToVertex(sigma); } | |
100 | void SetDCAToVertex2D( Bool_t a ) {InitESDcuts(); fAliESDtrackCuts->SetDCAToVertex2D(a);} | |
daf66719 | 101 | void SetEtaRange( Float_t r1, Float_t r2 ) { SetEtaMin(r1); SetEtaMax(r2); } |
102 | void SetPtRange( Float_t r1, Float_t r2 ) { SetPtMin(r1); SetPtMax(r2); } | |
127a5825 | 103 | void SetRequireCharge( Bool_t r ) {fRequireCharge=r;} |
104 | void SetFakesAreOK( Bool_t b ) {fFakesAreOK=b;} | |
9a0783cc | 105 | void SetSPDtrackletDeltaPhiMax( Double_t m ) {fSPDtrackletDeltaPhiMax=m; fCutSPDtrackletDeltaPhi=kTRUE;} |
106 | void SetSPDtrackletDeltaPhiMin( Double_t m ) {fSPDtrackletDeltaPhiMin=m; fCutSPDtrackletDeltaPhi=kTRUE;} | |
1ff4bda1 | 107 | void SetIgnoreTPCzRange( Double_t min, Double_t max ) |
5ba02b32 | 108 | { fIgnoreTPCzRange=kTRUE; fIgnoreTPCzRangeMin=min; fIgnoreTPCzRangeMax=max; } |
109 | void SetAODfilterBit( UInt_t a ) {fAODFilterBit = a; fUseAODFilterBit = kTRUE;} | |
2b1eaa10 | 110 | void SetMinimalTPCdedx(Double_t d=10.) {fMinimalTPCdedx=d; fCutMinimalTPCdedx=kTRUE;} |
1a80f9f6 | 111 | void SetPmdDetPlane(Int_t pmdDet){fCutPmdDet=kTRUE; fPmdDet = pmdDet; } |
112 | void SetPmdAdc(Float_t pmdAdc){fCutPmdAdc=kTRUE; fPmdAdc = pmdAdc; } | |
113 | void SetPmdNcell(Float_t pmdNcell) {fCutPmdNcell=kTRUE; fPmdNcell = pmdNcell; } | |
9126fd0c | 114 | void SetPriors(Float_t centr = 0); // set my favourite priors for Bayesian PID (requested if Bayesian PID is used) |
8eca5d19 | 115 | void SetFlowTagType(AliFlowTrackSimple::tagType t) {fFlowTagType=t;} |
daf66719 | 116 | |
84714904 | 117 | AliMuonTrackCuts *GetMuonTrackCuts() { InitMuonCuts(); return fMuonTrackCuts; } // XZhang 20121014 |
118 | void SetStandardMuonTrackCuts() { InitMuonCuts(); fMuonTrackCuts->SetDefaultFilterMask(); return; } // XZhang 20120604 | |
119 | void SetIsMuonMC(Bool_t isMC) { InitMuonCuts(); fMuonTrackCuts->SetIsMC(isMC); return; } // XZhang 20120604 | |
120 | void SetMuonPassNumber(Int_t passN) { InitMuonCuts(); fMuonTrackCuts->SetPassNumber(passN); return; } // XZhang 20121013 | |
121 | void SetRunsMuon(const AliInputEventHandler* eventHandler) { if (fMuonTrackCuts) fMuonTrackCuts->SetRun(eventHandler); } // XZhang 20120604 | |
2e5052c5 | 122 | |
441ea1cf | 123 | Int_t GetMinNClustersTPC() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetMinNClusterTPC();} |
124 | Int_t GetMinNClustersITS() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetMinNClustersITS();} | |
daf66719 | 125 | AliESDtrackCuts::ITSClusterRequirement GetClusterRequirementITS( AliESDtrackCuts::Detector det ) const |
441ea1cf | 126 | {if (!fAliESDtrackCuts) return AliESDtrackCuts::kOff; return fAliESDtrackCuts->GetClusterRequirementITS(det); } |
127 | Float_t GetMaxChi2PerClusterTPC() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetMaxChi2PerClusterTPC();} | |
128 | Float_t GetMaxChi2PerClusterITS() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetMaxChi2PerClusterITS();} | |
129 | Bool_t GetRequireTPCRefit() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetRequireTPCRefit();} | |
130 | Bool_t GetRequireTPCStandAlone() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetRequireTPCStandAlone();} | |
131 | Bool_t GetRequireITSRefit() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetRequireITSRefit();} | |
132 | Bool_t GetRequireITSStandAlone() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetRequireITSStandAlone();} | |
133 | Bool_t GetAcceptKinkDaughters() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetAcceptKinkDaughters();} | |
134 | Float_t GetMaxDCAToVertexZ() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetMaxDCAToVertexZ();} | |
135 | Float_t GetMaxDCAToVertexXY() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetMaxDCAToVertexXY();} | |
136 | const char* GetMaxDCAToVertexXYPtDep() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetMaxDCAToVertexXYPtDep();} | |
137 | Bool_t GetRequireSigmaToVertex() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetRequireSigmaToVertex();} | |
138 | Float_t GetMaxNsigmaToVertex() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetMaxNsigmaToVertex(); } | |
139 | Bool_t GetDCAToVertex2D() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetDCAToVertex2D();} | |
daf66719 | 140 | void GetEtaRange( Float_t& r1, Float_t& r2 ) const { r1=GetEtaMin(); r2=GetEtaMax(); } |
141 | void GetPtRange( Float_t& r1, Float_t& r2 ) const { r1=GetPtMin(); r2=GetPtMax(); } | |
957517fa | 142 | Bool_t GetRequireCharge() const {return fRequireCharge;} |
9a0783cc | 143 | Bool_t GetFakesAreOK() const {return fFakesAreOK;} |
144 | Double_t GetSPDtrackletDeltaPhiMax() const {return fSPDtrackletDeltaPhiMax;} | |
145 | Double_t GetSPDtrackletDeltaPhiMin() const {return fSPDtrackletDeltaPhiMin;} | |
5ba02b32 | 146 | UInt_t GetAODFilterBit() const {if (!fUseAODFilterBit) return 0; return fAODFilterBit;} |
2b1eaa10 | 147 | Double_t GetMinimalTPCdedx() const {return fMinimalTPCdedx;} |
1a80f9f6 | 148 | Int_t GetPmdDetPlane()const {return fPmdDet; } |
149 | Float_t GetPmdAdc()const {return fPmdAdc;} | |
499fe731 | 150 | Float_t GetPmdNcell() const {return fPmdNcell; } |
151 | Float_t GetBeta(const AliESDtrack* t); | |
3c67c769 | 152 | Float_t Getdedx(const AliESDtrack* t) const; |
8b649d8c | 153 | Float_t GetBayesianProb() const {return fProbBayes;}; |
75afd48c | 154 | AliFlowBayesianPID* GetBayesianResponse() const {return fBayesianResponse;} |
62f2ea04 | 155 | |
a14b8f3c | 156 | void SetQA(Bool_t b=kTRUE) {if (b) DefineHistograms();} |
499fe731 | 157 | TList* GetQA() const {return fQA;} |
158 | TH1* QAbefore(Int_t i) {return static_cast<TH1*>(static_cast<TList*>(fQA->At(0))->At(i));} | |
159 | TH1* QAafter(Int_t i) {return static_cast<TH1*>(static_cast<TList*>(fQA->At(1))->At(i));} | |
924b02b0 | 160 | |
daf66719 | 161 | //MC stuff |
b9cf8f8e | 162 | void SetIgnoreSignInMCPID( Bool_t b=kTRUE ) {fIgnoreSignInMCPID=b;} |
aab6527a | 163 | void SetCutMC( Bool_t b=kTRUE ); |
f21bdf48 | 164 | void SetCutMChasTrackReferences(Bool_t b=kTRUE) {fCutMChasTrackReferences=b;} |
aab6527a | 165 | void SetMCprocessType( TMCProcess t ) { fMCprocessType = t; fCutMCprocessType=kTRUE; SetCutMC();} |
b9cf8f8e | 166 | void SetMCisPrimary( Bool_t b=kTRUE ) { fMCisPrimary=b; fCutMCisPrimary=kTRUE; SetCutMC();} |
aab6527a | 167 | void SetMCPID( Int_t pid ) { fMCPID=pid; fCutMCPID=kTRUE; SetCutMC(); } |
2ed97fda | 168 | void SetMCfirstMotherPID( Int_t pid ) { fMCfirstMotherPID=pid; fCutMCfirstMotherPID=kTRUE; SetCutMC(); } |
daf66719 | 169 | TMCProcess GetMCprocessType() const { return fMCprocessType; } |
daf66719 | 170 | Bool_t GetMCisPrimary() const {return fMCisPrimary;} |
1ff4bda1 | 171 | Int_t GetMCPID() const {return fMCPID;} |
a14b8f3c | 172 | void SetRequireTransportBitForPrimaries(Bool_t b) {fRequireTransportBitForPrimaries=b; SetCutMC();} |
daf66719 | 173 | |
174 | void SetParamType(trackParameterType paramType) {fParamType=paramType;} | |
175 | trackParameterType GetParamType() const {return fParamType;} | |
12b2b8bc | 176 | static const char* GetParamTypeName(trackParameterType type); |
daf66719 | 177 | void SetParamMix(trackParameterMix paramMix) {fParamMix=paramMix;} |
178 | trackParameterMix GetParamMix() const {return fParamMix;} | |
179 | ||
9a0783cc | 180 | virtual Bool_t IsSelected(TObject* obj, Int_t id=-666); |
1ff4bda1 | 181 | virtual Bool_t IsSelectedMCtruth(TObject* obj, Int_t id=-666); |
127a5825 | 182 | AliVParticle* GetTrack() const {return fTrack;} |
183 | AliMCParticle* GetMCparticle() const {return fMCparticle;} | |
41dc4195 | 184 | AliFlowTrack* MakeFlowTrack() const; |
7d27a354 | 185 | Bool_t FillFlowTrack(AliFlowTrack* track) const; |
127a5825 | 186 | Bool_t IsPhysicalPrimary() const; |
441ea1cf | 187 | static Bool_t IsPhysicalPrimary(AliMCEvent* p, Int_t label, Bool_t requiretransported=kTRUE); |
daf66719 | 188 | |
189 | void SetMCevent(AliMCEvent* mcEvent) {fMCevent=mcEvent;} | |
190 | AliMCEvent* GetMCevent() const {return fMCevent;} | |
aab6527a | 191 | void SetEvent(AliVEvent* event, AliMCEvent* mcEvent=NULL); |
9a0783cc | 192 | AliVEvent* GetEvent() const {return fEvent;} |
193 | Int_t GetNumberOfInputObjects() const; | |
194 | TObject* GetInputObject(Int_t i); | |
a1c43d26 | 195 | void Clear(Option_t* option=""); |
daf66719 | 196 | |
1a80f9f6 | 197 | Double_t GetPmdEta(Float_t xPos, Float_t yPos, Float_t zPos); |
198 | Double_t GetPmdPhi(Float_t xPos, Float_t yPos); | |
199 | ||
32b846cd | 200 | //PID |
2b1eaa10 | 201 | void SetPID(AliPID::EParticleType pid, PIDsource s=kTOFpid, Double_t prob=0.9) |
202 | {fParticleID=pid; fPIDsource=s; fParticleProbability=prob; fCutPID=kTRUE; InitPIDcuts();} | |
3c67c769 | 203 | AliPID::EParticleType GetParticleID() const {return fParticleID;} |
204 | Bool_t GetCutPID() const {return fCutPID;} | |
205 | void SetTPCpidCuts(const TMatrixF* mat) {fTPCpidCuts=new TMatrixF(*mat);} | |
206 | void SetTOFpidCuts(const TMatrixF* mat) {fTOFpidCuts=new TMatrixF(*mat);} | |
2b1eaa10 | 207 | static const char* PIDsourceName(PIDsource s); |
aab6527a | 208 | AliESDpid& GetESDpid() {return fESDpid;} |
875ee12a | 209 | void SetAllowTOFmismatchFlag(Bool_t b=kTRUE) {fAllowTOFmismatchFlag=b;} |
210 | Bool_t GetAllowTOFmismatchFlag() const {return fAllowTOFmismatchFlag;} | |
211 | void SetRequireStrictTOFTPCagreement(Bool_t b=kTRUE) {fRequireStrictTOFTPCagreement=b;} | |
212 | Bool_t GetRequireStrictTOFTPCagreement() const {return fRequireStrictTOFTPCagreement;} | |
0b14d0f4 | 213 | void SetRejectElectronsWithTPCpid(Bool_t b=kTRUE) {fCutRejectElectronsWithTPCpid=b;} |
92b507bb | 214 | void SetLinearizeVZEROresponse( Bool_t b=kTRUE ) {fLinearizeVZEROresponse=b;} |
32b846cd | 215 | |
1a80f9f6 | 216 | //these should maybe be protected |
daf66719 | 217 | Bool_t PassesCuts(AliVParticle* track); |
42655d16 | 218 | Bool_t PassesESDcuts(AliESDtrack* track); |
60875c3c | 219 | Bool_t PassesAODcuts(const AliAODTrack* track, Bool_t passFid=kTRUE); |
3c67c769 | 220 | Bool_t PassesPMDcuts(const AliESDPmdTrack* track); |
647a09d3 | 221 | Bool_t PassesV0cuts(Int_t id); |
1a80f9f6 | 222 | Bool_t PassesCuts(const AliFlowTrackSimple* track); |
223 | Bool_t PassesCuts(const AliMultiplicity* track, Int_t id); | |
2e5052c5 | 224 | Bool_t PassesCuts(const AliAODTracklets* track, Int_t id); // XZhang 20120615 |
12b2b8bc | 225 | Bool_t PassesMCcuts(); |
1ff4bda1 | 226 | Bool_t PassesMCcuts(AliMCEvent* mcevent, Int_t label); |
1a80f9f6 | 227 | Bool_t PassesTPCdedxCut(const AliESDtrack* track); |
cd62a2a8 | 228 | Bool_t PassesTPCbayesianCut(const AliESDtrack* track); |
1a80f9f6 | 229 | Bool_t PassesTPCpidCut(const AliESDtrack* track) const; |
3c67c769 | 230 | Bool_t PassesTOFbetaCut(const AliESDtrack* track); |
231 | Bool_t PassesTOFbetaSimpleCut(const AliESDtrack* track); | |
232 | Bool_t PassesTOFpidCut(const AliESDtrack* track) const; | |
233 | Bool_t PassesESDpidCut(const AliESDtrack* track); | |
2e5052c5 | 234 | Bool_t PassesMuonCuts(AliVParticle* track); // XZhang 20120604 |
1a80f9f6 | 235 | |
499fe731 | 236 | void Browse(TBrowser* b); |
237 | Long64_t Merge(TCollection* list); | |
238 | ||
1a80f9f6 | 239 | protected: |
d148af7e | 240 | AliFlowTrack* MakeFlowTrackSPDtracklet() const; |
241 | AliFlowTrack* MakeFlowTrackPMDtrack() const; | |
22289738 | 242 | AliFlowTrack* MakeFlowTrackV0() const; |
d148af7e | 243 | AliFlowTrack* MakeFlowTrackVParticle() const; |
7d27a354 | 244 | Bool_t FillFlowTrackVParticle(AliFlowTrack* t) const; |
245 | Bool_t FillFlowTrackGeneric(AliFlowTrack* t) const; | |
daf66719 | 246 | void HandleESDtrack(AliESDtrack* track); |
247 | void HandleVParticle(AliVParticle* track); | |
924b02b0 | 248 | void DefineHistograms(); |
32b846cd | 249 | void InitPIDcuts(); |
7288f660 | 250 | void InitESDcuts() {if (!fAliESDtrackCuts) {fAliESDtrackCuts=new AliESDtrackCuts();}} |
2e5052c5 | 251 | void InitMuonCuts() { if (!fMuonTrackCuts) fMuonTrackCuts =new AliMuonTrackCuts("StdMuCuts","StdMuCuts"); return; } // XZhang 20120604 |
3abf7ecc | 252 | // part added by F. Noferini |
cd62a2a8 | 253 | Bool_t PassesTOFbayesianCut(const AliESDtrack* track); |
8eca5d19 | 254 | Bool_t PassesNucleiSelection(const AliESDtrack* track); // added by Natasha |
875ee12a | 255 | Bool_t TPCTOFagree(const AliESDtrack *track); |
3abf7ecc | 256 | // end part added by F. Noferini |
daf66719 | 257 | |
9a0783cc | 258 | //the cuts |
daf66719 | 259 | AliESDtrackCuts* fAliESDtrackCuts; //alianalysis cuts |
2e5052c5 | 260 | AliMuonTrackCuts* fMuonTrackCuts; // muon selection cuts // XZhang 20120604 |
499fe731 | 261 | TList* fQA; //qa histograms go here |
1ff4bda1 | 262 | Bool_t fCutMC; //do we cut on MC? |
f21bdf48 | 263 | Bool_t fCutMChasTrackReferences; //did we leave a trace in the detector? |
daf66719 | 264 | Bool_t fCutMCprocessType; //do we cut on mc process type? |
265 | TMCProcess fMCprocessType; //mc process type | |
266 | Bool_t fCutMCPID; //cut on MC pid? | |
267 | Int_t fMCPID; //MC PID | |
2ed97fda | 268 | Bool_t fCutMCfirstMotherPID; //cut on PID of first mother? |
269 | Int_t fMCfirstMotherPID; //PID of the first mother of track | |
a14b8f3c | 270 | Bool_t fIgnoreSignInMCPID; //when MC PID cut is set, pass also the antiparticle |
daf66719 | 271 | Bool_t fCutMCisPrimary; //do we cut on primaryness? |
441ea1cf | 272 | Bool_t fRequireTransportBitForPrimaries; //require the transport bit to be set for primaries |
daf66719 | 273 | Bool_t fMCisPrimary; //is MC primary |
127a5825 | 274 | Bool_t fRequireCharge; //is charged? |
275 | Bool_t fFakesAreOK; //are fakes (negative labels) ok? | |
9a0783cc | 276 | Bool_t fCutSPDtrackletDeltaPhi; //are we cutting on the trcklet deltaphi? |
277 | Double_t fSPDtrackletDeltaPhiMax; //maximal deltaphi for tracklets | |
278 | Double_t fSPDtrackletDeltaPhiMin; //minimal deltaphi for tracklets | |
1ff4bda1 | 279 | Bool_t fIgnoreTPCzRange; //ignore tracks going close to central membrane |
280 | Double_t fIgnoreTPCzRangeMax; //max z to ignore | |
281 | Double_t fIgnoreTPCzRangeMin; //min z to ignore | |
2948ac5a | 282 | Bool_t fCutChi2PerClusterTPC; //cut on tpc chi2 |
283 | Float_t fMaxChi2PerClusterTPC; //max chi2 tpc/cluster | |
284 | Float_t fMinChi2PerClusterTPC; //min chi2 tpc/cluster | |
32b846cd | 285 | Bool_t fCutNClustersTPC; //cut on clusters? |
286 | Int_t fNClustersTPCMax; //max tpc ncls | |
287 | Int_t fNClustersTPCMin; //min tpc clusters | |
42655d16 | 288 | Bool_t fCutNClustersITS; //cut on clusters? |
289 | Int_t fNClustersITSMax; //max tpc ncls | |
290 | Int_t fNClustersITSMin; //min tpc clusters | |
5ba02b32 | 291 | Bool_t fUseAODFilterBit; //use AOD filter bit selection? |
292 | UInt_t fAODFilterBit; //AOD filter bit to select | |
a63303bd | 293 | Bool_t fCutDCAToVertexXY; //dca xy cut |
294 | Bool_t fCutDCAToVertexZ; //dca z cut | |
2b1eaa10 | 295 | Bool_t fCutMinimalTPCdedx; //cut on minimal dedx in TPC to reject noise tracks |
296 | Double_t fMinimalTPCdedx; //value for minimal TPC dedx | |
92b507bb | 297 | Bool_t fLinearizeVZEROresponse; //linearize VZERO response using AliESDUtil |
1a80f9f6 | 298 | |
299 | Bool_t fCutPmdDet; //cut on PMD detector plane | |
300 | Int_t fPmdDet; // value of PMD detector plane | |
301 | Bool_t fCutPmdAdc; //cut on cluster ADC | |
302 | Float_t fPmdAdc; //value of cluster ADC | |
303 | Bool_t fCutPmdNcell; //cut on cluster ncell | |
304 | Float_t fPmdNcell; //value of cluster ncell | |
305 | ||
daf66719 | 306 | trackParameterType fParamType; //parameter type tu cut on |
307 | trackParameterMix fParamMix; //parameter mixing | |
daf66719 | 308 | AliVParticle* fTrack; //!the track to apply cuts on |
12b2b8bc | 309 | Double_t fTrackPhi; //!track phi |
310 | Double_t fTrackEta; //!track eta | |
311 | Double_t fTrackWeight; //!track weight | |
127a5825 | 312 | Int_t fTrackLabel; //!track label, or its absolute value if FakesAreOK |
957517fa | 313 | AliMCEvent* fMCevent; //!mc event |
daf66719 | 314 | AliMCParticle* fMCparticle; //!mc particle |
9a0783cc | 315 | AliVEvent* fEvent; //!placeholder for current event |
1ff4bda1 | 316 | AliESDtrack fTPCtrack; //!placeholder for TPC only track to avoid new/delete on every track |
8eca5d19 | 317 | AliFlowTrackSimple::tagType fFlowTagType; //what kind of tag, RP, POI, POIx, ... |
daf66719 | 318 | |
32b846cd | 319 | //PID |
aab6527a | 320 | AliESDpid fESDpid; //pid obj |
9126fd0c | 321 | AliFlowBayesianPID *fBayesianResponse; // Baysian response with all the TOF tuning (using fESDpid) |
32b846cd | 322 | PIDsource fPIDsource; //pid source |
323 | TMatrixF* fTPCpidCuts; //tpc pid cuts | |
324 | TMatrixF* fTOFpidCuts; //tof pid cuts | |
2b1eaa10 | 325 | AliPID::EParticleType fParticleID; //alipid |
326 | Double_t fParticleProbability; //desired prob for a particle type | |
875ee12a | 327 | Bool_t fAllowTOFmismatchFlag; //allow TOFmismatch flag=1 in ESD |
328 | Bool_t fRequireStrictTOFTPCagreement; //require stricter than TOFmismatch flag TOF-TPC agreement | |
0b14d0f4 | 329 | Bool_t fCutRejectElectronsWithTPCpid; //reject electrons with TPC pid |
32b846cd | 330 | |
3abf7ecc | 331 | // part added by F. Noferini |
1a80f9f6 | 332 | static const Int_t fgkPIDptBin = 20; // pT bins for priors |
333 | Float_t fC[fgkPIDptBin][5],fBinLimitPID[fgkPIDptBin]; // pt bin limit and priors | |
8b649d8c | 334 | Float_t fProbBayes; // bayesian probability |
9126fd0c | 335 | Float_t fCurrCentr; // current centrality used for set the priors |
92b507bb | 336 | // end part added by F. Noferini |
337 | ||
1a80f9f6 | 338 | static const Int_t fgkNumberOfV0tracks=64; //number of V0 channels |
339 | ||
647a09d3 | 340 | ClassDef(AliFlowTrackCuts,12) |
daf66719 | 341 | }; |
342 | ||
343 | #endif | |
344 | ||
9126fd0c | 345 | |
2281e7c5 | 346 |