rp->SetFirstDaughter(-1);
rp->SetLastDaughter(-1);
rp->SetPolarisation(0,0,0);
+ //Set the position in global coordinate system from the RecPoint
+ //AliEMCALGeometry * geom = gime->EMCALGeometry() ;
+ //AliEMCALTowerRecPoint * erp = gime->ECARecPoint(rp->GetEMCALRPIndex()) ;
+ TVector3 pos ;
+ //geom->GetGlobal(erp, pos) ; !!!!!!!!!! to check
+ rp->SetPos(pos);
+
+
index++ ;
}
#include "AliEMCALFastRecParticle.h"
class TParticle ;
+#include "TVector3.h"
class AliEMCALRecParticle : public AliEMCALFastRecParticle {
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 SetRecPoint(Int_t index){fEMCALRecPoint = index; }
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
};
#include "AliPHOS.h"
#include "AliPHOSPIDv1.h"
#include "AliPHOSClusterizerv1.h"
+#include "AliPHOSEmcRecPoint.h"
#include "AliPHOSTrackSegment.h"
#include "AliPHOSTrackSegmentMakerv1.h"
#include "AliPHOSRecParticle.h"
rp->SetFirstDaughter(-1);
rp->SetLastDaughter(-1);
rp->SetPolarisation(0,0,0);
+ //Set the position in global coordinate system from the RecPoint
+ AliPHOSGeometry * geom = gime->PHOSGeometry() ;
+ AliPHOSTrackSegment * ts = gime->TrackSegment(rp->GetPHOSTSIndex()) ;
+ AliPHOSEmcRecPoint * erp = gime->EmcRecPoint(ts->GetEmcIndex()) ;
+ TVector3 pos ;
+ geom->GetGlobal(erp, pos) ;
+ rp->SetPos(pos);
+
index++ ;
}
}
#include "AliPHOSFastRecParticle.h"
class TParticle ;
+#include "TVector3.h"
class AliPHOSRecParticle : public AliPHOSFastRecParticle {
Int_t GetPHOSTSIndex()const { return fPHOSTrackSegment ; }
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){fPHOSTrackSegment = index; }
private:
Int_t fPHOSTrackSegment ; // pointer to the associated track segment in PHOS
- Bool_t fDebug ; // to steer debug output
+ Bool_t fDebug ; // to steer debug output
+ TVector3 fPos ; // position in the global alice coordinate system
ClassDef(AliPHOSRecParticle,2) // Reconstructed Particle
};