source: JEM-EUSO/esaf_cc_at_lal/packages/reconstruction/input/include/RootInputModule.hh @ 114

Last change on this file since 114 was 114, checked in by moretto, 11 years ago

actual version of ESAF at CCin2p3

File size: 1.8 KB
Line 
1// ESAF : Euso Simulation and Analysis Framework
2// $Id: RootInputModule.hh 2933 2011-06-18 07:30:47Z naumov $
3// Marco Pallavicini created Oct, 16 2003
4
5#ifndef __ROOTINPUTMODULE_HH_
6#define __ROOTINPUTMODULE_HH_
7
8#include "euso.hh"
9#include "InputModule.hh"
10
11class TFile;
12class TTree;
13class TBranch;
14class EEvent;
15class ERunParameters;
16class RecoRootEvent;
17
18class RootInputModule : public InputModule {
19public:
20    // ctor
21    RootInputModule();
22
23    // dtor
24    virtual ~RootInputModule();
25
26    // return on event reading from root file
27    virtual RecoEvent *GetEvent( const char* opt = 0);
28
29    // destroy last event
30    virtual void DestroyEvent();
31   
32    // destroy last event
33    virtual Bool_t Init();
34   
35    // destroy last event
36    virtual Bool_t Done();
37   
38    // save root output
39    virtual Bool_t SaveRootData( RecoRootEvent* );
40     
41    EsafConfigClass(Reco,RootInputModule)
42
43private:
44
45    // Save simu Shower
46    Bool_t SaveShowerObject(RecoEvent *ev);
47    Bool_t SaveAtmosphereObject(RecoEvent *ev);
48    Bool_t SaveTruthObject(RecoEvent *ev);
49    Bool_t SaveDetectorObject(RecoEvent *ev);
50    // pointer to root file
51    TFile* fRootFile;
52
53    // pointer to TTree
54    TTree* fTree;
55
56    // pointer to runtree
57    TTree* fRunTree;
58   
59    // number of events in TTree
60    Int_t fNumEvents;
61
62    // first and last event id
63    Int_t fFirstEvent;
64    Int_t fLastEvent;
65
66    // pointer to current event in the TTree
67    Int_t fEventCounter;
68
69    // pointer to euso event
70    EEvent *fEv;
71
72    // pointer to simu run parameters
73    ERunParameters *fRunPars;
74
75    // pointer to branch of entire simu event
76    TBranch *fBranch;
77
78    // pointer to branch of entire run parameters
79    TBranch *fRunBranch;
80    ClassDef(RootInputModule,0)
81};
82
83#endif  /* __ROOTINPUTMODULE_HH_ */
84
Note: See TracBrowser for help on using the repository browser.