]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSRecParticle.h
Partial redesign of identification bits and coding rule corrections
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecParticle.h
index 1da0c026fb5a7380481bdf75ce5c7999cdbb2f42..e2d5cca18a596035b9c20cd7b9df9d71b589a2b2 100644 (file)
@@ -5,54 +5,45 @@
 
 /* $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 kNEUTRON       = 5 ;  
+#include "AliPHOSFastRecParticle.h"
+class TParticle ;
 
-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 ; } 
-
-private:
-
-  AliPHOSTrackSegment * fPHOSTrackSegment ; // pointer to the associated track segment in PHOS  
-  Int_t fType ;                             // identified particle type
+  AliPHOSRecParticle() { fPHOSTrackSegment = 0 ; fDebug = kFALSE ; } 
+  AliPHOSRecParticle(const AliPHOSRecParticle & rp) ;  // ctor
+  virtual ~AliPHOSRecParticle(){  }
+
+  Int_t   GetPHOSTSIndex()const {    return fPHOSTrackSegment ;  }
+  virtual const Int_t GetNPrimariesToRecParticles() const ;
+  virtual const Int_t GetNPrimaries() const ;
+  virtual const TParticle * GetPrimary(Int_t index) const ;
+  void    SetDebug() { fDebug = kTRUE ; } 
+  void    UnsetDebug() { fDebug = kFALSE ; }
+  void    SetTrackSegment(Int_t index){fPHOSTrackSegment = index; }
+
+  typedef TClonesArray RecParticlesList ; 
+  
+ private:
 
-  ClassDef(AliPHOSRecParticle,1)  // Reconstructed Particle, version 1
+  Int_t fPHOSTrackSegment ; // pointer to the associated track segment in PHOS  
+  Bool_t fDebug ;           // debug flug: silent of =0
 
+  ClassDef(AliPHOSRecParticle,2)  // Reconstructed Particle
 };
 
 #endif // AliPHOSRECPARTICLE_H