]> 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 d6644e7e90f17529a9cad7ac521e9ff9ca7531a3..55bf1a40190afb6f9bacb78a683f0367c6c5b5ca 100644 (file)
@@ -5,47 +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"
+#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() ;   
-
-private:
+  AliPHOSRecParticle() {  }
+  AliPHOSRecParticle(const AliPHOSRecParticle & rp) ;  // ctor
+  virtual ~AliPHOSRecParticle(){  }
 
-  AliPHOSTrackSegment * fPHOSTrackSegment ; // pointer to the associated track segment in PHOS  
-  Int_t fType ;                             // guessed particle type
+  Int_t  GetPHOSTSIndex()const {    return fPHOSTrackSegment ;  }
+  void   SetTraskSegment(Int_t index){fPHOSTrackSegment = index; }
 
-public: 
-
-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