#include <RunManagerMT.h>
Public Member Functions | |
void | abortRun (bool softAbort=false) |
const SensitiveDetectorCatalog & | catalog () const |
sim::ChordFinderSetter * | chordFinderSetterForWorker () const |
void | Connect (RunAction *) |
const std::vector< std::string > & | G4Commands () const |
void | initG4 (const DDCompactView *pDD, const MagneticField *pMF, const HepPDT::ParticleDataTable *fPDGTable) |
void | initializeUserActions () |
PhysicsList * | physicsListForWorker () const |
RunManagerMT (edm::ParameterSet const &p) | |
void | stopG4 () |
const DDDWorld & | world () const |
~RunManagerMT () | |
Private Member Functions | |
void | DumpMagneticField (const G4Field *) const |
void | terminateRun () |
Private Attributes | |
SensitiveDetectorCatalog | m_catalog |
bool | m_check |
std::unique_ptr < sim::ChordFinderSetter > | m_chordFinderSetter |
G4Run * | m_currentRun |
sim::FieldBuilder * | m_fieldBuilder |
std::string | m_FieldFile |
std::vector< std::string > | m_G4Commands |
G4MTRunManagerKernel * | m_kernel |
bool | m_managerInitialized |
edm::ParameterSet | m_pField |
std::unique_ptr< PhysicsList > | m_physicsList |
const std::string | m_PhysicsTablesDir |
edm::ParameterSet | m_pPhysics |
edm::ParameterSet | m_pRunAction |
const bool | m_pUseMagneticField |
SimActivityRegistry | m_registry |
bool | m_RestorePhysicsTables |
std::unique_ptr< SimRunInterface > | m_runInterface |
bool | m_runTerminated |
bool | m_StorePhysicsTables |
RunAction * | m_userRunAction |
std::unique_ptr< DDDWorld > | m_world |
std::string | m_WriteFile |
RunManagerMT should be constructed in a newly spanned thread (acting as the Geant4 master thread), and there should be exactly one instance of it.
Definition at line 59 of file RunManagerMT.h.
RunManagerMT::RunManagerMT | ( | edm::ParameterSet const & | p | ) |
Definition at line 59 of file RunManagerMT.cc.
References assert(), edm::ParameterSet::getUntrackedParameter(), m_check, m_currentRun, m_FieldFile, m_kernel, m_WriteFile, and AlCaHLTBitMon_QueryRunRegistry::string.
RunManagerMT::~RunManagerMT | ( | ) |
|
inline |
|
inline |
Definition at line 81 of file RunManagerMT.h.
References m_catalog.
Referenced by RunManagerMTWorker::initializeThread().
|
inline |
Definition at line 102 of file RunManagerMT.h.
References m_chordFinderSetter.
Referenced by RunManagerMTWorker::initializeThread().
void RunManagerMT::Connect | ( | RunAction * | runAction | ) |
Definition at line 199 of file RunManagerMT.cc.
References SimActivityRegistry::beginOfRunSignal_, sim_act::Signaler< T >::connect(), SimActivityRegistry::endOfRunSignal_, RunAction::m_beginOfRunSignal, RunAction::m_endOfRunSignal, and m_registry.
Referenced by SimRunInterface::Connect(), and initializeUserActions().
|
private |
Definition at line 223 of file RunManagerMT.cc.
References funct::cos(), groupFilesInBlocks::fout, i, j, m_FieldFile, dbtoconf::out, phi, point, alignCSCRings::r, funct::sin(), detailsBasic3DVector::z, and SiStripMonitorClusterAlca_cfi::zmax.
Referenced by initG4().
|
inline |
Definition at line 85 of file RunManagerMT.h.
References m_G4Commands.
Referenced by RunManagerMTWorker::initializeThread().
void RunManagerMT::initG4 | ( | const DDCompactView * | pDD, |
const MagneticField * | pMF, | ||
const HepPDT::ParticleDataTable * | fPDGTable | ||
) |
Definition at line 93 of file RunManagerMT.cc.
References RunAction::BeginOfRunAction(), sim::FieldBuilder::build(), asciidump::cmd, SurfaceDeformationFactory::create(), SimActivityRegistry::dddWorldSignal_, dir, DumpMagneticField(), g, reco::get(), edm::ParameterSet::getParameter(), recoMuon::in, initializeUserActions(), m_catalog, m_check, m_chordFinderSetter, m_currentRun, m_fieldBuilder, m_FieldFile, m_G4Commands, m_kernel, m_managerInitialized, m_pField, m_physicsList, m_PhysicsTablesDir, m_pPhysics, m_pUseMagneticField, m_registry, m_RestorePhysicsTables, m_StorePhysicsTables, m_userRunAction, m_world, m_WriteFile, and AlCaHLTBitMon_QueryRunRegistry::string.
void RunManagerMT::initializeUserActions | ( | ) |
Definition at line 192 of file RunManagerMT.cc.
References Connect(), m_pRunAction, m_runInterface, and m_userRunAction.
Referenced by initG4().
|
inline |
Definition at line 93 of file RunManagerMT.h.
References m_physicsList.
Referenced by RunManagerMTWorker::initializeThread().
void RunManagerMT::stopG4 | ( | ) |
|
private |
Definition at line 211 of file RunManagerMT.cc.
References RunAction::EndOfRunAction(), m_currentRun, m_kernel, m_runTerminated, and m_userRunAction.
Referenced by stopG4(), and ~RunManagerMT().
|
inline |
Definition at line 77 of file RunManagerMT.h.
References m_world.
Referenced by RunManagerMTWorker::initializeThread().
|
private |
Definition at line 131 of file RunManagerMT.h.
|
private |
Definition at line 123 of file RunManagerMT.h.
Referenced by initG4(), and RunManagerMT().
|
private |
Definition at line 134 of file RunManagerMT.h.
Referenced by chordFinderSetterForWorker(), and initG4().
|
private |
Definition at line 117 of file RunManagerMT.h.
Referenced by initG4(), RunManagerMT(), and terminateRun().
|
private |
Definition at line 133 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 136 of file RunManagerMT.h.
Referenced by DumpMagneticField(), initG4(), and RunManagerMT().
|
private |
Definition at line 127 of file RunManagerMT.h.
Referenced by G4Commands(), and initG4().
|
private |
Definition at line 110 of file RunManagerMT.h.
Referenced by initG4(), RunManagerMT(), and terminateRun().
|
private |
Definition at line 113 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 124 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 112 of file RunManagerMT.h.
Referenced by initG4(), and physicsListForWorker().
|
private |
Definition at line 120 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 125 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 126 of file RunManagerMT.h.
Referenced by initializeUserActions().
|
private |
Definition at line 115 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 130 of file RunManagerMT.h.
|
private |
Definition at line 122 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 118 of file RunManagerMT.h.
Referenced by initializeUserActions().
|
private |
Definition at line 114 of file RunManagerMT.h.
Referenced by stopG4(), terminateRun(), and ~RunManagerMT().
|
private |
Definition at line 121 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 116 of file RunManagerMT.h.
Referenced by initG4(), initializeUserActions(), and terminateRun().
|
private |
Definition at line 129 of file RunManagerMT.h.
|
private |
Definition at line 137 of file RunManagerMT.h.
Referenced by initG4(), and RunManagerMT().