source: trunk/MagicSoft/Mars/mfileio/MChain.h@ 5832

Last change on this file since 5832 was 5832, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 789 bytes
Line 
1#ifndef MARS_MChain
2#define MARS_MChain
3
4#ifndef ROOT_TChain
5#include <TChain.h>
6#endif
7
8class MChain : public TChain
9{
10private:
11 Bool_t fNotified;
12
13public:
14 MChain() : TChain(), fNotified(kFALSE) {}
15 MChain(const char *name, const char *title="") : TChain(name, title), fNotified(kFALSE) {}
16
17 void ResetTree() { fTree = 0; fTreeNumber = -1; }
18
19 virtual Bool_t Notify() { fNotified = kTRUE; return kTRUE; }
20 virtual void SetNotify(TObject *obj) { fNotify = obj; fNotified = kFALSE; }
21
22//#if ROOT_VERSION_CODE < ROOT_VERSION(4,02,00)
23 Int_t LoadTree(Int_t entry) { return (Int_t)LoadTree((Long64_t)entry); }
24//#else
25 Long64_t LoadTree(Long64_t entry);
26//#endif
27
28 ClassDef(MChain, 1) // Class derived from TChain to give access to Notify-return value
29};
30
31#endif
Note: See TracBrowser for help on using the repository browser.