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
G4TankSimulatorASCII::G4TankSimulator Class Reference

class that handles Geant4 SD simulation More...

#include <G4TankSimulator.h>

Inheritance diagram for G4TankSimulatorASCII::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
sevt::SEvent::StationIterator 
GetCurrentEventStationIt ()
 
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 ConstructTraces (sevt::Station &station) const
 
 REGISTER_MODULE ("G4TankSimulatorASCII", G4TankSimulator)
 
fwk::VModule::ResultFlag RunFast (evt::Event &theEvent)
 
fwk::VModule::ResultFlag RunFull (evt::Event &theEvent)
 

Static Private Member Functions

static
sevt::StationConstants::SignalComponent 
GetComponentId (const sevt::StationSimData::ConstParticleIterator currentParticle)
 retrieve the station signal component from particle type More...
 
static
sevt::StationConstants::SignalComponent 
GetCurrentComponent ()
 
static const sdet::StationGetCurrentDetectorStation ()
 
static
sevt::StationSimData::ParticleIterator 
GetCurrentParticleIt ()
 

Private Attributes

bool fDetectorConstructed
 
std::string fEventId
 
int fFastMode
 
bool fGeoVisOn
 
G4TankConstructionfgTankConstruction
 
G4RunManager * fRunManager
 
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
 
static G4TankPMTfgPMTAction = 0
 

Friends

class G4TankConstruction
 
class G4TankFastCerenkov
 
class G4TankPhysicsList
 
class G4TankPMT
 
class G4TankPMTAction
 
class G4TankPrimaryGenerator
 

Detailed Description

class that handles Geant4 SD simulation

Author
T. McCauley
Date
07 October 2003

Definition at line 42 of file Deprecated/UpgradeASCIITests/G4TankSimulatorASCII/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 ( )
G4TankSimulator::~G4TankSimulator ( )
virtual

Member Function Documentation

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 368 of file Deprecated/UpgradeASCIITests/G4TankSimulatorASCII/G4TankSimulator.cc.

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

static sevt::StationConstants::SignalComponent G4TankSimulatorASCII::G4TankSimulator::GetComponentId ( const sevt::StationSimData::ConstParticleIterator  currentParticle)
staticprivate

retrieve the station signal component from particle type

Referenced by GetCurrentComponent().

static sevt::StationConstants::SignalComponent G4TankSimulatorASCII::G4TankSimulator::GetCurrentComponent ( )
inlinestaticprivate
static const sdet::Station* G4TankSimulatorASCII::G4TankSimulator::GetCurrentDetectorStation ( )
inlinestaticprivate
static sevt::SEvent::StationIterator G4TankSimulatorASCII::G4TankSimulator::GetCurrentEventStationIt ( )
inlinestatic
static sevt::StationSimData::ParticleIterator G4TankSimulatorASCII::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 G4TankSimulatorASCII::G4TankSimulator::MuCaptureOn ( )
inlinestatic
G4TankSimulatorASCII::G4TankSimulator::REGISTER_MODULE ( "G4TankSimulatorASCII"  ,
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
friend class G4TankFastCerenkov
friend
friend class G4TankPhysicsList
friend
friend class G4TankPMT
friend
friend class G4TankPMTAction
friend
friend class G4TankPrimaryGenerator
friend

Member Data Documentation

const sdet::Station * G4TankSimulator::fCurrentDetectorStation = 0
staticprivate
SEvent::StationIterator G4TankSimulator::fCurrentEventStationIt
staticprivate
StationSimData::ParticleIterator G4TankSimulator::fCurrentParticleIt
staticprivate
bool G4TankSimulatorASCII::G4TankSimulator::fDetectorConstructed
private
std::string G4TankSimulatorASCII::G4TankSimulator::fEventId
private
int G4TankSimulatorASCII::G4TankSimulator::fFastMode
private
bool G4TankSimulatorASCII::G4TankSimulator::fGeoVisOn
private
bool G4TankSimulator::fgMuCapture
staticprivate
G4TankPMT * G4TankSimulator::fgPMTAction = 0
staticprivate
G4TankConstruction* G4TankSimulatorASCII::G4TankSimulator::fgTankConstruction
private
int fwk::VModule::fInfoLevel = 0
protectedinherited
G4RunManager* G4TankSimulatorASCII::G4TankSimulator::fRunManager
private
G4TankStackingAction* G4TankSimulatorASCII::G4TankSimulator::fStackingAction
private
bool G4TankSimulatorASCII::G4TankSimulator::fTrajVisOn
private
G4UImanager* G4TankSimulatorASCII::G4TankSimulator::fUImanager
private
bool G4TankSimulatorASCII::G4TankSimulator::fUseGlobalPhysicsList
private
G4VisManager* G4TankSimulatorASCII::G4TankSimulator::fVisManager
private

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

, generated on Tue Sep 26 2023.