RPCSimulator.h
Go to the documentation of this file.
1 
10 #ifndef _RPCSimulator_h_
11 #define _RPCSimulator_h_
12 
13 #include <fwk/VModule.h>
14 #include <cevt/Station.h>
15 #include <utl/RandomEngine.h>
16 
17 
18 class TH1D;
19 class TProfile;
20 
21 namespace evt {
22  class Event;
23 }
24 
25 namespace RPCSimulatorLX {
26 
27  class RPCChargeGenerator;
28 
29 
30  class RPCSimulator : public fwk::VModule {
31 
32  public:
34  virtual ~RPCSimulator();
35 
39 
40  private:
42  bool fUseChargeDistribution = false;
44 
45  // Histograms for testing
46 
47  bool fUseRootHistos = false;
48  TH1D* fChargeHisto = nullptr;
49  TProfile* fChargeProfileHisto = nullptr;
50  std::string fRootHistoFilename;
51 
52  REGISTER_MODULE("RPCSimulator", RPCSimulator);
53 
54  };
55 
56 }
57 
58 
59 #endif
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
REGISTER_MODULE("RPCSimulator", RPCSimulator)
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
Definition: RPCSimulator.cc:67
Wraps the random number engine used to generate distributions.
Definition: RandomEngine.h:27
utl::RandomEngine * fRandomEngine
Definition: RPCSimulator.h:41
Module interface.
Definition: VModule.h:53
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
RPCChargeGenerator * fChargeGenerator
Definition: RPCSimulator.h:43
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60

, generated on Tue Sep 26 2023.