ATLAS Offline Software
Loading...
Searching...
No Matches
HGTD_GMX_DetectorTool.cxx File Reference
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.

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

StatusCode HGTD_GMX_DetectorTool::registerCallback ATLAS_NOT_THREAD_SAFE ( void )
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}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
static Double_t sc
an iterator over instances of a given type in StoreGateSvc.
Definition DataHandle.h:43
bool contains(const std::string &s, const std::string &regx)
does a string contain the substring
Definition hcg.cxx:114