otsdaq  v1_01_04
 All Classes Namespaces Functions
MonicelliFileReader.h
1 #ifndef _ots_MonicelliFileReader_h
2 #define _ots_MonicelliFileReader_h
3 
4 #include <string>
5 #include <TApplication.h>
6 
7 class TFile;
8 class TTree;
9 class TBranch;
10 namespace monicelli
11 {
12 class Event;
13 class EventHeader;
14 class Geometry;
15 }
16 
17 namespace ots
18 {
19 
21 {
22 public:
25 
26  bool openGeoFile (std::string fileName);
27  bool openEventsFile (std::string fileName);
28  void closeGeoFile (void);
29  void closeEventsFile (void);
30  unsigned int getNumberOfEvents (void);
31  std::string getFileName (void);
32  void readEvent (unsigned int event);
33  monicelli::Event* getEventPointer (void);
34  monicelli::EventHeader* getEventHeaderPointer(void);
35  monicelli::Geometry* getGeometryPointer (void);
36 
37 private:
38  int argv;
39  char** argc;
40  TApplication theApp_ ;
41  TFile* theGeoFile_ ;
42  TFile* theEventsFile_ ;
43  TTree* inputGeometryTree_;
44  TTree* inputEventTree_ ;
45  TTree* inputEventHeader_ ;
46 
47  monicelli::Event* theEvent_ ;
48  monicelli::EventHeader* theEventHeader_ ;
49  monicelli::Geometry* theGeometry_ ;
50  TBranch* theEventBranch_ ;
51  TTree* theEventTree_ ;
52 } ;
53 
54 }
55 #endif