AlcapDAQ  1
TestModule.cpp
Go to the documentation of this file.
1 #include "TestModule.h"
2 #include "RegisterModule.inc"
3 #include "TGlobalData.h"
4 #include "TSetupData.h"
5 #include "ModulesOptions.h"
6 
7 #include <iostream>
8 using std::cout;
9 using std::endl;
10 
12  FillHistBase("TestModule",opts){
13 
14  // Do something with opts here. Has the user specified any
15  // particular configuration that you want to know?
16  // For example, perhaps this module wants an axis range:
17  fXMax=opts->GetDouble("x_max",100);
18 
19 }
20 
22 }
23 
24 // Called before the main event loop
25 // Can be used to set things up, like histograms etc
26 // Return non-zero to indicate a problem
28  // Print extra info if we're debugging this module:
29  if(Debug()){
30  cout<<"-----I'm debugging TestModule::BeforeFirstEntry() "<<endl;
31  }
32 
33  return 0;
34 }
35 
36 // Called once for each event in the main event loop
37 // Return non-zero to indicate a problem and terminate the event loop
39  return 0;
40 }
41 
42 // Called just after the main event loop
43 // Can be used to write things out, dump a summary etc
44 // Return non-zero to indicate a problem
46 
47  // Print extra info if we're debugging this module:
48  if(Debug()){
49  cout<<"-----I'm debugging TestModule::AfterLastEntry()"<<endl;
50  }
51 
52  return 0;
53 }
54 
55 // The following macro registers this module to be useable in the config file.
56 // The first argument is compulsory and gives the name of this module
57 // All subsequent arguments will be used as names for arguments given directly
58 // within the modules file.
59 //ALCAP_REGISTER_MODULE(TestModule ,slow_gen,fast_gen);