fCutNClustersITS(kFALSE),
fNClustersITSMax(INT_MAX),
fNClustersITSMin(INT_MIN),
+ fUseAODFilterBit(kFALSE),
+ fAODFilterBit(0),
fParamType(kGlobal),
fParamMix(kPure),
fTrack(NULL),
fNClustersTPCMin(INT_MIN),
fCutNClustersITS(kFALSE),
fNClustersITSMax(INT_MAX),
- fNClustersITSMin(INT_MIN),
+ fNClustersITSMin(INT_MIN),
+ fUseAODFilterBit(kFALSE),
+ fAODFilterBit(0),
fParamType(kGlobal),
fParamMix(kPure),
fTrack(NULL),
fCutNClustersITS(that.fCutNClustersITS),
fNClustersITSMax(that.fNClustersITSMax),
fNClustersITSMin(that.fNClustersITSMin),
+ fUseAODFilterBit(that.fUseAODFilterBit),
+ fAODFilterBit(that.fAODFilterBit),
fParamType(that.fParamType),
fParamMix(that.fParamMix),
fTrack(NULL),
Int_t nitscls = track->GetITSNcls();
if (nitscls < fNClustersITSMin || nitscls > fNClustersITSMax) pass=kFALSE;
}
+
+ if (fCutChi2PerClusterTPC)
+ {
+ Double_t chi2tpc = track->Chi2perNDF();
+ if (chi2tpc < fMinChi2PerClusterTPC || chi2tpc > fMaxChi2PerClusterTPC) pass=kFALSE;
+ }
+
+ if (GetRequireTPCRefit() && !(track->GetStatus() & AliESDtrack::kTPCrefit) ) pass=kFALSE;
+ if (GetRequireITSRefit() && !(track->GetStatus() & AliESDtrack::kITSrefit) ) pass=kFALSE;
+
+ if (fUseAODFilterBit && !track->TestFilterBit(fAODFilterBit)) pass=kFALSE;
+
+ if (GetMaxDCAToVertexXY() && track->DCA()>GetMaxDCAToVertexXY()) pass=kFALSE;
+
return pass;
}
void SetSPDtrackletDeltaPhiMin( Double_t m ) {fSPDtrackletDeltaPhiMin=m; fCutSPDtrackletDeltaPhi=kTRUE;}
void SetIgnoreSignInPID( Bool_t b ) {fIgnoreSignInPID=b;}
void SetIgnoreTPCzRange( Double_t min, Double_t max )
- { fIgnoreTPCzRange=kTRUE; fIgnoreTPCzRangeMin=min; fIgnoreTPCzRangeMax=max; }
+ { fIgnoreTPCzRange=kTRUE; fIgnoreTPCzRangeMin=min; fIgnoreTPCzRangeMax=max; }
+ void SetAODfilterBit( UInt_t a ) {fAODFilterBit = a; fUseAODFilterBit = kTRUE;}
+
Int_t GetMinNClustersTPC() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetMinNClusterTPC();}
Int_t GetMinNClustersITS() const {if (!fAliESDtrackCuts) return 0; return fAliESDtrackCuts->GetMinNClustersITS();}
Bool_t GetFakesAreOK() const {return fFakesAreOK;}
Double_t GetSPDtrackletDeltaPhiMax() const {return fSPDtrackletDeltaPhiMax;}
Double_t GetSPDtrackletDeltaPhiMin() const {return fSPDtrackletDeltaPhiMin;}
-
+ UInt_t GetAODFilterBit() const {if (!fUseAODFilterBit) return 0; return fAODFilterBit;}
+
void SetQA(const char* dirname);
TObjArray* GetQA() const {return fQA;}
Bool_t fCutNClustersITS; //cut on clusters?
Int_t fNClustersITSMax; //max tpc ncls
Int_t fNClustersITSMin; //min tpc clusters
+ Bool_t fUseAODFilterBit; //use AOD filter bit selection?
+ UInt_t fAODFilterBit; //AOD filter bit to select
trackParameterType fParamType; //parameter type tu cut on
trackParameterMix fParamMix; //parameter mixing
#endif
-