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
G4XTankSimulatorAG::G4XTankSimulator Class Reference

class that handles Geant4 SD simulation More...

#include <G4XTankSimulator.h>

Inheritance diagram for G4XTankSimulatorAG::G4XTankSimulator:
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...
 
 G4XTankSimulator ()
 
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 ~G4XTankSimulator ()
 

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 ConstructTraces (sevt::Station &station) const
 
 REGISTER_MODULE ("G4XTankSimulatorAG", G4XTankSimulator)
 
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::SEvent::StationIterator 
GetCurrentEventStationIt ()
 
static
sevt::StationSimData::ParticleIterator 
GetCurrentParticleIt ()
 

Private Attributes

float fDepth = 0
 
bool fDetectorConstructed = false
 
std::string fEventId
 
bool fFastMode = false
 
bool fGeoVisOn = false
 
G4XTankConstructionfgTankConstruction = nullptr
 
G4RunManager * fRunManager = nullptr
 
G4XTankStackingActionfStackingAction = nullptr
 
G4XTankSteppingActionfSteppingAction = nullptr
 
bool fStoreOnGrdPart = false
 
bool fTrajVisOn = false
 
G4UImanager * fUImanager = nullptr
 
bool fUseGlobalPhysicsList = false
 
G4VisManager * fVisManager = nullptr
 

Static Private Attributes

static const sdet::StationfCurrentDetectorStation = nullptr
 
static
sevt::SEvent::StationIterator 
fCurrentEventStationIt
 
static
sevt::StationSimData::ParticleIterator 
fCurrentParticleIt
 
static bool fgMuCapture = false
 
static G4XTankPMTfgPMTAction = nullptr
 

Friends

class G4XTankConstruction
 
class G4XTankFastCerenkov
 
class G4XTankPhysicsList
 
class G4XTankPMT
 
class G4XTankPMTAction
 
class G4XTankPrimaryGenerator
 

Detailed Description

class that handles Geant4 SD simulation

Author
T. McCauley
Date
07 October 2003

Definition at line 45 of file G4XTankSimulator.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

G4XTankSimulatorAG::G4XTankSimulator::G4XTankSimulator ( )
inline

Definition at line 48 of file G4XTankSimulator.h.

virtual G4XTankSimulatorAG::G4XTankSimulator::~G4XTankSimulator ( )
inlinevirtual

Definition at line 49 of file G4XTankSimulator.h.

Member Function Documentation

void G4XTankSimulator::ConstructTraces ( sevt::Station station) const
private
VModule::ResultFlag G4XTankSimulator::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 588 of file G4XTankSimulator.cc.

References io::eSuccess.

sevt::StationConstants::SignalComponent G4XTankSimulator::GetComponentId ( const sevt::StationSimData::ConstParticleIterator  currentParticle)
staticprivate
static sevt::StationConstants::SignalComponent G4XTankSimulatorAG::G4XTankSimulator::GetCurrentComponent ( )
inlinestaticprivate

Definition at line 70 of file G4XTankSimulator.h.

References fCurrentParticleIt, and GetComponentId().

static const sdet::Station* G4XTankSimulatorAG::G4XTankSimulator::GetCurrentDetectorStation ( )
inlinestaticprivate
static sevt::SEvent::StationIterator G4XTankSimulatorAG::G4XTankSimulator::GetCurrentEventStationIt ( )
inlinestaticprivate
static sevt::StationSimData::ParticleIterator G4XTankSimulatorAG::G4XTankSimulator::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 G4XTankSimulator::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 G4XTankSimulatorAG::G4XTankSimulator::MuCaptureOn ( )
inlinestatic
G4XTankSimulatorAG::G4XTankSimulator::REGISTER_MODULE ( "G4XTankSimulatorAG"  ,
G4XTankSimulator   
)
private
VModule::ResultFlag G4XTankSimulator::Run ( evt::Event event)
virtual

Run: invoked once per event.

This method is for things that should be done once per event {You must override this method in your concrete module}

Implements fwk::VModule.

Definition at line 236 of file G4XTankSimulator.cc.

References ERROR, fwk::CoordinateSystemRegistry::Get(), sevt::SEvent::GetNumberOfStations(), evt::Event::HasSEvent(), INFO, sevt::SEvent::StationsBegin(), and sevt::SEvent::StationsEnd().

