MdUnderGrdInjector.h
Go to the documentation of this file.
1 #ifndef _UnderGrdInjectorAG_UnderGrdInjector_h_
2 #define _UnderGrdInjectorAG_UnderGrdInjector_h_
3 
4 #include <fwk/VModule.h>
5 #include <utl/TimeDistribution.h>
6 
7 #include <mdet/MDetector.h>
8 #include <mdet/Counter.h>
9 #include <mevt/MEvent.h>
10 
11 #include <evt/Event.h>
12 
13 #include "globals.hh"
14 
15 #include <fstream>
16 
17 
18 namespace UnderGrdInjectorAG {
19 
27  class ScintiBox {
28  public:
29  void Box(const mdet::Scintillator&, double w, double l, double h)
30  { fW = w; fL = l; fH = h; }
31  double GetLength() { return fL; }
32  double GetWidth() { return fW; }
33  double GetHeight() { return fH; }
34  void GetDimensions(double& l, double& w, double& h)
35  { l = fL; w = fW; h = fH; }
36  private:
37  double fL;
38  double fW;
39  double fH;
40  };
41 
42 
43  class UnderGrdInjector : public fwk::VModule {
44 
45  private:
46  bool fOnlyMuons;
48 
49  public:
51  virtual ~UnderGrdInjector() { }
52 
56 
59 
60  private:
61  static const double kTriggerDelay;
62  //std::map<int, utl::TimeInterval> fTrgTimes;
63 
64  int GetTriggerTimeFromSD(evt::Event& event, const mdet::Counter& cmDet, double& T1);
65 
66  REGISTER_MODULE("UnderGrdInjectorAG", UnderGrdInjector);
67 
68  };
69 
70 }
71 
72 
73 #endif
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
bool IsChargedParticle(mevt::ScintillatorSimData::ParticleIterator pIt)
Actual muon-sensitive objects.
boost::indirect_iterator< InternalParticleIterator, utl::Particle & > ParticleIterator
int GetTriggerTimeFromSD(evt::Event &event, const mdet::Counter &cmDet, double &T1)
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
Module interface.
Definition: VModule.h:53
REGISTER_MODULE("UnderGrdInjectorAG", UnderGrdInjector)
Root detector of the muon detector hierarchy.
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
void GetDimensions(double &l, double &w, double &h)
void Box(const mdet::Scintillator &, double w, double l, double h)
bool IsNeutrino(mevt::ScintillatorSimData::ParticleIterator pIt)
class that handles Geant4 underground propagation for AMIGA muon Counters

, generated on Tue Sep 26 2023.