class TFile;
class TTree;
class TList;
+class TTreeCache;
class TParticle;
class TString;
AliMCEventHandler(const char* name, const char* title);
virtual ~AliMCEventHandler();
virtual void SetOutputFileName(const char* /* fname */) {;}
- virtual const char* GetOutputFileName() {return 0;}
+ virtual const char* GetOutputFileName() const {return 0;}
virtual void SetInputPath(const char* fname);
virtual void SetInputTree(TTree* /*tree*/) {;}
virtual TString* GetInputPath() const {return fPathName;}
virtual Bool_t TerminateIO();
virtual void ResetIO();
virtual Bool_t LoadEvent(Int_t iev);
- virtual void SetReadTR(Bool_t flag) { fReadTR = flag; }
+ virtual void SetReadTR(Bool_t flag) { Changed(); fReadTR = flag; }
virtual void AddSubsidiaryHandler(AliMCEventHandler* handler);
virtual void SetNumberOfEventsInContainer(Int_t nev) {fEventsInContainer = nev;}
- virtual void SetPreReadMode(PreReadMode_t mode) {fPreReadMode = mode;}
+ virtual void SetPreReadMode(PreReadMode_t mode) {Changed(); fPreReadMode = mode;}
+ virtual void SetCacheSize(Long64_t size) {if (fCacheSize==0) fCacheSize = size;}
//
AliMCEvent* MCEvent() const {return fMCEvent;}
TTree* TreeTR() const {return fTreeTR;}
TList *fSubsidiaryHandlers; //! List of subsidiary MC handlers (for example for Background)
Int_t fEventsInContainer; //! Number of events in container class
PreReadMode_t fPreReadMode; // Pre reading mode
+ Long64_t fCacheSize; // Cache size for kinematics tree
+ TTreeCache *fCacheTK; //! Cache for kinematics tree
+ TTreeCache *fCacheTR; //! Cache for track references tree
- ClassDef(AliMCEventHandler,2) //MC Truth EventHandler class
+ ClassDef(AliMCEventHandler,3) //MC Truth EventHandler class
};
#endif