List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends
G4TankSimulatorOG::G4TankSimulator Class Reference

class that handles Geant4 SD simulation More...

#include <G4TankSimulator.h>

Inheritance diagram for G4TankSimulatorOG::G4TankSimulator:
Inheritance graph
[legend]

Public Types

enum  ResultFlag { eSuccess, eFailure, eBreakLoop, eContinueLoop }
 Flag returned by module methods to the RunController. More...
 
enum  VersionInfoType {
  eFilename = 1, eRevisionNumber = 2, eDate = 3, eTime = 4,
  eLastEditor = 5
}
 Different types of version info that can be retrieved from GetVersionInfo. More...
 

Public Member Functions

fwk::VModule::ResultFlag Finish ()
 Finish: invoked at end of the run (NOT end of the event) More...
 
 G4TankSimulator ()
 
utl::StopwatchGetStopwatch ()
 
const utl::StopwatchGetStopwatch () const
 
std::string GetVersionInfo (const VersionInfoType v) const
 Retrieve different sorts of module version info. More...
 
fwk::VModule::ResultFlag Init ()
 Initialize: invoked at beginning of run (NOT beginning of event) More...
 
void InitTiming ()
 
fwk::VModule::ResultFlag Run (evt::Event &theEvent)
 Run: invoked once per event. More...
 
ResultFlag RunWithTiming (evt::Event &event)
 
virtual ~G4TankSimulator ()
 

Static Public Member Functions

static std::string GetResultFlagByName (const ResultFlag flag)
 
static bool MuCaptureOn ()
 

Protected Types

enum  InfoLevel { eInfoNone = 0, eInfoFinal = 1, eInfoIntermediate = 2, eInfoDebug = 3 }
 

Protected Attributes

int fInfoLevel = 0
 

Private Member Functions

void AddPhoton (const int nPMT, const double peTime) const
 
void ConstructTraces (sevt::Station &station) const
 
 REGISTER_MODULE ("G4TankSimulatorOG", G4TankSimulator)
 
fwk::VModule::ResultFlag RunFast (evt::Event &theEvent)
 
fwk::VModule::ResultFlag RunFull (evt::Event &theEvent)
 

Static Private Member Functions

static const sdet::StationGetCurrentDetectorStation ()
 
static
sevt::SEvent::StationIterator 
GetCurrentEventStationIt ()
 
static
sevt::StationSimData::ParticleIterator 
GetCurrentParticleIt ()
 

Private Attributes

bool fDetectorConstructed
 
std::string fEventId
 
bool fFastMode
 
bool fGeoVisOn
 
G4TankConstructionfgTankConstruction
 
G4RunManager * fRunManager
 
SignalSeparationMode fSignalSeparationMode
 
G4TankStackingActionfStackingAction
 
bool fTrajVisOn
 
G4UImanager * fUImanager
 
bool fUseGlobalPhysicsList
 
G4VisManager * fVisManager
 

Static Private Attributes

static const sdet::StationfCurrentDetectorStation = 0
 
static
sevt::SEvent::StationIterator 
fCurrentEventStationIt
 
static
sevt::StationSimData::ParticleIterator 
fCurrentParticleIt
 
static bool fgMuCapture
 

Friends

class G4TankConstruction
 
class G4TankFastCerenkov
 
class G4TankPhysicsList
 
class G4TankPMTAction
 
class G4TankPrimaryGenerator
 

Detailed Description

class that handles Geant4 SD simulation

Author
T. McCauley
Date
07 October 2003

Definition at line 45 of file G4TankSimulatorOG/G4TankSimulator.h.

Member Enumeration Documentation

enum fwk::VModule::InfoLevel
protectedinherited
Enumerator
eInfoNone 
eInfoFinal 
eInfoIntermediate 
eInfoDebug 

Definition at line 125 of file VModule.h.

enum fwk::VModule::ResultFlag
inherited

Flag returned by module methods to the RunController.

Enumerator
eSuccess 

Report success to RunController.

eFailure 

Report failure to RunController, causing RunController to terminate execution.

eBreakLoop 

Break current loop. It works for nested loops too!

eContinueLoop 

Skip remaining modules in the current loop and continue with next iteration of the loop.

Definition at line 60 of file VModule.h.

Different types of version info that can be retrieved from GetVersionInfo.

Enumerator
eFilename 
eRevisionNumber 
eDate 
eTime 
eLastEditor 

Definition at line 110 of file VModule.h.

Constructor & Destructor Documentation

G4TankSimulator::G4TankSimulator ( )

Definition at line 69 of file G4TankSimulatorOG/G4TankSimulator.cc.

G4TankSimulator::~G4TankSimulator ( )
virtual

Definition at line 83 of file G4TankSimulatorOG/G4TankSimulator.cc.

Member Function Documentation

void G4TankSimulator::AddPhoton ( const int  nPMT,
const double  peTime 
) const
private
void G4TankSimulator::ConstructTraces ( sevt::Station station) const
private
VModule::ResultFlag G4TankSimulator::Finish ( )
virtual

Finish: invoked at end of the run (NOT end of the event)

This method is for things that should be done at the end of the run (for example, closing files or writing out histograms) {You must override this method in your concrete module}

Implements fwk::VModule.

Definition at line 387 of file G4TankSimulatorOG/G4TankSimulator.cc.

References fwk::VModule::eSuccess, fRunManager, and fUseGlobalPhysicsList.

static const sdet::Station* G4TankSimulatorOG::G4TankSimulator::GetCurrentDetectorStation ( )
inlinestaticprivate
static sevt::SEvent::StationIterator G4TankSimulatorOG::G4TankSimulator::GetCurrentEventStationIt ( )
inlinestaticprivate

