17 #ifdef TRKDETDESCR_MEMUSAGE
24 #ifdef TRKDETDESCR_MEMUSAGE
28 m_trackingGeometrySvc(
"TrackingGeometrySvc",
"AtlasTrackingGeometrySvc"),
29 m_trackingGeometry(nullptr),
30 m_trackingGeometryName(
"AtlasTrackingGeometry"),
31 m_trackingGeometryProcessors()
41 #ifdef TRKDETDESCR_MEMUSAGE
42 m_memoryLogger.refresh(getpid());
43 ATH_MSG_INFO(
"[ memory usage ] Memory monitoring activated through TRKDETDESCR_MEMUSAGE " );
44 ATH_MSG_INFO(
"[ memory usage ] initialize (start) : " );
50 if (m_trackingGeometrySvc.retrieve().isFailure()) {
51 ATH_MSG_FATAL(
"Cannot retrieve TrackingGeometrySvc. Abort job. " );
52 return StatusCode::FAILURE;
54 m_trackingGeometryName = m_trackingGeometrySvc->trackingGeometryName();
57 if ( m_trackingGeometryProcessors.retrieve().isFailure())
59 ATH_MSG_FATAL(
"Failed to retrieve tool(s) in " << m_trackingGeometryProcessors );
60 return StatusCode::FAILURE;
62 ATH_MSG_INFO(
"Retrieved tools : " << m_trackingGeometryProcessors );
64 #ifdef TRKDETDESCR_MEMUSAGE
65 m_memoryLogger.refresh(getpid());
70 return StatusCode::SUCCESS;
79 if (!m_trackingGeometry) {
80 if ((
detStore()->
retrieve(m_trackingGeometry, m_trackingGeometryName)).isFailure())
81 ATH_MSG_FATAL(
"Could not retrieve TrackingGeometry '" << m_trackingGeometryName <<
"' from DetectorStore." );
83 ATH_MSG_INFO(
"TrackingGeometry '" << m_trackingGeometryName <<
"' successfully retrieved from DetectorStore." );
86 if (!m_executed && m_trackingGeometry){
88 for (ToolHandle<Trk::IGeometryProcessor>
proc : m_trackingGeometryProcessors) {
92 ATH_MSG_FATAL(
"Could not process the TrackingGeometry with '" <<
proc->name() <<
"'. Aborting test.");
93 return StatusCode::FAILURE;
98 return StatusCode::SUCCESS;