]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnCutBetheBloch.h
fix for bug #70582 (change from L. Molnar)
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnCutBetheBloch.h
index c71de547f70e2dd0218af3eafd5d4c0a963b0eca..4a0269a5e24c80168c7b46e0cd4454d3815da4e9 100644 (file)
@@ -9,38 +9,39 @@
 //          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, 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           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 *track);
-  Double_t       RelDiff(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(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);
 
-protected:
+  protected:
 
-  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
+    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