Line | |
---|
1 | #ifndef MREADTREE_H
|
---|
2 | #define MREADTREE_H
|
---|
3 |
|
---|
4 | #ifndef MTASK_H
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TFile;
|
---|
9 | class TChain;
|
---|
10 | class TArrayC;
|
---|
11 |
|
---|
12 | class MReadTree : public MTask
|
---|
13 | {
|
---|
14 | private:
|
---|
15 | TFile *fFile; // Pointer to file
|
---|
16 | TChain *fChain; // Pointer to tree
|
---|
17 |
|
---|
18 | TArrayC *fVetoList; // List of Branches which are not allowed to get enabled
|
---|
19 |
|
---|
20 | UInt_t fNumEntry; // Number of actual entry
|
---|
21 | UInt_t fNumEntries; // Number of Events in Tree
|
---|
22 |
|
---|
23 | Bool_t HasVeto(const char *name) const;
|
---|
24 |
|
---|
25 | public:
|
---|
26 | MReadTree(const char *treename, const char *filename=NULL, const char *name=NULL, const char *title=NULL);
|
---|
27 | ~MReadTree();
|
---|
28 |
|
---|
29 | Bool_t PreProcess(MParList *pList);
|
---|
30 | Bool_t Process();
|
---|
31 |
|
---|
32 | void AddFile(const char *fname);
|
---|
33 | void VetoBranch(const char *name);
|
---|
34 |
|
---|
35 | Bool_t GetEvent();
|
---|
36 |
|
---|
37 | Bool_t DecEventNum(UInt_t dec=1); // decrease number of event (position in tree)
|
---|
38 | Bool_t IncEventNum(UInt_t inc=1); // increase number of event (position in tree)
|
---|
39 | Bool_t SetEventNum(UInt_t nr); // set number of event (position in tree)
|
---|
40 |
|
---|
41 | UInt_t GetEventNum() const { return fNumEntry; }
|
---|
42 | UInt_t GetEntries() const { return fNumEntries; }
|
---|
43 |
|
---|
44 | ClassDef(MReadTree, 0) // Reads one tree
|
---|
45 | };
|
---|
46 |
|
---|
47 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.