#define ALIRSNCUTPIDNSIGMA_H
//
-// Class for generalized n-sigma PID cuts with detectors
+// Class for generalized n-sigma PID cuts with detectors.
+// Allows to choose the detector to check and define a momentum range
+// in order to permit different cuts in different ranges.
//
#include "AliPID.h"
void SetNSigmaRange(Double_t min, Double_t max) {AliRsnCut::SetRangeD(min, max);}
void SetSpecies(AliPID::EParticleType type) {fSpecies = type;}
- Bool_t IsITS(AliVTrack *vtrack);
- Bool_t IsTPC(AliVTrack *vtrack);
- Bool_t IsTOF(AliVTrack *vtrack);
+ Bool_t IsITS(const AliVTrack *vtrack) const;
+ Bool_t IsTPC(const AliVTrack *vtrack) const;
+ Bool_t IsTOF(const AliVTrack *vtrack) const;
virtual Bool_t IsSelected(TObject *object);
virtual void Print(const Option_t *option = "") const;
ClassDef(AliRsnCutPIDNSigma, 1)
};
-inline Bool_t AliRsnCutPIDNSigma::IsITS(AliVTrack *vtrack)
+inline Bool_t AliRsnCutPIDNSigma::IsITS(const AliVTrack *vtrack) const
{
//
// Checks if the track has the status flags required for an ITS standalone track
return kTRUE;
}
-inline Bool_t AliRsnCutPIDNSigma::IsTPC(AliVTrack *vtrack)
+inline Bool_t AliRsnCutPIDNSigma::IsTPC(const AliVTrack *vtrack) const
{
//
// Checks if the track has the status flags required for a TPC track
return kTRUE;
}
-inline Bool_t AliRsnCutPIDNSigma::IsTOF(AliVTrack *vtrack)
+inline Bool_t AliRsnCutPIDNSigma::IsTOF(const AliVTrack *vtrack) const
{
//
// Checks if the track has the status flags required for an ITS standalone track