/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/core/include/RAT/EventInfo.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/core/include/RAT/EventInfo.hh Source File
Ratpac-two
EventInfo.hh
1 #ifndef __RAT_EventInfo__
2 #define __RAT_EventInfo__
3 
4 #include <G4VUserEventInformation.hh>
5 #include <RAT/CentroidCalculator.hh>
6 #include <RAT/DS/Calib.hh>
7 #include <map>
8 #include <string>
9 
10 namespace RAT {
11 
12 // Holds extra event information inside the G4Event
13 class EventInfo : public G4VUserEventInformation {
14  public:
15  EventInfo() {
16  fCalib = new DS::Calib(); // FIXME
17  numScintPhoton = 0;
18  numReemitPhoton = 0;
20  extTriggerType = 0;
21  extTriggerTime = 0.0;
22  };
23 
24  virtual ~EventInfo() { delete fCalib; }
25 
26  virtual void Print() const {}
27 
28  void SetCalib(DS::Calib *calib) {
29  delete fCalib;
30  fCalib = calib;
31  }
32  const DS::Calib *GetCalib() const { return fCalib; }
33 
34  // Ok, I'm tired of getter/setter C++ bondage crap. Just expose the
35  // interface already.
36 
39 
42 
44  std::map<std::string, double> energyLoss;
45 
47  TTimeStamp utc;
48 
51 
54 
59 
62 
63  bool StorePhotonIDs;
64 
65  bool StoreCapture158GdIDs;
66 
68  std::map<int, std::vector<int>> PhotonIDParentStep;
69 
72  std::map<int, std::vector<int>> Capture158GdIDParentStep;
73 
75  std::vector<G4double> timePhotonID; // mfb
76  std::vector<std::vector<G4double>> timePhotonMatrix; // mfb
77 
78  protected:
79  DS::Calib *fCalib;
80 };
81 
82 } // namespace RAT
83 
84 #endif
Definition: CentroidCalculator.hh:19
Definition: Calib.hh:30
Definition: EventInfo.hh:13
std::map< std::string, double > energyLoss
Definition: EventInfo.hh:44
int extTriggerType
Definition: EventInfo.hh:58
std::map< int, std::vector< int > > Capture158GdIDParentStep
Definition: EventInfo.hh:72
int numCerenkovPhoton
Definition: EventInfo.hh:56
int numReemitPhoton
Definition: EventInfo.hh:53
CentroidCalculator opticalCentroid
Definition: EventInfo.hh:41
int numScintPhoton
Definition: EventInfo.hh:50
std::map< int, std::vector< int > > PhotonIDParentStep
Definition: EventInfo.hh:68
std::vector< G4double > timePhotonID
Definition: EventInfo.hh:75
CentroidCalculator energyCentroid
Definition: EventInfo.hh:38
double extTriggerTime
Definition: EventInfo.hh:61
TTimeStamp utc
Definition: EventInfo.hh:47
Definition: CCCrossSecMessenger.hh:29