#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 |
bool | m_pUseMagneticField |
std::string | m_RegionFile |
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 58 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_RegionFile, m_WriteFile, and AlCaHLTBitMon_QueryRunRegistry::string.
RunManagerMT::~RunManagerMT | ( | ) |
|
inline |
|
inline |
Definition at line 80 of file RunManagerMT.h.
References m_catalog.
Referenced by RunManagerMTWorker::initializeThread().
|
inline |
Definition at line 101 of file RunManagerMT.h.
References m_chordFinderSetter.
Referenced by RunManagerMTWorker::initializeThread().
void RunManagerMT::Connect | ( | RunAction * | runAction | ) |
Definition at line 206 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 230 of file RunManagerMT.cc.
References funct::cos(), groupFilesInBlocks::fout, i, j, m_FieldFile, dbtoconf::out, phi, point, alignCSCRings::r, funct::sin(), z, and SiStripMonitorClusterAlca_cfi::zmax.
Referenced by initG4().
|
inline |
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_RegionFile, m_registry, m_RestorePhysicsTables, m_StorePhysicsTables, m_userRunAction, m_world, m_WriteFile, G4RegionReporter::ReportRegions(), and AlCaHLTBitMon_QueryRunRegistry::string.
void RunManagerMT::initializeUserActions | ( | ) |
Definition at line 200 of file RunManagerMT.cc.
References Connect(), m_pRunAction, m_runInterface, and m_userRunAction.
Referenced by initG4().
|
inline |
Definition at line 92 of file RunManagerMT.h.
References m_physicsList.
Referenced by RunManagerMTWorker::initializeThread().
void RunManagerMT::stopG4 | ( | ) |
|
private |
Definition at line 218 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 76 of file RunManagerMT.h.
References m_world.
Referenced by RunManagerMTWorker::initializeThread().
|
private |
Definition at line 130 of file RunManagerMT.h.
|
private |
Definition at line 122 of file RunManagerMT.h.
Referenced by initG4(), and RunManagerMT().
|
private |
Definition at line 133 of file RunManagerMT.h.
Referenced by chordFinderSetterForWorker(), and initG4().
|
private |
Definition at line 116 of file RunManagerMT.h.
Referenced by initG4(), RunManagerMT(), and terminateRun().
|
private |
Definition at line 132 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 135 of file RunManagerMT.h.
Referenced by DumpMagneticField(), initG4(), and RunManagerMT().
|
private |
Definition at line 126 of file RunManagerMT.h.
Referenced by G4Commands(), and initG4().
|
private |
Definition at line 109 of file RunManagerMT.h.
Referenced by initG4(), RunManagerMT(), and terminateRun().
|
private |
Definition at line 112 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 123 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 111 of file RunManagerMT.h.
Referenced by initG4(), and physicsListForWorker().
|
private |
Definition at line 119 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 124 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 125 of file RunManagerMT.h.
Referenced by initializeUserActions().
|
private |
Definition at line 114 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 137 of file RunManagerMT.h.
Referenced by initG4(), and RunManagerMT().
|
private |
Definition at line 129 of file RunManagerMT.h.
|
private |
Definition at line 121 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 117 of file RunManagerMT.h.
Referenced by initializeUserActions().
|
private |
Definition at line 113 of file RunManagerMT.h.
Referenced by stopG4(), terminateRun(), and ~RunManagerMT().
|
private |
Definition at line 120 of file RunManagerMT.h.
Referenced by initG4().
|
private |
Definition at line 115 of file RunManagerMT.h.
Referenced by initG4(), initializeUserActions(), and terminateRun().
|
private |
Definition at line 128 of file RunManagerMT.h.
|
private |
Definition at line 136 of file RunManagerMT.h.
Referenced by initG4(), and RunManagerMT().