Definition at line 65 of file G4TankSimulatorOG/G4TankSimulator.h.

References fCurrentEventStationIt.

static sevt::StationSimData::ParticleIterator G4TankSimulatorOG::G4TankSimulator::GetCurrentParticleIt ( )
inlinestaticprivate
std::string fwk::VModule::GetResultFlagByName ( const ResultFlag  flag)
staticinherited
utl::Stopwatch& fwk::VModule::GetStopwatch ( )
inlineinherited

Definition at line 106 of file VModule.h.

References fwk::VModule::fStopwatch.

const utl::Stopwatch& fwk::VModule::GetStopwatch ( ) const
inlineinherited

Definition at line 107 of file VModule.h.

References fwk::VModule::fStopwatch.

std::string fwk::VModule::GetVersionInfo ( const VersionInfoType  v) const
inherited
VModule::ResultFlag G4TankSimulator::Init ( )
virtual
void fwk::VModule::InitTiming ( )
inlineinherited

Definition at line 95 of file VModule.h.

References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().

static bool G4TankSimulatorOG::G4TankSimulator::MuCaptureOn ( )
inlinestatic
G4TankSimulatorOG::G4TankSimulator::REGISTER_MODULE ( "G4TankSimulatorOG"  ,
G4TankSimulator   
)
private
VModule::ResultFlag G4TankSimulator::Run ( evt::Event event)
virtual
VModule::ResultFlag G4TankSimulator::RunFast ( evt::Event theEvent)
private
VModule::ResultFlag G4TankSimulator::RunFull ( evt::Event theEvent)
private
ResultFlag fwk::VModule::RunWithTiming ( evt::Event event)
inlineinherited

Friends And Related Function Documentation

friend class G4TankConstruction
friend

Definition at line 98 of file G4TankSimulatorOG/G4TankSimulator.h.

Referenced by Init(), and RunFast().

friend class G4TankFastCerenkov
friend

Definition at line 97 of file G4TankSimulatorOG/G4TankSimulator.h.

friend class G4TankPhysicsList
friend

Definition at line 100 of file G4TankSimulatorOG/G4TankSimulator.h.

Referenced by Init().

friend class G4TankPMTAction
friend

Definition at line 99 of file G4TankSimulatorOG/G4TankSimulator.h.

friend class G4TankPrimaryGenerator
friend

Definition at line 96 of file G4TankSimulatorOG/G4TankSimulator.h.

Member Data Documentation

const sdet::Station * G4TankSimulator::fCurrentDetectorStation = 0
staticprivate
SEvent::StationIterator G4TankSimulator::fCurrentEventStationIt
staticprivate
StationSimData::ParticleIterator G4TankSimulator::fCurrentParticleIt
staticprivate
bool G4TankSimulatorOG::G4TankSimulator::fDetectorConstructed
private

Definition at line 88 of file G4TankSimulatorOG/G4TankSimulator.h.

Referenced by Init(), Run(), RunFast(), and RunFull().

std::string G4TankSimulatorOG::G4TankSimulator::fEventId
private

Definition at line 94 of file G4TankSimulatorOG/G4TankSimulator.h.

bool G4TankSimulatorOG::G4TankSimulator::fFastMode
private

Definition at line 89 of file G4TankSimulatorOG/G4TankSimulator.h.

Referenced by Init(), and Run().

bool G4TankSimulatorOG::G4TankSimulator::fGeoVisOn
private

Definition at line 83 of file G4TankSimulatorOG/G4TankSimulator.h.

Referenced by Init(), and Run().

bool G4TankSimulator::fgMuCapture
staticprivate

Definition at line 90 of file G4TankSimulatorOG/G4TankSimulator.h.

Referenced by Init(), and MuCaptureOn().

G4TankConstruction* G4TankSimulatorOG::G4TankSimulator::fgTankConstruction
private

Definition at line 92 of file G4TankSimulatorOG/G4TankSimulator.h.

Referenced by Init(), and RunFast().

int fwk::VModule::fInfoLevel = 0
protectedinherited
G4RunManager* G4TankSimulatorOG::G4TankSimulator::fRunManager
private

Definition at line 78 of file G4TankSimulatorOG/G4TankSimulator.h.

Referenced by Finish(), Init(), Run(), RunFast(), and RunFull().

SignalSeparationMode G4TankSimulatorOG::G4TankSimulator::fSignalSeparationMode
private

Definition at line 86 of file G4TankSimulatorOG/G4TankSimulator.h.

Referenced by AddPhoton(), and Init().

G4TankStackingAction* G4TankSimulatorOG::G4TankSimulator::fStackingAction
private

Definition at line 81 of file G4TankSimulatorOG/G4TankSimulator.h.

Referenced by Init(), and RunFull().

bool G4TankSimulatorOG::G4TankSimulator::fTrajVisOn
private

Definition at line 84 of file G4TankSimulatorOG/G4TankSimulator.h.

Referenced by Init(), and Run().

G4UImanager* G4TankSimulatorOG::G4TankSimulator::fUImanager
private

Definition at line 79 of file G4TankSimulatorOG/G4TankSimulator.h.

Referenced by Init(), and Run().

bool G4TankSimulatorOG::G4TankSimulator::fUseGlobalPhysicsList
private

Definition at line 85 of file G4TankSimulatorOG/G4TankSimulator.h.

Referenced by Finish(), Init(), and Run().

G4VisManager* G4TankSimulatorOG::G4TankSimulator::fVisManager
private

Definition at line 80 of file G4TankSimulatorOG/G4TankSimulator.h.

Referenced by Init(), and Run().


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

, generated on Tue Sep 26 2023.