ATLAS Offline Software
DetectorFieldManagerTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef G4ATLASTOOLS_DetectorFieldManagerTool_H
6 #define G4ATLASTOOLS_DetectorFieldManagerTool_H
7 
8 // Local includes
10 
19 {
20 
21  public:
22 
24  DetectorFieldManagerTool( const std::string& type, const std::string& name,
25  const IInterface* parent );
26 
29 
31  StatusCode initializeField() override final;
32 
33  protected:
34 
36  Gaudi::Property<std::vector<std::string> > m_logVolumeList{this, "LogicalVolumes", {}, "List of logical volumes to which the field will be applied"};
37  Gaudi::Property<std::vector<std::string> > m_physVolumeList{this, "PhysicalVolumes", {}, "List of physical volumes to which the field will be applied"};
38 
40  Gaudi::Property<bool> m_muonOnlyField{this, "MuonOnlyField", false, "Only muons experience the magnetic field"};
41 };
42 
43 #endif // G4ATLASTOOLS_DetectorFieldManagerTool_H
DetectorFieldManagerTool::DetectorFieldManagerTool
DetectorFieldManagerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: DetectorFieldManagerTool.cxx:25
DetectorFieldManagerTool::m_logVolumeList
Gaudi::Property< std::vector< std::string > > m_logVolumeList
List of volumes to assign this field configuration to.
Definition: DetectorFieldManagerTool.h:36
DetectorFieldManagerTool::m_muonOnlyField
Gaudi::Property< bool > m_muonOnlyField
Option for muons feeling the B-field only.
Definition: DetectorFieldManagerTool.h:40
G4FieldManagerToolBase.h
G4FieldManagerToolBase
Definition: G4FieldManagerToolBase.h:34
Property
Support class for PropertyMgr.
Definition: Property.h:23
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
DetectorFieldManagerTool::initializeField
StatusCode initializeField() override final
Initialize a field manager.
Definition: DetectorFieldManagerTool.cxx:35
DetectorFieldManagerTool
Tool for setting up a volume-local magnetic field manager.
Definition: DetectorFieldManagerTool.h:19
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
vector
Definition: MultiHisto.h:13
test_pyathena.parent
parent
Definition: test_pyathena.py:15
columnar::final
CM final
Definition: ColumnAccessor.h:106
protected
#define protected
Definition: GenEventCnv_p1.h:26
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
DetectorFieldManagerTool::m_physVolumeList
Gaudi::Property< std::vector< std::string > > m_physVolumeList
Definition: DetectorFieldManagerTool.h:37
DetectorFieldManagerTool::~DetectorFieldManagerTool
~DetectorFieldManagerTool()
Empty destructor.
Definition: DetectorFieldManagerTool.h:28
Gaudi
=============================================================================
Definition: CaloGPUClusterAndCellDataMonitorOptions.h:273