#include <TrackingVolumesSvc.h>
|
| virtual StatusCode | initialize () override |
| | Initialize Service.
|
| virtual StatusCode | finalize () override |
| | Finalize Service.
|
| virtual const Trk::Volume & | volume (const TrackingVolumeIdentifier &volumeId) const override |
| | Provide the TrackingVolumes.
|
| virtual const std::string & | volumeName (const TrackingVolumeIdentifier &volumeId) const override |
| | Returns the name of the TrackingVolumes built with this Svc.
|
| | TrackingVolumesSvc (const std::string &name, ISvcLocator *svc) |
| | Standard Constructor.
|
| virtual | ~TrackingVolumesSvc () |
| | Standard Destructor.
|
Definition at line 39 of file TrackingVolumesSvc.h.
◆ TrackingVolumesSvc()
| Trk::TrackingVolumesSvc::TrackingVolumesSvc |
( |
const std::string & | name, |
|
|
ISvcLocator * | svc ) |
Standard Constructor.
Constructor.
Definition at line 24 of file TrackingVolumesSvc.cxx.
24 :
25 base_class(a_name,svc),
27{
28
29
34
35
36
37
38
41 = new Trk::Volume(nullptr, std::make_shared<Trk::CylinderVolumeBounds>(1100.0, 3200.0));
43 = new Trk::Volume(nullptr, std::make_shared<Trk::CylinderVolumeBounds>(4250.0, 6779.0));
45 = new Trk::Volume(nullptr, std::make_shared<Trk::CylinderVolumeBounds>(15000.0, 21000.0));
46
47
48
49
50
51}
@ MuonSpectrometerExitLayer
Tracking Volume which defines the outer surfaces of the MS.
@ CalorimeterEntryLayer
Tracking Volume which defines the entrance srufaces of the calorimeter.
@ MuonSpectrometerEntryLayer
Tracking Volume which defines the entrance surfaces of the MS.
std::vector< std::string > m_volumeNames
the names of the TrackingVolumes
std::vector< const Trk::Volume * > m_volumes
ServiceHandle< StoreGateSvc > m_pDetStore
the cached volumes
◆ ~TrackingVolumesSvc()
| Trk::TrackingVolumesSvc::~TrackingVolumesSvc |
( |
| ) |
|
|
virtualdefault |
Standard Destructor.
Destructor.
◆ finalize()
| StatusCode Trk::TrackingVolumesSvc::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
| StatusCode Trk::TrackingVolumesSvc::initialize |
( |
| ) |
|
|
overridevirtual |
Initialize Service.
Definition at line 59 of file TrackingVolumesSvc.cxx.
60{
62
63
65
66
68
73 } else {
74 ATH_MSG_INFO (
"initialize() successful: TrackingVolume '" <<
m_volumeNames[
id] <<
"' built and written to DetectorStore." );
75 }
76 }
77
79
80 return StatusCode::SUCCESS;
81}
#define ATH_CHECK
Evaluate an expression and check for errors.
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ volume()
| const Trk::Volume & Trk::TrackingVolumesSvc::volume |
( |
const TrackingVolumeIdentifier & | volumeId | ) |
const |
|
inlineoverridevirtual |
◆ volumeName()
| const std::string & Trk::TrackingVolumesSvc::volumeName |
( |
const TrackingVolumeIdentifier & | volumeId | ) |
const |
|
inlineoverridevirtual |
Returns the name of the TrackingVolumes built with this Svc.
Definition at line 74 of file TrackingVolumesSvc.h.
◆ m_pDetStore
◆ m_volumeNames
| std::vector<std::string > Trk::TrackingVolumesSvc::m_volumeNames |
|
private |
◆ m_volumes
| std::vector<const Trk::Volume*> Trk::TrackingVolumesSvc::m_volumes |
|
private |
The documentation for this class was generated from the following files: