Last change
on this file since 114 was
114,
checked in by moretto, 11 years ago
|
actual version of ESAF at CCin2p3
|
File size:
993 bytes
|
Line | |
---|
1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | // $Id: EventGenerator.hh 2604 2006-03-20 21:51:35Z thea $ |
---|
3 | // Alessandro Thea created Nov, 20 2003 |
---|
4 | |
---|
5 | #ifndef __EVENTGENERATOR_HH_ |
---|
6 | #define __EVENTGENERATOR_HH_ |
---|
7 | |
---|
8 | #include "euso.hh" |
---|
9 | #include "EsafConfigurable.hh" |
---|
10 | #include "Rtypes.h" |
---|
11 | |
---|
12 | class PhysicsData; |
---|
13 | class MCTruth; |
---|
14 | |
---|
15 | |
---|
16 | class EventGenerator: public EsafConfigurable { |
---|
17 | public: |
---|
18 | // dtor |
---|
19 | virtual ~EventGenerator(); |
---|
20 | |
---|
21 | // get a new event |
---|
22 | virtual PhysicsData *Get() = 0; |
---|
23 | |
---|
24 | // get pointer to MonteCarlo Truth |
---|
25 | virtual MCTruth *GetTruth() = 0; |
---|
26 | |
---|
27 | // get ready for next event |
---|
28 | virtual void Reset() = 0; |
---|
29 | |
---|
30 | inline const string& GetName() const { return fName; } |
---|
31 | |
---|
32 | // TODO: release all the memory hold in buffers. |
---|
33 | virtual Bool_t ClearMemory() { return kTRUE; } |
---|
34 | EsafConfigClass(Generators, EventGenerator) |
---|
35 | |
---|
36 | protected: |
---|
37 | // ctor |
---|
38 | EventGenerator( const char* ); |
---|
39 | |
---|
40 | private: |
---|
41 | string fName; |
---|
42 | |
---|
43 | ClassDef(EventGenerator,0) |
---|
44 | }; |
---|
45 | |
---|
46 | |
---|
47 | #endif /* __EVENTGENERATOR_HH_ */ |
---|
48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.