From ab091cd5b9d710e4c4a02af498a4d179496b0de3 Mon Sep 17 00:00:00 2001 From: schutz Date: Wed, 4 Feb 2004 17:53:15 +0000 Subject: [PATCH] Removed Track Segments and replaced by RecPoints --- EMCAL/AliEMCALRecParticle.cxx | 8 +++----- EMCAL/AliEMCALRecParticle.h | 8 ++++---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/EMCAL/AliEMCALRecParticle.cxx b/EMCAL/AliEMCALRecParticle.cxx index 6b0122d050c..5f774f5837b 100644 --- a/EMCAL/AliEMCALRecParticle.cxx +++ b/EMCAL/AliEMCALRecParticle.cxx @@ -42,7 +42,7 @@ AliEMCALRecParticle::AliEMCALRecParticle(const AliEMCALRecParticle & rp) { // copy ctor - fEMCALTrackSegment = rp.fEMCALTrackSegment ; + fEMCALRecPoint = rp.fEMCALRecPoint ; fDebug = kFALSE ; fType = rp.fType ; fIndexInList = rp.fIndexInList ; @@ -81,8 +81,7 @@ const Int_t AliEMCALRecParticle::GetNPrimariesToRecParticles() const // Returns the number of primaries at the origine of a RecParticle Int_t rv = 0 ; AliEMCALGetter * gime = AliEMCALGetter::Instance() ; - Int_t ecaRPindex = dynamic_cast(gime->TrackSegments()->At(GetEMCALTSIndex()))->GetECAIndex(); - dynamic_cast(gime->ECARecPoints()->At(ecaRPindex))->GetPrimaries(rv) ; + dynamic_cast(gime->ECARecPoints()->At(GetEMCALRPIndex()))->GetPrimaries(rv) ; return rv ; } @@ -99,8 +98,7 @@ const TParticle * AliEMCALRecParticle::GetPrimary(Int_t index) const Int_t dummy ; AliEMCALGetter * gime = AliEMCALGetter::Instance() ; - Int_t ecaRPindex = dynamic_cast(gime->TrackSegments()->At(GetEMCALTSIndex()))->GetECAIndex(); - Int_t primaryindex = dynamic_cast(gime->ECARecPoints()->At(ecaRPindex))->GetPrimaries(dummy)[index] ; + Int_t primaryindex = dynamic_cast(gime->ECARecPoints()->At(GetEMCALRPIndex()))->GetPrimaries(dummy)[index] ; return gime->Primary(primaryindex) ; } diff --git a/EMCAL/AliEMCALRecParticle.h b/EMCAL/AliEMCALRecParticle.h index a9a49d94154..5bfee563ea5 100644 --- a/EMCAL/AliEMCALRecParticle.h +++ b/EMCAL/AliEMCALRecParticle.h @@ -24,23 +24,23 @@ 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 ; virtual const TParticle * GetPrimary(Int_t index) const ; void SetDebug() { fDebug = kTRUE ; } 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 + Int_t fEMCALRecPoint ; // pointer to the associated track segment in EMCAL Bool_t fDebug ; // to steer debug output ClassDef(AliEMCALRecParticle,2) // Reconstructed Particle -- 2.43.0