Geant4  10.02.p02
DMXEventAction Class Reference

#include <DMXEventAction.hh>

+ Inheritance diagram for DMXEventAction:
+ Collaboration diagram for DMXEventAction:

Public Member Functions

 DMXEventAction ()
 
virtual ~DMXEventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void SetDrawTrksFlag (G4String val)
 
G4String GetDrawTrksFlag () const
 
void SetDrawColsFlag (G4String val)
 
G4String GetDrawColsFlag () const
 
void SetDrawHitsFlag (G4int val)
 
void SetSavePmtFlag (G4int val)
 
void SetSaveHitsFlag (G4int val)
 
void SetPrintModulo (G4int val)
 
- Public Member Functions inherited from G4UserEventAction
 G4UserEventAction ()
 
virtual ~G4UserEventAction ()
 
virtual void SetEventManager (G4EventManager *value)
 

Private Member Functions

void writeScintHitsToFile ()
 
void writePmtHitsToFile (const DMXPmtHitsCollection *)
 
void drawTracks (const G4Event *)
 

Private Attributes

G4int event_id
 
const long * seeds
 
G4double energy_pri
 
G4int scintillatorCollID
 
G4int pmtCollID
 
G4int S_hits
 
G4int P_hits
 
G4double aveTimePmtHits
 
G4double totEnergy
 
G4double totEnergyGammas
 
G4double totEnergyNeutrons
 
G4double hitEnergy
 
G4double firstLXeHitTime
 
G4double firstParticleE
 
G4double particleEnergy
 
G4String particleName
 
G4String firstParticleName
 
G4bool gamma_ev
 
G4bool neutron_ev
 
G4bool positron_ev
 
G4bool electron_ev
 
G4bool proton_ev
 
G4bool other_ev
 
G4bool start_gamma
 
G4bool start_neutron
 
G4String drawTrksFlag
 
G4String drawColsFlag
 
G4int drawHitsFlag
 
G4int savePmtFlag
 
G4int saveHitsFlag
 
G4int printModulo
 
DMXEventActionMessengereventMessenger
 
const DMXRunActionrunAct
 
const DMXPrimaryGeneratorActiongenAction
 
std::ofstream * hitsfile
 
std::ofstream * pmtfile
 

Additional Inherited Members

- Protected Attributes inherited from G4UserEventAction
G4EventManagerfpEventManager
 

Detailed Description

Definition at line 58 of file DMXEventAction.hh.

Constructor & Destructor Documentation

DMXEventAction::DMXEventAction ( )
DMXEventAction::~DMXEventAction ( )
virtual

Definition at line 103 of file DMXEventAction.cc.

References eventMessenger, hitsfile, and pmtfile.

Member Function Documentation

void DMXEventAction::BeginOfEventAction ( const G4Event evt)
virtual
void DMXEventAction::drawTracks ( const G4Event evt)
private

Definition at line 484 of file DMXEventAction.cc.

References G4UImanager::ApplyCommand(), G4Trajectory::DrawTrajectory(), drawTrksFlag, G4TrajectoryContainer::entries(), G4Trajectory::GetCharge(), G4VVisManager::GetConcreteInstance(), G4Trajectory::GetParticleName(), G4Event::GetTrajectoryContainer(), and G4UImanager::GetUIpointer().

Referenced by EndOfEventAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String DMXEventAction::GetDrawColsFlag ( ) const
inline

Definition at line 76 of file DMXEventAction.hh.

References drawColsFlag.

Referenced by DMXSteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

G4String DMXEventAction::GetDrawTrksFlag ( ) const
inline

Definition at line 73 of file DMXEventAction.hh.

References drawTrksFlag.

Referenced by DMXSteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

void DMXEventAction::SetDrawColsFlag ( G4String  val)
inline

Definition at line 75 of file DMXEventAction.hh.

References drawColsFlag.

void DMXEventAction::SetDrawHitsFlag ( G4int  val)
inline

