]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSRecParticle.h
polish
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecParticle.h
index fbc47ccfeb284264d70124f59721c2b5f20db8ce..f22a3f5b0f7c861922dc1096299473e642ed8f36 100644 (file)
@@ -5,12 +5,11 @@
 
 /* $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 ?        
+//       
+//*-- Author: Yves Schutz (SUBATECH)
 
 // --- ROOT system ---
 
 // --- AliRoot header files ---
 
 #include "AliPHOSTrackSegment.h"
+#include "AliPHOSFastRecParticle.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 ;  
-const static Int_t kGAMMAHADRON   = 7 ; 
+typedef TClonesArray RecParticlesList ; 
 
-class AliPHOSRecParticle : public TParticle {
+class AliPHOSRecParticle : public AliPHOSFastRecParticle {
 
 public:
   
   AliPHOSRecParticle() {};          // ctor
   AliPHOSRecParticle(AliPHOSTrackSegment * ts) ;  // ctor
-
+  AliPHOSRecParticle(const AliPHOSRecParticle & rp) ;  // ctor
   virtual ~AliPHOSRecParticle(){} ; // dtor
 
-  AliPHOSTrackSegment * GetPHOSTrackSegment() { return fPHOSTrackSegment ; } 
-  Int_t GetType() { return fType ; } 
-  TString Name() ; 
-  void Print() ; 
-  void SetType(Int_t type) { fType = type ; } 
+  AliPHOSTrackSegment * GetPHOSTrackSegment() const ; 
+  Int_t *               GetPrimaries(Int_t & number) ;
 
 private:
 
-  AliPHOSTrackSegment * fPHOSTrackSegment ; // pointer to the associated track segment in PHOS  
-  Int_t fType ;                             // identified particle type
-
-  ClassDef(AliPHOSRecParticle,1)  // Reconstructed Particle, version 1
+  Int_t fPHOSTrackSegment ; // pointer to the associated track segment in PHOS  
 
+  ClassDef(AliPHOSRecParticle,1)  // Reconstructed Particle
 };
 
 #endif // AliPHOSRECPARTICLE_H