MdGroundPropagator.h
Go to the documentation of this file.
1 #ifndef _GroundPropagatorAG_GroundPropagator_h_
2 #define _GroundPropagatorAG_GroundPropagator_h_
3 
4 #include <fwk/VModule.h>
5 #include <utl/TimeDistribution.h>
6 
7 #include <mdet/MDetector.h>
8 #include <mevt/MEvent.h>
9 
10 #include <globals.hh>
11 
12 #include <fstream>
13 
14 class G4RunManager;
15 class G4UImanager;
16 class G4VisManager;
17 
18 namespace GroundPropagatorAG {
26  class SteppingAction;
27 
29  class GroundPropagator : public fwk::VModule {
30 
32  private:
33  std::string fEventId;
34  G4double fGrammage;
35 
37  { return fCurrentDetectorCounter; }
38 
40  { return fCurrentEventCounterIt; }
41 
43  { return fCurrentParticleIt; }
44 
48 
49  public:
51  virtual ~GroundPropagator();
52 
56 
58  private:
59  G4RunManager* fRunManager;
60  G4UImanager * fUImanager;
61  G4VisManager* fVisManager;
63 
64  bool fGeomVisOn;
65  bool fTrajVisOn;
67  std::ofstream fStatFile;
68  std::ofstream fStatUFile;
69 
70  friend class PrimaryGenerator;
71 
72 
73  REGISTER_MODULE("GroundPropagatorAG", GroundPropagator);
74 
75  };
76 
77 }
78 
79 #endif
boost::indirect_iterator< InternalGrdParticleIterator, utl::Particle & > GrdParticleIterator
std::string fEventId
Private members.
static mevt::MEvent::CounterIterator fCurrentEventCounterIt
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
REGISTER_MODULE("GroundPropagatorAG", GroundPropagator)
fwk::VModule::ResultFlag Run(evt::Event &theEvent)
Run: invoked once per event.
static mevt::CounterSimData::GrdParticleIterator fCurrentParticleIt
static const mdet::Counter * fCurrentDetectorCounter
G4RunManager * fRunManager
Private G4 members.
Module interface.
Definition: VModule.h:53
Root detector of the muon detector hierarchy.
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
static mevt::CounterSimData::GrdParticleIterator GetCurrentParticleIt()
static const mdet::Counter * GetCurrentDetectorCounter()
InternalCounterCollection::ComponentIterator CounterIterator
Definition: MEvent.h:31
static mevt::MEvent::CounterIterator GetCurrentEventCounterIt()
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)

, generated on Tue Sep 26 2023.