WCSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WCSimEventAction.hh
Go to the documentation of this file.
1 #ifndef WCSimEventAction_h
2 #define WCSimEventAction_h 1
3 
4 
5 #include "G4UserEventAction.hh"
6 #include "G4ThreeVector.hh"
7 #include "G4Types.hh"
8 #include "G4ios.hh"
9 
11 #include "G4TrajectoryContainer.hh"
12 #include "WCSimWCHit.hh"
13 #include "WCSimWCDigi.hh"
14 #include "WCSimWCTrigger.hh"
15 #include "WCSimWCDAQMessenger.hh"
16 
17 class WCSimRunAction;
19 class G4Event;
20 
21 class WCSimEventAction : public G4UserEventAction
22 {
23 private:
28 
29 public:
33 
34 public:
35  void BeginOfEventAction(const G4Event*);
36  void EndOfEventAction(const G4Event*);
37  void FillRootEvent(G4int,
38  const struct ntupleStruct&,
39  G4TrajectoryContainer*,
42  G4String detectorElement="tank");
44  void SetDigitizerChoice(G4String digitizer) { DigitizerChoice = digitizer; }
45  void SetTriggerChoice (G4String trigger) { TriggerChoice = trigger; }
46  void SetRelativeDigitizedHitTime (bool val) { RelativeHitTime = val; }
47 
48 private:
49  G4int WCSimEventFindStartingVolume( G4ThreeVector vtx);
50  G4int WCSimEventFindStoppingVolume( G4String stopVolumeName);
51 
53  void CreateDAQInstances();
54 
55  G4String DigitizerChoice;
56  G4String TriggerChoice;
60 };
61 
62 
63 #endif
64 
65 
void SetTriggerChoice(G4String trigger)
WCSimPrimaryGeneratorAction * generatorAction
void EndOfEventAction(const G4Event *)
WCSimWCDAQMessenger * DAQMessenger
G4int WCSimEventFindStartingVolume(G4ThreeVector vtx)
WCSimRunAction * GetRunAction()
G4TDigiCollection< WCSimWCDigi > WCSimWCDigitsCollection
Definition: WCSimWCDigi.hh:214
G4TDigiCollection< WCSimWCDigiTrigger > WCSimWCTriggeredDigitsCollection
void CreateDAQInstances()
Create instances of the user-chosen digitizer and trigger classes.
void SetRelativeDigitizedHitTime(bool val)
void SetDigitizerChoice(G4String digitizer)
G4int WCSimEventFindStoppingVolume(G4String stopVolumeName)
WCSimRunAction * runAction
WCSimDetectorConstruction * detectorConstructor
void FillRootEvent(G4int, const struct ntupleStruct &, G4TrajectoryContainer *, WCSimWCDigitsCollection *, WCSimWCTriggeredDigitsCollection *, G4String detectorElement="tank")
WCSimEventAction(WCSimRunAction *, WCSimDetectorConstruction *, WCSimPrimaryGeneratorAction *)
void BeginOfEventAction(const G4Event *)