FdSimulation/PrimaryGeneratorKG/PrimaryGenerator.h
Go to the documentation of this file.
1 #ifndef _PrimaryGeneratorKG_PrimaryGenerator_h_
2 #define _PrimaryGeneratorKG_PrimaryGenerator_h_
3 
4 #include <fwk/VModule.h>
5 #include <vector>
6 
7 
8 namespace utl {
9  class RandomEngine;
10  class Branch;
11  class RandomSamplerFromPDF;
12 }
13 
14 namespace evt {
15  class Event;
16 }
17 
18 
19 namespace PrimaryGeneratorKG {
20 
21  class PrimaryGenerator : public fwk::VModule {
22 
34  public:
36  virtual ~PrimaryGenerator();
37 
41 
42  private:
43  double DiceEnergy();
44 
45  double fMinLogE = 0;
46  double fMaxLogE = 0;
47  double fIndex = 0;
48  unsigned int fVerbosity = 1;
49  std::vector<int> fPrimZ;
50  std::vector<int> fPrimA;
51 
54 
55  REGISTER_MODULE("PrimaryGeneratorKG", PrimaryGenerator);
56 
57  };
58 
59 }
60 
61 
62 #endif
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
fwk::VModule::ResultFlag Run(evt::Event &theEvent)
Run: invoked once per event.
Wraps the random number engine used to generate distributions.
Definition: RandomEngine.h:27
REGISTER_MODULE("PrimaryGeneratorKG", PrimaryGenerator)
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
Simple event generator to be used in conjunction with ConexShowerGeneratorKG or ProfileSimulatorOG.
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)

, generated on Tue Sep 26 2023.