WCSim
Public Member Functions | Private Member Functions | Private Attributes | List of all members
WCSimEventAction Class Reference

#include <WCSimEventAction.hh>

Inheritance diagram for WCSimEventAction:
Inheritance graph
Collaboration diagram for WCSimEventAction:
Collaboration graph

Public Member Functions

 WCSimEventAction (WCSimRunAction *, WCSimDetectorConstruction *, WCSimPrimaryGeneratorAction *)
 
 ~WCSimEventAction ()
 
void BeginOfEventAction (const G4Event *)
 
void EndOfEventAction (const G4Event *)
 
void FillRootEvent (G4int, const struct ntupleStruct &, G4TrajectoryContainer *, WCSimWCDigitsCollection *, WCSimWCTriggeredDigitsCollection *, G4String detectorElement="tank", bool skipFillingTracks=false)
 
void FillRootEventHybrid (G4int, const struct ntupleStruct &, G4TrajectoryContainer *, WCSimWCDigitsCollection *, WCSimWCTriggeredDigitsCollection *, G4String, WCSimRootEvent *, WCSimRootTrigger *, bool skipFillingTracks)
 
WCSimRunActionGetRunAction ()
 
void SetDigitizerChoice (G4String digitizer)
 
void SetTriggerChoice (G4String trigger)
 
void SetRelativeDigitizedHitTime (bool val)
 
void FillFlatTree (G4int, const struct ntupleStruct &, G4TrajectoryContainer *, WCSimWCDigitsCollection *, WCSimWCTriggeredDigitsCollection *, G4String detectorElement)
 

Private Member Functions

G4int WCSimEventFindStartingVolume (G4ThreeVector vtx)
 
G4int WCSimEventFindStoppingVolume (G4String stopVolumeName)
 
void CreateDAQInstances ()
 Create instances of the user-chosen digitizer and trigger classes. More...
 

Private Attributes

WCSimRunActionrunAction
 
WCSimPrimaryGeneratorActiongeneratorAction
 
WCSimDetectorConstructiondetectorConstructor
 
TRandom3 * randGen
 
WCSimWCDAQMessengerDAQMessenger
 
G4String vtxVolumeName
 
G4String DigitizerChoice
 
G4String TriggerChoice
 
bool RelativeHitTime
 
bool ConstructedDAQClasses
 
bool SavedOptions
 
G4int fEvNum
 

Detailed Description

Definition at line 25 of file WCSimEventAction.hh.

Constructor & Destructor Documentation

◆ WCSimEventAction()

WCSimEventAction::WCSimEventAction ( WCSimRunAction myRun,
WCSimDetectorConstruction myDetector,
WCSimPrimaryGeneratorAction myGenerator 
)

Definition at line 63 of file WCSimEventAction.cc.

◆ ~WCSimEventAction()

WCSimEventAction::~WCSimEventAction ( )

Definition at line 111 of file WCSimEventAction.cc.

Member Function Documentation

◆ BeginOfEventAction()

void WCSimEventAction::BeginOfEventAction ( const G4Event *  )

Definition at line 229 of file WCSimEventAction.cc.

◆ CreateDAQInstances()

void WCSimEventAction::CreateDAQInstances ( )
private

Create instances of the user-chosen digitizer and trigger classes.

Definition at line 116 of file WCSimEventAction.cc.

◆ EndOfEventAction()

void WCSimEventAction::EndOfEventAction ( const G4Event *  evt)

Definition at line 242 of file WCSimEventAction.cc.

◆ FillFlatTree()

void WCSimEventAction::FillFlatTree ( G4int  event_id,
const struct ntupleStruct injhfNtuple,
G4TrajectoryContainer *  TC,
WCSimWCDigitsCollection WCDC_hits,
WCSimWCTriggeredDigitsCollection WCDC,
G4String  detectorElement 
)

vec_digicomp[iv]); ToDo if interesting at some point

Definition at line 2247 of file WCSimEventAction.cc.

◆ FillRootEvent()

