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

Last change on this file since 457 was 454, checked in by harald, 24 years ago
Import the first sources of the MAGIC Analysis and Reconstruction Software. T. Bretz and H. Kornmayer 20.December 2000
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 TTree;
10
11class MReadTree : public MTask
12{
13private:
14 TFile *fFile; // Pointer to file
15 TTree *fTree; // Pointer to tree
16
17 UInt_t fNumEntry; // Namber 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
23public:
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 DecEventNum(UInt_t dec=1); // decrease number of event (position in tree)
31 Bool_t IncEventNum(UInt_t inc=1); // increase number of event (position in tree)
32 Bool_t SetEventNum(UInt_t nr); // set number of event (position in tree)
33 UInt_t GetEventNum() {return fNumEntry;}
34 UInt_t GetEntries() {return fNumEntries;}
35
36 ClassDef(MReadTree, 1) // Reads one tree
37};
38
39#endif
Note: See TracBrowser for help on using the repository browser.