Line | |
---|
1 | #ifndef MARS_MChain
|
---|
2 | #define MARS_MChain
|
---|
3 |
|
---|
4 | #ifndef ROOT_TChain
|
---|
5 | #include <TChain.h>
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MChain : public TChain
|
---|
9 | {
|
---|
10 | private:
|
---|
11 | Bool_t fNotified;
|
---|
12 |
|
---|
13 | public:
|
---|
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 | 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.