56 : fRunAction(runaction), fVerboseLevel(0),
57 fPrintModulo(100), fDrawFlag(
"all")
63 fForceDrawPhotons =
false;
64 fForceNoPhotons =
false;
72 delete fEventMessenger;
80 if (evtNb%fPrintModulo == 0)
84 G4cout <<
"<<< Event " << evtNb <<
" started." <<
G4endl;
98 G4int n_trajectories = 0;
99 if (trajectoryContainer) n_trajectories = trajectoryContainer->
entries();
100 G4cout <<
"n_trajectories: " << n_trajectories <<
G4endl;
101 if (fDrawFlag ==
"all")
G4cout <<
"draw all trajectories" <<
G4endl;
102 if (fDrawFlag ==
"charged")
G4cout <<
"draw only charged" <<
G4endl;
104 for(
G4int i=0; i<n_trajectories; i++)
107 if (fDrawFlag ==
"all") {
112 else if ((fDrawFlag ==
"charged")&&(trj->
GetCharge() != 0.))
116 G4cout <<
"We should be drawing an opticalphoton" <<
G4endl;
130 G4Random::saveEngineStatus(
"endOfEvent.rndm");
132 if (evtNb%fPrintModulo == 0)
135 G4Random::showEngineStatus();
141 G4String colName =
"PhotonDetHitCollection";
150 if (fMPPCCollID>=0) mppcHC =
172 fVerboseLevel = level;
void SetEventVerbose(G4int)
virtual ~WLSEventAction()
G4VHitsCollection * GetHC(G4int i)
G4int GetCollectionID(G4String colName)
WLSEventAction(WLSRunAction *)
virtual void EndOfEventAction(const G4Event *)
static G4VVisManager * GetConcreteInstance()
virtual G4String GetParticleName() const
Definition of the WLSPhotonDetHit class.
G4EventManager * fpEventManager
G4TrajectoryContainer * GetTrajectoryContainer() const
Definition of the WLSEventActionMessenger class.
G4GLOB_DLL std::ostream G4cout
Definition of the WLSRunAction class.
virtual G4double GetCharge() const
virtual void BeginOfEventAction(const G4Event *)
void SetForceNoDrawTrajectory(G4bool b)
Definition of the WLSTrajectory class.
void SetForceDrawTrajectory(G4bool b)
static G4SDManager * GetSDMpointer()
Definition of the WLSEventAction class.
G4HCofThisEvent * GetHCofThisEvent() const
const G4Event * GetConstCurrentEvent()
virtual void DrawTrajectory() const