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

Last change on this file since 2037 was 1664, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 623 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; }
18
19 virtual Bool_t Notify() { fNotified = kTRUE; return kTRUE; }
20 virtual void SetNotify(TObject *obj) { fNotify = obj; fNotified = kFALSE; }
21
22 Int_t LoadTree(Int_t entry);
23
24 ClassDef(MChain, 1) // Class derived from TChain to give access to Notify-return value
25};
26
27#endif
Note: See TracBrowser for help on using the repository browser.