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

Last change on this file since 528 was 463, checked in by harald, 24 years ago
The first implementation of a gui to test the data of Octobertest was implemented. Therefore the two subdirs mgui and mdatacheck were introduced. The program for the gui is called -> mars <-.
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; // 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
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 GetEvent(Int_t num ) ;
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.