ATLAS Offline Software
Functions
HGTD_GMX_DetectorTool.cxx File Reference
#include "HGTD_GMX_DetectorTool.h"
#include "HGTD_GmxInterface.h"
#include <HGTD_ReadoutGeometry/HGTD_DetectorManager.h>
#include <DetDescrConditions/AlignableTransformContainer.h>
#include <GeoModelKernel/GeoPhysVol.h>
#include <GeoModelUtilities/GeoModelExperiment.h>
#include <SGTools/DataProxy.h>
Include dependency graph for HGTD_GMX_DetectorTool.cxx:

Go to the source code of this file.

Functions

StatusCode HGTD_GMX_DetectorTool::registerCallback ATLAS_NOT_THREAD_SAFE ()
 Install fatal handler with default options. More...
 

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

StatusCode HGTD_GMX_DetectorTool::registerCallback ATLAS_NOT_THREAD_SAFE ( )
inline

Install fatal handler with default options.

This is meant to be easy to call from python via ctypes.

Definition at line 109 of file HGTD_GMX_DetectorTool.cxx.

110 {
111  // Register call-back for software alignment
112  if (m_alignable) {
113  if (detStore()->contains<AlignableTransformContainer>(m_alignmentFolderName)) {
114  ATH_MSG_DEBUG("Registering callback on AlignableTransformContainer with folder " << m_alignmentFolderName);
116  StatusCode sc = detStore()->regFcn(&IGeoModelTool::align, dynamic_cast<IGeoModelTool *>(this), atc, m_alignmentFolderName);
117  if (sc.isFailure()) {
118  ATH_MSG_ERROR("Could not register callback on AlignableTransformContainer with folder "
119  << m_alignmentFolderName);
120  return StatusCode::FAILURE;
121  }
122  } else {
123  ATH_MSG_WARNING("Unable to register callback on AlignableTransformContainer with folder "
124  << m_alignmentFolderName << ", Alignment disabled!");
125  }
126  } else {
127  ATH_MSG_INFO("Alignment disabled. No callback registered");
128  // We return failure otherwise it will try and register a GeoModelSvc callback associated with this callback.
129  }
130  return StatusCode::SUCCESS;
131 }
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
IGeoModelTool::align
virtual StatusCode align(IOVSVC_CALLBACK_ARGS)=0
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
DataHandle
an iterator over instances of a given type in StoreGateSvc. It d-casts and caches locally the pointed...
Definition: DataHandle.h:42
IGeoModelTool
Definition: IGeoModelTool.h:12
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32