ATLAS Offline Software
G4AtlasSvc.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef G4ATLASSERVICES_G4AtlasSvc_H
6 #define G4ATLASSERVICES_G4AtlasSvc_H
7 
8 // Base classes
14 // Member
15 
16 #include "GaudiKernel/ServiceHandle.h"
17 
18 class G4AtlasSvc : public extends<AthService , IG4AtlasSvc> {
19  public:
20  // Standard constructor and destructor
21  G4AtlasSvc( const std::string& name, ISvcLocator* pSvcLocator );
22  virtual ~G4AtlasSvc() = default;
23 
24  // Gaudi methods
25  StatusCode initialize() override final;
26 
27  private:
28  ServiceHandle<IDetectorGeometrySvc> m_detGeoSvc{this, "DetectorGeometrySvc", "DetectorGeometrySvc"};
29  ServiceHandle<IPhysicsListSvc> m_physicsListSvc{this, "PhysicsListSvc", "PhysicsListSvc"};
30  ServiceHandle<IUserLimitsSvc> m_userLimitsSvc{this, "UserLimitsSvc", "UserLimitsSvc"};
31  Gaudi::Property<bool> m_isMT{this, "isMT", false};
32  Gaudi::Property<bool> m_activateParallelGeometries{this, "ActivateParallelWorlds", false, "Toggle on/off the G4 parallel geometry system"};
33 };
34 
35 #endif
G4AtlasSvc::G4AtlasSvc
G4AtlasSvc(const std::string &name, ISvcLocator *pSvcLocator)
Definition: G4AtlasSvc.cxx:14
G4AtlasSvc::m_isMT
Gaudi::Property< bool > m_isMT
Definition: G4AtlasSvc.h:31
G4AtlasSvc::m_detGeoSvc
ServiceHandle< IDetectorGeometrySvc > m_detGeoSvc
Definition: G4AtlasSvc.h:28
IG4AtlasSvc.h
G4AtlasSvc::m_userLimitsSvc
ServiceHandle< IUserLimitsSvc > m_userLimitsSvc
Definition: G4AtlasSvc.h:30
G4AtlasSvc::initialize
StatusCode initialize() override final
Definition: G4AtlasSvc.cxx:19
IUserLimitsSvc.h
IDetectorGeometrySvc
Definition: IDetectorGeometrySvc.h:23
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IDetectorGeometrySvc.h
G4AtlasSvc::m_physicsListSvc
ServiceHandle< IPhysicsListSvc > m_physicsListSvc
Definition: G4AtlasSvc.h:29
G4AtlasSvc::~G4AtlasSvc
virtual ~G4AtlasSvc()=default
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
G4AtlasSvc
Definition: G4AtlasSvc.h:18
G4AtlasSvc::m_activateParallelGeometries
Gaudi::Property< bool > m_activateParallelGeometries
Definition: G4AtlasSvc.h:32
IPhysicsListSvc.h
AthService.h
ServiceHandle
Definition: ClusterMakerTool.h:37