VModule::ResultFlag G4XTankSimulator::RunFast ( evt::Event theEvent)
private
VModule::ResultFlag G4XTankSimulator::RunFull ( evt::Event theEvent)
private
ResultFlag fwk::VModule::RunWithTiming ( evt::Event event)
inlineinherited

Friends And Related Function Documentation

friend class G4XTankConstruction
friend

Definition at line 109 of file G4XTankSimulator.h.

friend class G4XTankFastCerenkov
friend

Definition at line 108 of file G4XTankSimulator.h.

friend class G4XTankPhysicsList
friend

Definition at line 112 of file G4XTankSimulator.h.

friend class G4XTankPMT
friend

Definition at line 111 of file G4XTankSimulator.h.

friend class G4XTankPMTAction
friend

Definition at line 110 of file G4XTankSimulator.h.

friend class G4XTankPrimaryGenerator
friend

Definition at line 107 of file G4XTankSimulator.h.

Member Data Documentation

const sdet::Station * G4XTankSimulator::fCurrentDetectorStation = nullptr
staticprivate

Definition at line 80 of file G4XTankSimulator.h.

Referenced by GetCurrentDetectorStation().

SEvent::StationIterator G4XTankSimulator::fCurrentEventStationIt
staticprivate

Definition at line 81 of file G4XTankSimulator.h.

Referenced by GetCurrentEventStationIt().

StationSimData::ParticleIterator G4XTankSimulator::fCurrentParticleIt
staticprivate

Definition at line 82 of file G4XTankSimulator.h.

Referenced by GetCurrentComponent(), and GetCurrentParticleIt().

float G4XTankSimulatorAG::G4XTankSimulator::fDepth = 0
private

Definition at line 105 of file G4XTankSimulator.h.

bool G4XTankSimulatorAG::G4XTankSimulator::fDetectorConstructed = false
private

Definition at line 94 of file G4XTankSimulator.h.

std::string G4XTankSimulatorAG::G4XTankSimulator::fEventId
private

Definition at line 103 of file G4XTankSimulator.h.

bool G4XTankSimulatorAG::G4XTankSimulator::fFastMode = false
private

Definition at line 95 of file G4XTankSimulator.h.

bool G4XTankSimulatorAG::G4XTankSimulator::fGeoVisOn = false
private

Definition at line 90 of file G4XTankSimulator.h.

bool G4XTankSimulator::fgMuCapture = false
staticprivate

Definition at line 96 of file G4XTankSimulator.h.

Referenced by MuCaptureOn().

G4XTankPMT * G4XTankSimulator::fgPMTAction = nullptr
staticprivate
G4XTankConstruction* G4XTankSimulatorAG::G4XTankSimulator::fgTankConstruction = nullptr
private

Definition at line 99 of file G4XTankSimulator.h.

int fwk::VModule::fInfoLevel = 0
protectedinherited
G4RunManager* G4XTankSimulatorAG::G4XTankSimulator::fRunManager = nullptr
private

Definition at line 84 of file G4XTankSimulator.h.

G4XTankStackingAction* G4XTankSimulatorAG::G4XTankSimulator::fStackingAction = nullptr
private

Definition at line 87 of file G4XTankSimulator.h.

G4XTankSteppingAction* G4XTankSimulatorAG::G4XTankSimulator::fSteppingAction = nullptr
private

Definition at line 88 of file G4XTankSimulator.h.

bool G4XTankSimulatorAG::G4XTankSimulator::fStoreOnGrdPart = false
private

Definition at line 101 of file G4XTankSimulator.h.

bool G4XTankSimulatorAG::G4XTankSimulator::fTrajVisOn = false
private

Definition at line 91 of file G4XTankSimulator.h.

G4UImanager* G4XTankSimulatorAG::G4XTankSimulator::fUImanager = nullptr
private

Definition at line 85 of file G4XTankSimulator.h.

bool G4XTankSimulatorAG::G4XTankSimulator::fUseGlobalPhysicsList = false
private

Definition at line 92 of file G4XTankSimulator.h.

G4VisManager* G4XTankSimulatorAG::G4XTankSimulator::fVisManager = nullptr
private

Definition at line 86 of file G4XTankSimulator.h.


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

, generated on Tue Sep 26 2023.