void WCSimEventAction::FillRootEvent ( G4int  event_id,
const struct ntupleStruct injhfNtuple,
G4TrajectoryContainer *  TC,
WCSimWCDigitsCollection WCDC_hits,
WCSimWCTriggeredDigitsCollection WCDC,
G4String  detectorElement = "tank",
bool  skipFillingTracks = false 
)

skipFillingTracks

Definition at line 1117 of file WCSimEventAction.cc.

◆ FillRootEventHybrid()

void WCSimEventAction::FillRootEventHybrid ( G4int  event_id,
const struct ntupleStruct injhfNtuple,
G4TrajectoryContainer *  TC,
WCSimWCDigitsCollection WCDC_hits,
WCSimWCTriggeredDigitsCollection WCDC,
G4String  detectorElement,
WCSimRootEvent wcsimrootsuperevent,
WCSimRootTrigger wcsimrootevent,
bool  skipFillingTracks 
)

skipFillingTracks

Definition at line 1687 of file WCSimEventAction.cc.

◆ GetRunAction()

WCSimRunAction* WCSimEventAction::GetRunAction ( )
inline

Definition at line 59 of file WCSimEventAction.hh.

◆ SetDigitizerChoice()

void WCSimEventAction::SetDigitizerChoice ( G4String  digitizer)
inline

Definition at line 60 of file WCSimEventAction.hh.

◆ SetRelativeDigitizedHitTime()

void WCSimEventAction::SetRelativeDigitizedHitTime ( bool  val)
inline

Definition at line 62 of file WCSimEventAction.hh.

◆ SetTriggerChoice()

void WCSimEventAction::SetTriggerChoice ( G4String  trigger)
inline

Definition at line 61 of file WCSimEventAction.hh.

◆ WCSimEventFindStartingVolume()

G4int WCSimEventAction::WCSimEventFindStartingVolume ( G4ThreeVector  vtx)
private

Definition at line 1021 of file WCSimEventAction.cc.

◆ WCSimEventFindStoppingVolume()

G4int WCSimEventAction::WCSimEventFindStoppingVolume ( G4String  stopVolumeName)
private

Definition at line 1070 of file WCSimEventAction.cc.

Member Data Documentation

◆ ConstructedDAQClasses

bool WCSimEventAction::ConstructedDAQClasses
private

Definition at line 83 of file WCSimEventAction.hh.

◆ DAQMessenger

WCSimWCDAQMessenger* WCSimEventAction::DAQMessenger
private

Definition at line 33 of file WCSimEventAction.hh.

◆ detectorConstructor

WCSimDetectorConstruction* WCSimEventAction::detectorConstructor
private

Definition at line 30 of file WCSimEventAction.hh.

◆ DigitizerChoice

G4String WCSimEventAction::DigitizerChoice
private

Definition at line 80 of file WCSimEventAction.hh.

◆ fEvNum

G4int WCSimEventAction::fEvNum
private

Definition at line 86 of file WCSimEventAction.hh.

◆ generatorAction

WCSimPrimaryGeneratorAction* WCSimEventAction::generatorAction
private

Definition at line 29 of file WCSimEventAction.hh.

◆ randGen

TRandom3* WCSimEventAction::randGen
private

Definition at line 32 of file WCSimEventAction.hh.

◆ RelativeHitTime

bool WCSimEventAction::RelativeHitTime
private

Definition at line 82 of file WCSimEventAction.hh.

◆ runAction

WCSimRunAction* WCSimEventAction::runAction
private

Definition at line 28 of file WCSimEventAction.hh.

◆ SavedOptions

bool WCSimEventAction::SavedOptions
private

Definition at line 84 of file WCSimEventAction.hh.

◆ TriggerChoice

G4String WCSimEventAction::TriggerChoice
private

Definition at line 81 of file WCSimEventAction.hh.

◆ vtxVolumeName

G4String WCSimEventAction::vtxVolumeName
private

Definition at line 75 of file WCSimEventAction.hh.


The documentation for this class was generated from the following files: