Last change
on this file since 117 was
117,
checked in by moretto, 11 years ago
|
ESAF version compilable on mac OS
|
File size:
1004 bytes
|
Line | |
---|
1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | // $Id: TestInputModule.cc 2637 2006-03-29 14:29:36Z thea $ |
---|
3 | // Marco Pallavicini created Oct, 16 2003 |
---|
4 | |
---|
5 | #include <iostream> |
---|
6 | #include "TestInputModule.hh" |
---|
7 | #include "RecoEvent.hh" |
---|
8 | |
---|
9 | ClassImp(TestInputModule) |
---|
10 | |
---|
11 | // ctor |
---|
12 | TestInputModule::TestInputModule(const string& name) : InputModule( name ) { |
---|
13 | fCounter = 3; |
---|
14 | } |
---|
15 | |
---|
16 | // dtor |
---|
17 | TestInputModule::~TestInputModule() { |
---|
18 | } |
---|
19 | |
---|
20 | // returns an event |
---|
21 | RecoEvent* TestInputModule::GetEvent( const char* opt ) { |
---|
22 | if ( fCounter-- > 0 ) |
---|
23 | SetRecoEvent( new RecoEvent() ); |
---|
24 | else |
---|
25 | SetRecoEvent(0); |
---|
26 | return GetRecoEvent(); |
---|
27 | } |
---|
28 | |
---|
29 | // init |
---|
30 | Bool_t TestInputModule::Init() { |
---|
31 | cout << "Init input module " << GetName() << endl; |
---|
32 | fCounter = 3; |
---|
33 | return true; |
---|
34 | } |
---|
35 | |
---|
36 | // done |
---|
37 | Bool_t TestInputModule::Done() { |
---|
38 | cout << "Done input module " << GetName() << endl; |
---|
39 | return true; |
---|
40 | } |
---|
41 | |
---|
42 | // destroy event |
---|
43 | void TestInputModule::DestroyEvent() { |
---|
44 | if ( GetRecoEvent() ) |
---|
45 | delete GetRecoEvent(); |
---|
46 | SetRecoEvent(0); |
---|
47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.