]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSRecParticle.h
Corrected bug in GetRowNumber (class AliTPCSector)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecParticle.h
index bdea233e8cff368528155b62c7ed5515d283ca94..55bf1a40190afb6f9bacb78a683f0367c6c5b5ca 100644 (file)
@@ -5,55 +5,38 @@
 
 /* $Id$ */
 
-////////////////////////////////////////////////
-//  A Reconstructed Particle in PHOS          //
-//  Yves Schutz SUBATECH                      //
-//  To become a general class of AliRoot ?    //  
-//                                            //
-////////////////////////////////////////////////
+//_________________________________________________________________________
+//  A Reconstructed Particle in PHOS    
+//  To become a general class of AliRoot ?        
+//  why not      
+//*-- Author: Yves Schutz (SUBATECH)
 
 // --- ROOT system ---
 
-#include "TParticle.h"
-#include "TVector3.h"
-
 // --- Standard library ---
 
 // --- AliRoot header files ---
 
-#include "AliPHOSTrackSegment.h"
-
-const static Int_t kUNDEFINED     = -1; 
-const static Int_t kGAMMA         = 0 ; 
-const static Int_t kELECTRON      = 1 ;
-const static Int_t kNEUTRAL       = 2 ;  
-const static Int_t kCHARGED       = 3 ;  
-const static Int_t kCHARGEDHADRON = 4 ;  
-const static Int_t kNEUTRALHADRON = 5 ;  
-const static Int_t kNEUTRALEM     = 6 ;  
+#include "AliPHOSFastRecParticle.h"
 
-class AliPHOSRecParticle : public TParticle {
+class AliPHOSRecParticle : public AliPHOSFastRecParticle {
 
-public:
+ public:
   
-  AliPHOSRecParticle() {};          // ctor
-  AliPHOSRecParticle(AliPHOSTrackSegment * ts) ;  // ctor
-
-  virtual ~AliPHOSRecParticle(){} ; // dtor
-
-  AliPHOSTrackSegment * GetPHOSTrackSegment() { return fPHOSTrackSegment ; } 
-  Int_t GetType() { return fType ; } 
-  TString Name() ; 
-  void Print() ; 
-  void SetType(Int_t type) { fType = type ; } 
+  AliPHOSRecParticle() {  }
+  AliPHOSRecParticle(const AliPHOSRecParticle & rp) ;  // ctor
+  virtual ~AliPHOSRecParticle(){  }
 
-private:
+  Int_t  GetPHOSTSIndex()const {    return fPHOSTrackSegment ;  }
+  void   SetTraskSegment(Int_t index){fPHOSTrackSegment = index; }
 
-  AliPHOSTrackSegment * fPHOSTrackSegment ; // pointer to the associated track segment in PHOS  
-  Int_t fType ;                             // identified particle type
-
-  ClassDef(AliPHOSRecParticle,1)  // Reconstructed Particle, version 1
+  typedef TClonesArray RecParticlesList ; 
+  
+ private:
 
+  Int_t fPHOSTrackSegment ; // pointer to the associated track segment in PHOS  
+  
+  ClassDef(AliPHOSRecParticle,1)  // Reconstructed Particle
 };
 
 #endif // AliPHOSRECPARTICLE_H