#include <G4AtlasSvc.h>
|
ServiceHandle< IDetectorGeometrySvc > | m_detGeoSvc {this, "DetectorGeometrySvc", "DetectorGeometrySvc"} |
|
ServiceHandle< IPhysicsListSvc > | m_physicsListSvc {this, "PhysicsListSvc", "PhysicsListSvc"} |
|
ServiceHandle< IUserLimitsSvc > | m_userLimitsSvc {this, "UserLimitsSvc", "UserLimitsSvc"} |
|
Gaudi::Property< bool > | m_isMT {this, "isMT", false} |
|
Gaudi::Property< bool > | m_activateParallelGeometries {this, "ActivateParallelWorlds", false, "Toggle on/off the G4 parallel geometry system"} |
|
Definition at line 18 of file G4AtlasSvc.h.
◆ G4AtlasSvc()
G4AtlasSvc::G4AtlasSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~G4AtlasSvc()
virtual G4AtlasSvc::~G4AtlasSvc |
( |
| ) |
|
|
virtualdefault |
◆ initialize()
StatusCode G4AtlasSvc::initialize |
( |
| ) |
|
|
finaloverride |
Definition at line 19 of file G4AtlasSvc.cxx.
24 auto* rm = G4RunManager::GetRunManager();
27 return StatusCode::FAILURE;
31 if (!
m_isMT && rm->ConfirmBeamOnCondition()) {
32 rm->RunInitialization();
41 G4VModularPhysicsList* thePhysicsList=
dynamic_cast<G4VModularPhysicsList*
>(
m_physicsListSvc->GetPhysicsList());
42 if (!thePhysicsList) {
43 ATH_MSG_FATAL(
"Failed dynamic_cast!! this is not a G4VModularPhysicsList!");
44 return StatusCode::FAILURE;
46 #if G4VERSION_NUMBER >= 1010
47 std::vector<std::string>& parallelWorldNames=
m_detGeoSvc->GetParallelWorldNames();
48 for (
auto&
it: parallelWorldNames) {
49 thePhysicsList->RegisterPhysics(
new G4ParallelWorldPhysics(
it,
true));
54 return StatusCode::SUCCESS;
◆ m_activateParallelGeometries
Gaudi::Property<bool> G4AtlasSvc::m_activateParallelGeometries {this, "ActivateParallelWorlds", false, "Toggle on/off the G4 parallel geometry system"} |
|
private |
◆ m_detGeoSvc
◆ m_isMT
Gaudi::Property<bool> G4AtlasSvc::m_isMT {this, "isMT", false} |
|
private |
◆ m_physicsListSvc
◆ m_userLimitsSvc
The documentation for this class was generated from the following files: