]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSRecParticle.h
Increasing TCLonlsArray size to 2000
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecParticle.h
index 1da0c026fb5a7380481bdf75ce5c7999cdbb2f42..3dcac714ef3c5484a3796e6740edded279b9b409 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 kNEUTRON       = 5 ;  
-
-class AliPHOSRecParticle : public TParticle {
+class AliPHOSRecParticle : public AliPHOSFastRecParticle {
 
 public:
   
-  AliPHOSRecParticle() {};          // ctor
+  AliPHOSRecParticle() {
+    // ctor
+  }
   AliPHOSRecParticle(AliPHOSTrackSegment * ts) ;  // ctor
+  AliPHOSRecParticle(const AliPHOSRecParticle & rp) ;  // ctor
+  virtual ~AliPHOSRecParticle(){
+    // dtor
+  }
+  AliPHOSTrackSegment * GetPHOSTrackSegment() const ; 
+  Int_t                 GetPHOSTrackSegmentIndex(){
+    // Getter 
+    return fPHOSTrackSegment ;
+  }
+  Int_t *               GetPrimaries(Int_t & number) ;
+
+  typedef TClonesArray RecParticlesList ; 
+  
+ private:
 
-  virtual ~AliPHOSRecParticle(){} ; // dtor
-
-  AliPHOSTrackSegment * GetPHOSTrackSegment() { return fPHOSTrackSegment ; } 
-  Int_t GetType() { return fType ; } 
-  TString Name() ; 
-  void Print() ; 
-  void SetType(Int_t type) { fType = type ; } 
-
-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