fNTracksPassed(0),
fNTracksFailed(0),
fRemoveKinks(kFALSE),
- fMostProbable(0)
+ fMostProbable(0),
+ fMaxImpactXY(1000.0),
+ fMaxImpactZ(1000.0)
{
// Default constructor
fNTracksPassed = fNTracksFailed = 0;
return false;
}
+ if (fMaxImpactXY < track->ImpactD())
+ return false;
+
+ if (fMaxImpactZ < track->ImpactZ())
+ return false;
+
if (fMaxSigmaToVertex < track->SigmaToVertex()) {
return false;
}
tListSetttings->AddLast(new TObjString(buf));
snprintf(buf, 200, "AliFemtoESDTrackCut.maxsigmatovertex=%f", fMaxSigmaToVertex);
tListSetttings->AddLast(new TObjString(buf));
+ snprintf(buf, 200, "AliFemtoESDTrackCut.maximpactxy=%f", fMaxImpactXY);
+ tListSetttings->AddLast(new TObjString(buf));
+ snprintf(buf, 200, "AliFemtoESDTrackCut.maximpactz=%f", fMaxImpactZ);
+ tListSetttings->AddLast(new TObjString(buf));
if (fMostProbable) {
if (fMostProbable == 2)
snprintf(buf, 200, "AliFemtoESDTrackCut.mostprobable=%s", "Pion");
void SetMaxITSChiNdof(const float& maxchi);
void SetMaxTPCChiNdof(const float& maxchi);
void SetMaxSigmaToVertex(const float& maxsig);
+ void SetMaxImpactXY(const float& maximpxy);
+ void SetMaxImpactZ(const float& maximpz);
void SetMostProbablePion();
void SetMostProbableKaon();
void SetMostProbableProton();
bool fRemoveKinks; // if true particles with any kink label will not pass
int fMostProbable; // this particle type is required to be most probable
+ float fMaxImpactXY; // Max XY impact parameter
+ float fMaxImpactZ; // Max Z impact parameter
+
float PidFractionElectron(float mom) const;
float PidFractionPion(float mom) const;
float PidFractionKaon(float mom) const;
inline void AliFemtoESDTrackCut::SetMaxITSChiNdof(const float& maxchi) { fMaxITSchiNdof = maxchi; }
inline void AliFemtoESDTrackCut::SetMaxTPCChiNdof(const float& maxchi) { fMaxTPCchiNdof = maxchi; }
inline void AliFemtoESDTrackCut::SetMaxSigmaToVertex(const float& maxsig) { fMaxSigmaToVertex = maxsig; }
+inline void AliFemtoESDTrackCut::SetMaxImpactXY(const float& maximpxy) { fMaxImpactXY = maximpxy; }
+inline void AliFemtoESDTrackCut::SetMaxImpactZ(const float& maximpz) { fMaxImpactZ = maximpz; }
#endif