Definition at line 78 of file DMXEventAction.hh.

References drawHitsFlag.

void DMXEventAction::SetDrawTrksFlag ( G4String  val)
inline

Definition at line 72 of file DMXEventAction.hh.

References drawTrksFlag.

void DMXEventAction::SetPrintModulo ( G4int  val)
inline

Definition at line 81 of file DMXEventAction.hh.

References printModulo.

void DMXEventAction::SetSaveHitsFlag ( G4int  val)
inline

Definition at line 80 of file DMXEventAction.hh.

References saveHitsFlag.

void DMXEventAction::SetSavePmtFlag ( G4int  val)
inline

Definition at line 79 of file DMXEventAction.hh.

References savePmtFlag.

void DMXEventAction::writePmtHitsToFile ( const DMXPmtHitsCollection hits)
private

Definition at line 418 of file DMXEventAction.cc.

References G4VAnalysisManager::AddNtupleRow(), event_id, G4VAnalysisManager::FillH2(), G4VAnalysisManager::FillNtupleDColumn(), G4cout, G4endl, G4Threading::G4GetThreadId(), DMXRunAction::GetsavepmtFile(), left, mm, P_hits, pmtfile, printModulo, runAct, sss, x, and z.

Referenced by EndOfEventAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DMXEventAction::writeScintHitsToFile ( )
private

Definition at line 307 of file DMXEventAction.cc.

References G4VAnalysisManager::AddNtupleRow(), aveTimePmtHits, electron_ev, energy_pri, event_id, G4VAnalysisManager::FillH1(), G4VAnalysisManager::FillNtupleDColumn(), firstLXeHitTime, firstParticleE, firstParticleName, G4cout, G4endl, G4Threading::G4GetThreadId(), gamma_ev, DMXRunAction::GetsavehitsFile(), hitsfile, keV, left, MeV, nanosecond, neutron_ev, ns, other_ev, P_hits, positron_ev, printModulo, runAct, S_hits, seeds, sss, and totEnergy.

Referenced by EndOfEventAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4double DMXEventAction::aveTimePmtHits
private

Definition at line 96 of file DMXEventAction.hh.

Referenced by EndOfEventAction(), and writeScintHitsToFile().

G4String DMXEventAction::drawColsFlag
private
G4int DMXEventAction::drawHitsFlag
private

Definition at line 119 of file DMXEventAction.hh.

Referenced by DMXEventAction(), EndOfEventAction(), and SetDrawHitsFlag().

G4String DMXEventAction::drawTrksFlag
private
G4bool DMXEventAction::electron_ev
private

Definition at line 110 of file DMXEventAction.hh.

Referenced by EndOfEventAction(), and writeScintHitsToFile().

G4double DMXEventAction::energy_pri
private

Definition at line 87 of file DMXEventAction.hh.

Referenced by BeginOfEventAction(), DMXEventAction(), and writeScintHitsToFile().

G4int DMXEventAction::event_id
private
DMXEventActionMessenger* DMXEventAction::eventMessenger
private

Definition at line 123 of file DMXEventAction.hh.

Referenced by DMXEventAction(), and ~DMXEventAction().

G4double DMXEventAction::firstLXeHitTime
private

Definition at line 101 of file DMXEventAction.hh.

Referenced by EndOfEventAction(), and writeScintHitsToFile().

G4double DMXEventAction::firstParticleE
private

Definition at line 102 of file DMXEventAction.hh.

Referenced by EndOfEventAction(), and writeScintHitsToFile().

G4String DMXEventAction::firstParticleName
private

Definition at line 105 of file DMXEventAction.hh.

Referenced by EndOfEventAction(), and writeScintHitsToFile().

G4bool DMXEventAction::gamma_ev
private

Definition at line 107 of file DMXEventAction.hh.

Referenced by EndOfEventAction(), and writeScintHitsToFile().

const DMXPrimaryGeneratorAction* DMXEventAction::genAction
private

