1 #ifndef WCSimRunAction_h
2 #define WCSimRunAction_h 1
4 #include "G4UserRunAction.hh"
10 #include "TStopwatch.h"
33 TBranch*
GetBranch(G4String detectorElement =
"tank"){
36 else G4cout <<
"Unkown detector element" << G4endl;
50 void SetBranch(TBranch* branchin, G4String detectorElement =
"tank"){
bool useTimer
Use the timer? Set by Messenger.
TBranch * wcsimrooteventbranch
WCSimRootOptions * wcsimrootoptions
TBranch * GetBranch(G4String detectorElement="tank")
void incrementFVWaterTubeHits()
void SetUseTimer(bool use)
int numberOfTimesFVWaterTubeHit
WCSimRootEvent * GetRootEvent(G4String detectorElement="tank")
WCSimRootEvent * wcsimrootsuperevent
WCSimRunAction(WCSimDetectorConstruction *, WCSimRandomParameters *)
WCSimDetectorConstruction * wcsimdetector
void SetBranch(TBranch *branchin, G4String detectorElement="tank")
WCSimRunActionMessenger * messenger
int numberOfEventsGenerated
TBranch * wcsimrooteventbranch_OD
void SetRootFileName(G4String fname)
void incrementWaterTubeHits()
WCSimRootGeom * wcsimrootgeom
void SetGeoTree(TTree *tree)
int numberOfTimesCatcherHit
int numberOfTimesWaterTubeHit
TStopwatch timer
A timer for runtime analysis.
void SetNtuples(int ntup)
WCSimRandomParameters * wcsimrandomparameters
WCSimRootEvent * wcsimrootsuperevent_OD
void SetTree(TTree *tree)
void SetRootEvent(WCSimRootEvent *revent, G4String detectorElement="tank")
G4String GetRootFileName()
void SetRootGeom(WCSimRootGeom *rgeom)
void incrementCatcherHits()
void EndOfRunAction(const G4Run *)
WCSimRootOptions * GetRootOptions()
WCSimRootGeom * GetRootGeom()
void BeginOfRunAction(const G4Run *)
void incrementEventsGenerated()
int GetNumberOfEventsGenerated()