1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | // $Id: TestSimuModule.cc 762 2004-06-16 06:49:36Z thea $ |
---|
3 | // A. Thea created Mar, 13 2004 |
---|
4 | |
---|
5 | #include <iostream> |
---|
6 | #include "TestSimuModule.hh" |
---|
7 | |
---|
8 | ClassImp(TestSimuModule) |
---|
9 | |
---|
10 | // constructor |
---|
11 | TestSimuModule::TestSimuModule(const string& n) : SimuModule(n) { |
---|
12 | } |
---|
13 | |
---|
14 | // destructor |
---|
15 | TestSimuModule::~TestSimuModule() { |
---|
16 | } |
---|
17 | |
---|
18 | // Init method: called at the beginning of a run |
---|
19 | bool TestSimuModule::Init() { |
---|
20 | cout << "Initing Test Module named " << GetName() << endl; |
---|
21 | return true; |
---|
22 | } |
---|
23 | |
---|
24 | // called before each event process |
---|
25 | bool TestSimuModule::PreProcess() { |
---|
26 | cout << "Pre-processing Test Module named " << GetName() << endl; |
---|
27 | return true; |
---|
28 | } |
---|
29 | |
---|
30 | // event processing |
---|
31 | bool TestSimuModule::Process() { |
---|
32 | cout << "Processing Test Module named " << GetName() << endl; |
---|
33 | //MyData()->Add("aa",2); |
---|
34 | //MyData()->Add("aaa",2.); |
---|
35 | //vector<double> *v=new vector<double>; |
---|
36 | //MyData()->Add("aba",v); |
---|
37 | |
---|
38 | return true; |
---|
39 | } |
---|
40 | |
---|
41 | // called after processing an event |
---|
42 | bool TestSimuModule::PostProcess() { |
---|
43 | cout << "Post Processing Test Module named " << GetName() << endl; |
---|
44 | return true; |
---|
45 | } |
---|
46 | |
---|
47 | // called at the end of each run |
---|
48 | bool TestSimuModule::Done() { |
---|
49 | cout << "Ending Test Module named " << GetName() << endl; |
---|
50 | |
---|
51 | return true; |
---|
52 | } |
---|
53 | |
---|
54 | // user cleaning |
---|
55 | void TestSimuModule::UserMemoryClean() { |
---|
56 | //vector<double> *v = (vector<double>*)MyData()->GetObj("aba"); |
---|
57 | //delete v; |
---|
58 | //MyData()->RemoveObj("aba"); |
---|
59 | } |
---|