]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSRecParticle.h
Adding some QCD diffractive states to the PDG list
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecParticle.h
index 0e0c0161ccca0f18d4e0c1da3a71b156cac4c6d1..e2d5cca18a596035b9c20cd7b9df9d71b589a2b2 100644 (file)
@@ -8,48 +8,42 @@
 //_________________________________________________________________________
 //  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 TParticle ;
 
 class AliPHOSRecParticle : public AliPHOSFastRecParticle {
 
-public:
+ public:
   
-  AliPHOSRecParticle() {
-    // ctor
-  }
-  AliPHOSRecParticle(AliPHOSTrackSegment * ts) ;  // ctor
+  AliPHOSRecParticle() { fPHOSTrackSegment = 0 ; fDebug = kFALSE ; } 
   AliPHOSRecParticle(const AliPHOSRecParticle & rp) ;  // ctor
-  virtual ~AliPHOSRecParticle(){
-    // dtor
-  }
-  AliPHOSTrackSegment * GetPHOSTrackSegment() const ; 
-  Int_t                 GetPHOSTrackSegmentIndex(){
-    // Getter 
-    return fPHOSTrackSegment ;
-  }
-  Int_t *               GetPrimaries(Int_t & number) ;
-
-private:
+  virtual ~AliPHOSRecParticle(){  }
 
-  Int_t fPHOSTrackSegment ; // pointer to the associated track segment in PHOS  
+  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:
 
+  Int_t fPHOSTrackSegment ; // pointer to the associated track segment in PHOS  
+  Bool_t fDebug ;           // debug flug: silent of =0
 
-  ClassDef(AliPHOSRecParticle,1)  // Reconstructed Particle
+  ClassDef(AliPHOSRecParticle,2)  // Reconstructed Particle
 };
 
 #endif // AliPHOSRECPARTICLE_H