1 #ifndef ALIRSNVALUEPID_H
2 #define ALIRSNVALUEPID_H
6 // Implementation of values related to PID
7 // which can be used to monitor or check cuts
8 // based on tolerance ranges between detector signals
9 // and expected responses for particle species
13 #include "AliRsnValue.h"
18 class AliRsnValuePID : public AliRsnValue {
35 AliRsnValuePID(const char *name, EValuePID type, AliPID::EParticleType species, Int_t nbins = 0, Double_t min = 0.0, Double_t max = 0.0);
36 AliRsnValuePID(const char *name, EValuePID type, AliPID::EParticleType species, Double_t min, Double_t max, Double_t step);
37 AliRsnValuePID(const char *name, EValuePID type, AliPID::EParticleType species, Int_t nbins, Double_t *array);
38 AliRsnValuePID(const AliRsnValuePID& copy);
39 AliRsnValuePID& operator=(const AliRsnValuePID& copy);
41 virtual ~AliRsnValuePID() { }
43 void SetValuePID(EValuePID type) {fValuePID = type;}
44 EValuePID GetValuePID() const {return fValuePID;}
46 virtual Bool_t Eval(TObject *object, Bool_t useMC = kFALSE);
47 virtual void Print(Option_t *option = "") const;
52 Bool_t TOFComputations(AliVTrack *track);
54 AliPID::EParticleType fSpecies; // particle species
55 EValuePID fValuePID; // output object
56 AliPIDResponse *fPID; // PID response object
57 Double_t fTOFtimes[AliPID::kSPECIES]; //! TOF times
58 Double_t fTOFsigma[AliPID::kSPECIES]; //! TOF sigma
60 ClassDef(AliRsnValuePID,1) // AliRsnValuePID class