#ifndef MARS_MChain #define MARS_MChain #ifndef ROOT_TChain #include #endif class MChain : public TChain { private: Bool_t fNotified; public: MChain() : TChain(), fNotified(kFALSE) {} MChain(const char *name, const char *title="") : TChain(name, title), fNotified(kFALSE) {} void ResetTree() { fTree = 0; fTreeNumber = -1; } virtual Bool_t Notify() { fNotified = kTRUE; return kTRUE; } virtual void SetNotify(TObject *obj) { fNotify = obj; fNotified = kFALSE; } //#if ROOT_VERSION_CODE < ROOT_VERSION(4,02,00) Int_t LoadTree(Int_t entry) { return (Int_t)LoadTree((Long64_t)entry); } //#else Long64_t LoadTree(Long64_t entry); //#endif ClassDef(MChain, 1) // Class derived from TChain to give access to Notify-return value }; #endif