]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALRecParticle.h
Added case of EM + Charged + Pi0
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALRecParticle.h
index 32911f1c038de8c71aa45546e92abf14c60de1a3..bc44dd866bcecc452ff41cd36e7ec418e85f3340 100644 (file)
 
 #include "AliEMCALFastRecParticle.h"
 class TParticle ;
+#include  "TVector3.h"  
 
 class AliEMCALRecParticle : public AliEMCALFastRecParticle {
 
  public:
   
-  AliEMCALRecParticle() { fEMCALTrackSegment = 0 ; fDebug = kFALSE ; } 
+  AliEMCALRecParticle() { fEMCALRecPoint = 0 ; fDebug = kFALSE ; } 
   AliEMCALRecParticle(const AliEMCALRecParticle & rp) ;  // ctor
   virtual ~AliEMCALRecParticle(){  }
 
-  Int_t   GetEMCALTSIndex()const {    return fEMCALTrackSegment ;  }
+  Int_t   GetEMCALRPIndex()const {    return fEMCALRecPoint ;  }
   virtual const Int_t GetNPrimariesToRecParticles() const ;
   virtual const Int_t GetNPrimaries() const ;
+  TVector3 GetPos() const { return fPos ; } 
   virtual const TParticle * GetPrimary(Int_t index) const ;
   void    SetDebug() { fDebug = kTRUE ; } 
+  void    SetPos(TVector3 pos) { fPos.SetXYZ( pos.X(), pos.Y(), pos.Z() ); } 
   void    UnsetDebug() { fDebug = kFALSE ; }
-  void    SetTrackSegment(Int_t index){fEMCALTrackSegment = index; }
+  void    SetRecPoint(Int_t index){fEMCALRecPoint = index; }
 
   typedef TClonesArray RecParticlesList ; 
   
  private:
 
-  Int_t fEMCALTrackSegment ; // pointer to the associated track segment in EMCAL  
-  Bool_t fDebug ; 
+  Int_t fEMCALRecPoint ; // pointer to the associated track segment in EMCAL  
+  Bool_t fDebug ; // to steer debug output 
+  TVector3 fPos ; // position in the global alice coordinate system 
 
   ClassDef(AliEMCALRecParticle,2)  // Reconstructed Particle
 };