TList* subTasks = GetListOfTasks();
if (subTasks) {
- subTasks->ForEach(AliDigitizer,Init)();
+ // subTasks->ForEach(AliDigitizer,Init)();
+ TIter next(subTasks);
+ while (AliDigitizer * dig = (AliDigitizer *) next())
+ dig->Init();
}
return kTRUE;
}
/* $Id$ */
-////////////////////////////////////////////////////////////////////////
-//
+//----------------------------------------------------------------------
// AliStream.cxx
-//
// - store file names associated with a given stream
// - open and close files
// - return serial event number of the next event in the stream
// and the TFile pointer for a proper file
-//
-////////////////////////////////////////////////////////////////////////
+//----------------------------------------------------------------------
#include <Riostream.h>
virtual void SetTrack(Int_t track) {fTrack=track;}
virtual void SetLength(Float_t length){fLength=length;}
virtual void SetTime(Float_t time) {fTime = time;}
- virtual Float_t GetLength(){return fLength;}
- virtual Float_t GetTime(){return fTime;}
+ virtual Float_t GetLength() const {return fLength;}
+ virtual Float_t GetTime() const {return fTime;}
virtual Int_t Label() const {return fTrack;}
virtual void SetLabel(Int_t track) {fTrack=track;}
virtual Float_t R() const {return TMath::Sqrt(fX*fX+fY*fY);}