]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added ToF as data member
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 May 2004 12:29:36 +0000 (12:29 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 May 2004 12:29:36 +0000 (12:29 +0000)
PHOS/AliPHOSFastRecParticle.cxx
PHOS/AliPHOSFastRecParticle.h

index 5263ab01eb414d08dc241d5a2433c3df18f98dcb..367fc68c018d564edadcce3c00f011d9ea6e1389 100644 (file)
@@ -390,18 +390,18 @@ TString AliPHOSFastRecParticle::Name() const
     name = "Photon high purity, ";
 
   if      (IsPi0("low"))
-    name += "Pi0 low purity, ";
+    name = "Pi0 low purity, ";
   else if (IsPi0("medium"))
-    name += "Pi0 medium purity, ";
+    name = "Pi0 medium purity, ";
   else if (IsPi0("high"))
-    name += "Pi0 high purity, ";
+    name = "Pi0 high purity, ";
 
   if      (IsElectron("low"))
-    name += "Electron low purity, ";
+    name = "Electron low purity, ";
   else if (IsElectron("medium"))
-    name += "Electron medium purity, ";
+    name = "Electron medium purity, ";
   else if (IsElectron("high"))
-    name += "Electron high purity, ";
+    name = "Electron high purity, ";
 
   if     (IsHadron()) {
     name = "hadron";
index ce710681976df0d73d789d88b0e6c5b4fbb3a317..6bd9a40196fb84ed62077073fce5b5978d990d7b 100644 (file)
@@ -75,6 +75,8 @@ class AliPHOSFastRecParticle : public TParticle {
   virtual void Paint(Option_t * option="");
   virtual void Print() const ; 
   
+  void SetTof(Float_t tof) { fTof = tof ; } 
+  Float_t ToF() const { return fTof ; } 
   void SetType(Int_t type) ;
   
   void SetIndexInList(Int_t val) { 
@@ -82,7 +84,8 @@ class AliPHOSFastRecParticle : public TParticle {
     fIndexInList = val ; 
   }
   //This has to disappear
-  enum EParticleType { kUNDEFINED=-1, 
+  enum EParticleType { kTYPE = 8, 
+                       kUNDEFINED=-1, 
                       kNEUTRALEMFAST, kNEUTRALHAFAST,  kNEUTRALEMSLOW, kNEUTRALHASLOW, 
                       kCHARGEDEMFAST, kCHARGEDHAFAST,  kCHARGEDEMSLOW, kCHARGEDHASLOW } ; 
   
@@ -91,6 +94,7 @@ class AliPHOSFastRecParticle : public TParticle {
  protected:
 
   Int_t fIndexInList ; // the index of this RecParticle in the list stored in TreeR (to be set by analysis)
+  Float_t fTof ;       // time of fliht
   Int_t fType ;        // particle type obtained by "virtual" reconstruction
  private: