Last change
on this file since 117 was
117,
checked in by moretto, 11 years ago
|
ESAF version compilable on mac OS
|
File size:
1.4 KB
|
Line | |
---|
1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | // $Id: UnisimFileShowerGenerator.hh 2529 2006-03-03 11:16:11Z thea $ |
---|
3 | // sergio bottai created Jan, 22 2004 |
---|
4 | |
---|
5 | #ifndef __UNISIMFILESHOWERGENERATOR_HH_ |
---|
6 | #define __UNISIMFILESHOWERGENERATOR_HH_ |
---|
7 | |
---|
8 | #include "euso.hh" |
---|
9 | #include "EventGenerator.hh" |
---|
10 | #include "EsafMsgSource.hh" |
---|
11 | #include "Config.hh" |
---|
12 | #include "ShowerTrack.hh" |
---|
13 | class PhysicsData; |
---|
14 | class ShowerTrack; |
---|
15 | class MCTruth; |
---|
16 | |
---|
17 | class UnisimFileShowerGenerator : public EventGenerator, public EsafMsgSource { |
---|
18 | public: |
---|
19 | // ctor |
---|
20 | UnisimFileShowerGenerator(); |
---|
21 | |
---|
22 | // dtor |
---|
23 | ~UnisimFileShowerGenerator(); |
---|
24 | |
---|
25 | // get a new event |
---|
26 | PhysicsData *Get(); |
---|
27 | |
---|
28 | // get pointer to MonteCarlo Truth |
---|
29 | MCTruth *GetTruth(); |
---|
30 | virtual void ReplaceInputFile( const char* ); |
---|
31 | |
---|
32 | // get ready for next event |
---|
33 | virtual void Reset() {} //FIXME : to be implemented |
---|
34 | |
---|
35 | void Open(); |
---|
36 | void Close(); |
---|
37 | |
---|
38 | EsafConfigClass(Generators, UnisimFileShowerGenerator) |
---|
39 | |
---|
40 | private: |
---|
41 | |
---|
42 | ShowerTrack *fTrack; |
---|
43 | ShowerStep fStep; |
---|
44 | FILE* fFile; |
---|
45 | MCTruth *fTruth; |
---|
46 | string fFileName; |
---|
47 | map<string,double> fHeader; |
---|
48 | bool LoadTrack(Int_t) ; |
---|
49 | bool LoadHeader() ; |
---|
50 | void LoadTruth(); |
---|
51 | int fFirstEvent; // this is the first event to read. All previous will be skipped |
---|
52 | int fCurrentEvent; // this is the current event to read. |
---|
53 | ClassDef(UnisimFileShowerGenerator,0) |
---|
54 | }; |
---|
55 | |
---|
56 | #endif /* __UNISIMFILESHOWERGENERATOR_HH_ */ |
---|
57 | |
---|
Note: See
TracBrowser
for help on using the repository browser.