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

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/VertexFile_Gen.hh Source File
Ratpac-two
VertexFile_Gen.hh
1 
31 #ifndef __RAT_VertexFile_Gen_
32 #define __RAT_VertexFile_Gen_
33 
34 #include <TTimeStamp.h>
35 
36 #include <RAT/GLG4Gen.hh>
37 
38 class TTree;
39 
40 namespace RAT {
41 
42 namespace DS {
43 class Root;
44 }
45 
46 class VertexFile_Gen : public GLG4Gen {
47  public:
49  : fStateStr(""), fCurrentEvent(0), fNumEvents(0), fMaxEvent(0), fLastEventTime(0), fTimeGen(0), fPosGen(0){};
50  virtual ~VertexFile_Gen() = default;
51 
52  void GenerateEvent(G4Event *event);
53  bool IsRepeatable() const { return true; };
54 
56  void ResetTime(double offset = 0.0);
57 
59  void SetState(G4String state);
60  G4String GetState() const;
61 
65  void SetTimeState(G4String state);
66  G4String GetTimeState() const;
67 
71  void SetPosState(G4String state);
72  G4String GetPosState() const;
73 
74  protected:
75  G4String fStateStr;
77  int fNumEvents;
78  int fMaxEvent;
79 
80  TTimeStamp fLastEventTime;
81 
82  GLG4TimeGen *fTimeGen;
83  GLG4PosGen *fPosGen;
84 
85  TTree *fTTree;
86  DS::Root *fDS;
87 };
88 
89 } // namespace RAT
90 #endif
Definition: GLG4Gen.hh:14
Definition: GLG4PosGen.hh:18
Definition: GLG4TimeGen.hh:6
Definition: Root.hh:39
Reads in RAT root trees and simulates the MC event in geant.
Definition: VertexFile_Gen.hh:46
void SetPosState(G4String state)
Definition: VertexFile_Gen.cc:183
void SetState(G4String state)
Definition: VertexFile_Gen.cc:108
int fCurrentEvent
Index of current event from ROOT file.
Definition: VertexFile_Gen.hh:76
void SetTimeState(G4String state)
Definition: VertexFile_Gen.cc:168
int fMaxEvent
Number of events in ROOT file.
Definition: VertexFile_Gen.hh:78
int fNumEvents
Read up to this many events from file.
Definition: VertexFile_Gen.hh:77
void ResetTime(double offset=0.0)
Definition: VertexFile_Gen.cc:92
TTimeStamp fLastEventTime
Used to calculate time between events.
Definition: VertexFile_Gen.hh:80
Definition: CCCrossSecMessenger.hh:29