]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALFastRecParticle.h
Recalculated sampling fraction, with the addition of Birks' Law
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALFastRecParticle.h
index b8bbe997ada24f9c8fad60e197e555bf29d370d5..db8b731069a6dbe9c4327ece10cb6212491de6c2 100644 (file)
@@ -13,8 +13,8 @@
 
 // --- ROOT system ---
 
+class TClonesArray;
 #include "TParticle.h"
-#include "TVector3.h"
 
 // --- Standard library ---
 
@@ -39,12 +39,37 @@ class AliEMCALFastRecParticle : public TParticle {
     return fIndexInList ; 
   } 
   virtual const Int_t GetNPrimaries() const {return 0 ;}
-  virtual const TParticle * GetPrimary(Int_t index=0) const  {return 0 ;} 
+  virtual const TParticle * GetPrimary(Int_t /*index=0*/) const  {return 0 ;} 
   const Int_t GetType() const { 
     // returns the type of the particle
     return fType ; 
   } 
+  void SetPIDBit(UInt_t fSet) {
+    // Set PID bit number fSet
+    fType |= (1<<fSet) ; 
+  } 
+  
+  Bool_t TestPIDBit(UInt_t fTest) const {
+    // Check PID bit number fTest
+    if (fType & (1<<fTest) ) return  kTRUE ;   
+    else return kFALSE ;
+  }
   
+  Bool_t IsPhoton           (TString purity = "low") const;
+  Bool_t IsPi0              (TString purity = "low") const;
+  Bool_t IsElectron         (TString purity = "low") const;
+  Bool_t IsHardPhoton       () const;
+  Bool_t IsHardPi0          () const;
+  Bool_t IsHadron           () const;
+  Bool_t IsChargedHadron    () const;
+  Bool_t IsNeutralHadron    () const;
+  Bool_t IsFastChargedHadron() const;
+  Bool_t IsSlowChargedHadron() const;
+  Bool_t IsFastNeutralHadron() const;
+  Bool_t IsSlowNeutralHadron() const;
+  Bool_t IsEleCon(TString purity = "low") const;  
+
   TString Name() const ; 
   virtual void Paint(Option_t * option="");
   virtual void Print(Option_t * option = "") const ;