From 788ba14f6bed5617a212402299f73b54130d6fe1 Mon Sep 17 00:00:00 2001 From: masera Date: Wed, 2 Dec 2009 14:08:43 +0000 Subject: [PATCH] Added new signature for method FetchClusters, to be used for data monitoring with AMORE (M. Masera) --- ITS/AliITSRecPointContainer.cxx | 11 ++++++++++- ITS/AliITSRecPointContainer.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ITS/AliITSRecPointContainer.cxx b/ITS/AliITSRecPointContainer.cxx index bc77c748dea..2cad7ab4883 100644 --- a/ITS/AliITSRecPointContainer.cxx +++ b/ITS/AliITSRecPointContainer.cxx @@ -97,8 +97,17 @@ void AliITSRecPointContainer::CookEntries(){ } //______________________________________________________________________ TClonesArray* AliITSRecPointContainer::FetchClusters(Int_t mod, TTree* tR){ - // retrieves Recpoints for module mod + // retrieves Recpoints for module mod (offline mode: the event number is + // retrieved via the AliRunLoader object) Int_t cureve=AliRunLoader::Instance()->GetEventNumber(); + return FetchClusters(mod,tR,cureve); +} +//______________________________________________________________________ +TClonesArray* AliITSRecPointContainer::FetchClusters(Int_t mod, TTree* tR,Int_t cureve){ + // retrieves Recpoints for module mod + // cureve is the current event number. If it is different w.r.t. + // the event number stored in fCurrentEve, the recpoints are read from + // the TTree. Otherwise, the RP stored in memory are used. if(cureve != fCurrentEve){ fCurrentEve = cureve; Reset(); diff --git a/ITS/AliITSRecPointContainer.h b/ITS/AliITSRecPointContainer.h index 5123905a4c7..a0fb1a11a00 100644 --- a/ITS/AliITSRecPointContainer.h +++ b/ITS/AliITSRecPointContainer.h @@ -29,6 +29,7 @@ class AliITSRecPointContainer : public TObject { static AliITSRecPointContainer* Instance(const AliITSRecoParam *ptr=NULL); TClonesArray* FetchClusters(Int_t mod, TTree* tR); + TClonesArray* FetchClusters(Int_t mod, TTree* tR,Int_t cureve); TClonesArray* UncheckedGetClusters(Int_t mod) const {return fArray[mod];} private: -- 2.39.3