source: JEM-EUSO/esaf_cc_at_lal/packages/simulation/framework/src/TestSimuModule.cc @ 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.4 KB
Line 
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
8ClassImp(TestSimuModule)
9
10// constructor
11TestSimuModule::TestSimuModule(const string& n) : SimuModule(n) {
12}
13
14// destructor
15TestSimuModule::~TestSimuModule() {
16}
17
18// Init method: called at the beginning of a run
19bool TestSimuModule::Init() {
20    cout << "Initing Test Module named " << GetName() << endl;   
21    return true;
22}
23
24// called before each event process
25bool TestSimuModule::PreProcess() {
26    cout << "Pre-processing Test Module named " << GetName() << endl;   
27    return true;
28}
29
30// event processing
31bool 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
42bool TestSimuModule::PostProcess() {
43    cout << "Post Processing Test Module named " << GetName() << endl;   
44    return true;
45}
46
47// called at the end of each run
48bool TestSimuModule::Done() {
49    cout << "Ending Test Module named " << GetName() << endl;   
50   
51    return true;
52}
53
54// user cleaning
55void TestSimuModule::UserMemoryClean() {
56    //vector<double> *v = (vector<double>*)MyData()->GetObj("aba");
57    //delete v;
58    //MyData()->RemoveObj("aba");
59}
Note: See TracBrowser for help on using the repository browser.