Last change
on this file since 691 was 585, checked in by harald, 24 years ago |
Adding some new code to start with the development of the usecase
"Event Display".
|
File size:
1.0 KB
|
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 TTree;
|
---|
10 |
|
---|
11 | class MReadTree : public MTask
|
---|
12 | {
|
---|
13 | private:
|
---|
14 | TFile *fFile; // Pointer to file
|
---|
15 | TTree *fTree; // Pointer to tree
|
---|
16 |
|
---|
17 | UInt_t fNumEntry; // Number of actual entry
|
---|
18 | UInt_t fNumEntries; // Number of Events in Tree
|
---|
19 |
|
---|
20 | TString fFileName; // Name of File
|
---|
21 | TString fTreeName; // Name of Tree
|
---|
22 |
|
---|
23 | public:
|
---|
24 | MReadTree(const char *filename, const char *treename, const char *name=NULL, const char *title=NULL);
|
---|
25 |
|
---|
26 | Bool_t PreProcess(MParList *pList);
|
---|
27 | Bool_t Process();
|
---|
28 | Bool_t PostProcess();
|
---|
29 |
|
---|
30 | Bool_t GetEvent() ;
|
---|
31 |
|
---|
32 | Bool_t DecEventNum(UInt_t dec=1); // decrease number of event (position in tree)
|
---|
33 | Bool_t IncEventNum(UInt_t inc=1); // increase number of event (position in tree)
|
---|
34 | Bool_t SetEventNum(UInt_t nr); // set number of event (position in tree)
|
---|
35 | UInt_t GetEventNum() {return fNumEntry;}
|
---|
36 | UInt_t GetEntries() {return fNumEntries;}
|
---|
37 |
|
---|
38 | ClassDef(MReadTree, 1) // Reads one tree
|
---|
39 | };
|
---|
40 |
|
---|
41 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.