Definition at line 126 of file DMXEventAction.hh.

Referenced by BeginOfEventAction().

G4double DMXEventAction::hitEnergy
private

Definition at line 100 of file DMXEventAction.hh.

Referenced by EndOfEventAction().

std::ofstream* DMXEventAction::hitsfile
private

Definition at line 127 of file DMXEventAction.hh.

Referenced by writeScintHitsToFile(), and ~DMXEventAction().

G4bool DMXEventAction::neutron_ev
private

Definition at line 108 of file DMXEventAction.hh.

Referenced by EndOfEventAction(), and writeScintHitsToFile().

G4bool DMXEventAction::other_ev
private

Definition at line 112 of file DMXEventAction.hh.

Referenced by EndOfEventAction(), and writeScintHitsToFile().

G4int DMXEventAction::P_hits
private

Definition at line 93 of file DMXEventAction.hh.

Referenced by EndOfEventAction(), writePmtHitsToFile(), and writeScintHitsToFile().

G4double DMXEventAction::particleEnergy
private

Definition at line 103 of file DMXEventAction.hh.

Referenced by EndOfEventAction().

G4String DMXEventAction::particleName
private

Definition at line 104 of file DMXEventAction.hh.

Referenced by EndOfEventAction().

G4int DMXEventAction::pmtCollID
private

Definition at line 91 of file DMXEventAction.hh.

Referenced by BeginOfEventAction(), DMXEventAction(), and EndOfEventAction().

std::ofstream* DMXEventAction::pmtfile
private

Definition at line 128 of file DMXEventAction.hh.

Referenced by writePmtHitsToFile(), and ~DMXEventAction().

G4bool DMXEventAction::positron_ev
private

Definition at line 109 of file DMXEventAction.hh.

Referenced by EndOfEventAction(), and writeScintHitsToFile().

G4int DMXEventAction::printModulo
private
G4bool DMXEventAction::proton_ev
private

Definition at line 111 of file DMXEventAction.hh.

Referenced by EndOfEventAction().

const DMXRunAction* DMXEventAction::runAct
private

Definition at line 125 of file DMXEventAction.hh.

Referenced by BeginOfEventAction(), writePmtHitsToFile(), and writeScintHitsToFile().

G4int DMXEventAction::S_hits
private

Definition at line 92 of file DMXEventAction.hh.

Referenced by EndOfEventAction(), and writeScintHitsToFile().

G4int DMXEventAction::saveHitsFlag
private

Definition at line 121 of file DMXEventAction.hh.

Referenced by DMXEventAction(), EndOfEventAction(), and SetSaveHitsFlag().

G4int DMXEventAction::savePmtFlag
private

Definition at line 120 of file DMXEventAction.hh.

Referenced by DMXEventAction(), EndOfEventAction(), and SetSavePmtFlag().

G4int DMXEventAction::scintillatorCollID
private

Definition at line 90 of file DMXEventAction.hh.

Referenced by BeginOfEventAction(), DMXEventAction(), and EndOfEventAction().

const long* DMXEventAction::seeds
private

Definition at line 86 of file DMXEventAction.hh.

Referenced by BeginOfEventAction(), DMXEventAction(), and writeScintHitsToFile().

G4bool DMXEventAction::start_gamma
private

Definition at line 113 of file DMXEventAction.hh.

Referenced by EndOfEventAction().

G4bool DMXEventAction::start_neutron
private

Definition at line 114 of file DMXEventAction.hh.

Referenced by EndOfEventAction().

G4double DMXEventAction::totEnergy
private

Definition at line 97 of file DMXEventAction.hh.

Referenced by EndOfEventAction(), and writeScintHitsToFile().

G4double DMXEventAction::totEnergyGammas
private

Definition at line 98 of file DMXEventAction.hh.

Referenced by EndOfEventAction().

G4double DMXEventAction::totEnergyNeutrons
private

Definition at line 99 of file DMXEventAction.hh.

Referenced by EndOfEventAction().


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