forked from WCSim/WCSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWCSimEventAction.hh
62 lines (48 loc) · 1.59 KB
/
WCSimEventAction.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef WCSimEventAction_h
#define WCSimEventAction_h 1
#include "G4UserEventAction.hh"
#include "G4ThreeVector.hh"
#include "G4Types.hh"
#include "G4ios.hh"
#include "WCSimDetectorConstruction.hh"
#include "G4TrajectoryContainer.hh"
#include "WCSimWCHit.hh"
#include "WCSimWCDigi.hh"
#include "WCSimWCTrigger.hh"
#include "WCSimWCDAQMessenger.hh"
class WCSimRunAction;
class WCSimPrimaryGeneratorAction;
class G4Event;
class WCSimEventAction : public G4UserEventAction
{
private:
WCSimRunAction* runAction;
WCSimPrimaryGeneratorAction* generatorAction;
WCSimDetectorConstruction* detectorConstructor;
WCSimWCDAQMessenger* DAQMessenger;
public:
WCSimEventAction(WCSimRunAction*, WCSimDetectorConstruction*,
WCSimPrimaryGeneratorAction*);
~WCSimEventAction();
public:
void BeginOfEventAction(const G4Event*);
void EndOfEventAction(const G4Event*);
void FillRootEvent(G4int,
const struct ntupleStruct&,
G4TrajectoryContainer*,
WCSimWCDigitsCollection*,
WCSimWCTriggeredDigitsCollection*);
WCSimRunAction* GetRunAction(){return runAction;}
void SetDigitizerChoice(G4String digitizer) { DigitizerChoice = digitizer; }
void SetTriggerChoice (G4String trigger) { TriggerChoice = trigger; }
private:
G4int WCSimEventFindStartingVolume( G4ThreeVector vtx);
G4int WCSimEventFindStoppingVolume( G4String stopVolumeName);
///Create instances of the user-chosen digitizer and trigger classes
void CreateDAQInstances();
G4String DigitizerChoice;
G4String TriggerChoice;
bool ConstructedDAQClasses;
bool SavedOptions;
};
#endif