source: trunk/MagicSoft/Mars/mbase/MReadTree.h@ 749

Last change on this file since 749 was 705, checked in by tbretz, 24 years ago
*** empty log message ***
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
8class TFile;
9class TChain;
10
11class MReadTree : public MTask
12{
13private:
14 TFile *fFile; // Pointer to file
15 TChain *fChain; // Pointer to tree
16
17 UInt_t fNumEntry; // Number of actual entry
18 UInt_t fNumEntries; // Number of Events in Tree
19
20public:
21 MReadTree(const char *treename, const char *filename=NULL, const char *name=NULL, const char *title=NULL);
22 ~MReadTree();
23
24 Bool_t PreProcess(MParList *pList);
25 Bool_t Process();
26 Bool_t PostProcess();
27
28 void AddFile(const char *fname);
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
36 UInt_t GetEventNum() const { return fNumEntry; }
37 UInt_t GetEntries() const { return fNumEntries; }
38
39 ClassDef(MReadTree, 0) // Reads one tree
40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.