#include <TrackingGeometrySvc.h>
This service builds and registers the TrackingGeometry in the detector store. It is called by an ordered callback after GeoModel was created.
- Author
- Andre.nosp@m.as.S.nosp@m.alzbu.nosp@m.rger.nosp@m.@cern.nosp@m..ch
Definition at line 45 of file TrackingGeometrySvc.h.
◆ TrackingGeometrySvc()
Trk::TrackingGeometrySvc::TrackingGeometrySvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svc |
|
) |
| |
◆ ~TrackingGeometrySvc()
Trk::TrackingGeometrySvc::~TrackingGeometrySvc |
( |
| ) |
|
|
virtualdefault |
◆ finalize()
StatusCode Trk::TrackingGeometrySvc::finalize |
( |
| ) |
|
|
overridevirtual |
Finalize Service.
Definition at line 186 of file TrackingGeometrySvc.cxx.
188 #ifdef TRKDETDESCR_MEMUSAGE
189 ATH_MSG_INFO(
"[ memory usage ] Change in memory usage -------------------------------- ");
190 ATH_MSG_INFO(
"[ memory usage ] Virtual memory change (vsize) : " << m_changeVsize);
191 ATH_MSG_INFO(
"[ memory usage ] Real memory change (rss) : " << m_changeRss);
192 ATH_MSG_INFO(
"[ memory usage ] ---------------------------------------------------------");
195 return StatusCode::SUCCESS;
◆ initialize()
StatusCode Trk::TrackingGeometrySvc::initialize |
( |
| ) |
|
|
overridevirtual |
Initialize Service.
Definition at line 42 of file TrackingGeometrySvc.cxx.
46 "!!! Initialization of TrackingGeometrySvc !!! The Service it to be "
47 "deprecated in favour of the relevant Condition Algorithm. !!!");
48 m_autoRetrieveTools =
false;
49 m_checkToolDeps =
false;
53 return StatusCode::FAILURE;
61 tagInfoMgr->addListener(
this);
63 ATH_MSG_INFO(
"Building Geometry at initialisation time.");
67 return StatusCode::FAILURE;
71 return StatusCode::SUCCESS;
◆ tagInfoUpdated()
void Trk::TrackingGeometrySvc::tagInfoUpdated |
( |
| ) |
|
|
finaloverridevirtual |
◆ trackingGeometry()
◆ trackingGeometryInit()
StatusCode Trk::TrackingGeometrySvc::trackingGeometryInit |
( |
bool |
needsInit = true | ) |
|
Create the geometry.
Definition at line 82 of file TrackingGeometrySvc.cxx.
84 ATH_MSG_INFO(
"Trk::TrackingGeometrySvc::trackingGeometryInit");
86 SmartIF<StoreGateSvc>
detStore{service(
"DetectorStore")};
93 return StatusCode::FAILURE;
96 <<
" not properly configured. No GeometryBuilder defined. Aborting.");
97 return StatusCode::FAILURE;
104 return StatusCode::SUCCESS;
110 ATH_MSG_INFO(
"trackingGeometryInit - initialize on TagInfoMgr callback");
115 #ifdef TRKDETDESCR_MEMUSAGE
117 ATH_MSG_INFO(
"[ memory usage ] Start to monitor memory usage of PID: " << getpid());
119 m_memoryLogger.refresh(getpid());
122 m_changeVsize = (-1.) * m_memoryLogger.vmSize();
123 m_changeRss = (-1.) * m_memoryLogger.vmRss();
129 #ifdef TRKDETDESCR_MEMUSAGE
130 ATH_MSG_INFO(
"[ memory usage ] TrackingGeometry retrieved: ");
131 m_memoryLogger.refresh(getpid());
148 delete oldTrackingGeometry;
154 for (; gpIter != gpIterE; ++gpIter) {
155 if ((*gpIter)->process(*atlasTrackingGeometry).isFailure()) {
156 ATH_MSG_FATAL(
"Processing of TrackingGeometry did not succeed. Abort.");
157 return StatusCode::FAILURE;
159 ATH_MSG_VERBOSE(
"Successfully processed the TrackingGeometry with " << (*gpIter));
160 #ifdef TRKDETDESCR_MEMUSAGE
161 ATH_MSG_INFO(
"[ memory usage ] After processing with " << (*gpIter));
162 m_memoryLogger.refresh(getpid());
172 <<
"' built and written to DetectorStore.");
175 return StatusCode::SUCCESS;
◆ trackingGeometryName()
const std::string & Trk::TrackingGeometrySvc::trackingGeometryName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ trackingGeometryNotSet()
void Trk::TrackingGeometrySvc::trackingGeometryNotSet |
( |
| ) |
const |
|
private |
◆ SvcFactory< TrackingGeometrySvc >
◆ m_buildGeometryFromTagInfo
Gaudi::Property<bool> Trk::TrackingGeometrySvc::m_buildGeometryFromTagInfo {this, "BuildGeometryFromTagInfo", true} |
|
private |
◆ m_geometryProcessors
◆ m_rerunOnCallback
Gaudi::Property<bool> Trk::TrackingGeometrySvc::m_rerunOnCallback {this, "RerunOnCallback", false} |
|
private |
◆ m_trackingGeometry
◆ m_trackingGeometryBuilder
ToolHandle<Trk::IGeometryBuilder> Trk::TrackingGeometrySvc::m_trackingGeometryBuilder {this, "GeometryBuilder", ""} |
|
private |
◆ m_trackingGeometryName
Gaudi::Property<std::string> Trk::TrackingGeometrySvc::m_trackingGeometryName {this, "TrackingGeometryName", "AtlasTrackingGeometry"} |
|
private |
The documentation for this class was generated from the following files: