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 | //#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.