]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSRecPointContainer.cxx
Added new signature for method FetchClusters, to be used for data monitoring with...
[u/mrichter/AliRoot.git] / ITS / AliITSRecPointContainer.cxx
index bc77c748dea6a9901726e8c83fb74c421c6a2429..2cad7ab4883f4b66cb2b9222172918d07de20f50 100644 (file)
@@ -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();