]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALFastRecParticle.h
libEMCALbase, libEMCALsim, and libEMCALrec instead of libEMCAL (A.Pavlinov)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALFastRecParticle.h
index 99f04f81ff82b0aa9a4cb9369df3889881920817..7faa0dd3071cf4b2aa52fd053b2c4b485ab93a99 100644 (file)
@@ -13,6 +13,7 @@
 
 // --- ROOT system ---
 
+class TClonesArray;
 #include "TParticle.h"
 
 // --- Standard library ---
@@ -37,13 +38,38 @@ class AliEMCALFastRecParticle : public TParticle {
     // returns the index of this in the list
     return fIndexInList ; 
   } 
-  virtual const Int_t GetNPrimaries() const {return 0 ;}
+  virtual Int_t GetNPrimaries() const {return 0 ;}
   virtual const TParticle * GetPrimary(Int_t /*index=0*/) const  {return 0 ;} 
-  const Int_t GetType() 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 ;