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  PublicToolHandle<IDetectorConstructionTool> m_detConstruction{this, "DetectorConstruction", "", "Tool handle of the DetectorConstruction"};
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
IDetectorConstructionTool
Definition: IDetectorConstructionTool.h:25
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
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
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
G4AtlasSvc::m_detConstruction
PublicToolHandle< IDetectorConstructionTool > m_detConstruction
Definition: G4AtlasSvc.h:28
G4AtlasSvc::m_physicsListSvc
ServiceHandle< IPhysicsListSvc > m_physicsListSvc
Definition: G4AtlasSvc.h:29
G4AtlasSvc::~G4AtlasSvc
virtual ~G4AtlasSvc()=default
columnar::final
CM final
Definition: ColumnAccessor.h:106
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
G4AtlasSvc
Definition: G4AtlasSvc.h:18
G4AtlasSvc::m_activateParallelGeometries
Gaudi::Property< bool > m_activateParallelGeometries
Definition: G4AtlasSvc.h:32
IDetectorConstructionTool.h
IPhysicsListSvc.h
AthService.h
private
#define private
Definition: xAODTruthCnvAlg.h:20
ServiceHandle< IPhysicsListSvc >