// Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
//
-#ifndef ALIRSNCUTBETHEBLOCK_H
-#define ALIRSNCUTBETHEBLOCK_H
+#ifndef ALIRSNCUTBETHEBLOCH_H
+#define ALIRSNCUTBETHEBLOCH_H
#include "AliPID.h"
#include "AliRsnCut.h"
class AliRsnCutBetheBloch : public AliRsnCut
{
- public:
+ public:
- AliRsnCutBetheBloch();
- AliRsnCutBetheBloch(const char *name, Double_t fractionRange, Double_t mass, Double_t mip = 50.0, Bool_t correct = kTRUE);
- AliRsnCutBetheBloch(const char *name, Double_t fractionRange, AliPID::EParticleType type, Double_t mip = 50.0, Bool_t correct = kTRUE);
+ AliRsnCutBetheBloch();
+ AliRsnCutBetheBloch(const char *name, Double_t fractionRange, AliPID::EParticleType type, Double_t mip = 50.0, Bool_t correct = kTRUE);
+ virtual ~AliRsnCutBetheBloch() {;};
- void SetMass(Double_t mass) {fMass = mass;}
- void SetMass(AliPID::EParticleType type) {AliPID pid; fMass = pid.ParticleMass(type);}
- void SetMIP(Double_t mip) {fMIP = mip;}
- void SetCalibConstant(Int_t i, Double_t value) {if (i>=0&&i<5) fConst[i] = value;}
- Double_t BetheBloch(AliRsnDaughter *track);
+ void SetType(AliPID::EParticleType type) {fType = type;}
+ void SetMIP(Double_t mip) {fMIP = mip;}
+ void SetCalibConstant(Int_t i, Double_t value) {if (i>=0&&i<5) fConst[i] = value;}
+ Double_t BetheBloch(AliRsnDaughter*const track);
+ Double_t RelDiff(AliRsnDaughter *track);
- virtual Bool_t IsSelected(ETarget tgt, AliRsnDaughter *daughter);
- virtual Bool_t IsSelected(ETarget tgt, AliRsnPairParticle *pair);
- virtual Bool_t IsSelected(ETarget tgt, AliRsnEvent *event);
- virtual Bool_t IsSelected(ETarget tgt, AliRsnEvent *ev1, AliRsnEvent *ev2);
+ virtual Bool_t IsSelected(TObject *object);
-protected:
+ protected:
- Bool_t fCorrect; // apply or not the saturation corrections
- Double_t fMass; // mass hypothesis
- Double_t fMIP; // MIP normalization
- Double_t fConst[5]; // calibration constants
+ Bool_t fCorrect; // apply or not the saturation corrections
+ Double_t fMIP; // MIP normalization
+ Double_t fConst[5]; // calibration constants
+ AliPID::EParticleType fType; // reference particle type
- ClassDef(AliRsnCutBetheBloch, 1)
+ ClassDef(AliRsnCutBetheBloch, 1)
};
#endif