ATLAS Offline Software
Loading...
Searching...
No Matches
HGTD_DetectorTool.cxx File Reference

Go to the source code of this file.

Functions

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

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

StatusCode HGTD_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 82 of file HGTD_DetectorTool.cxx.

83{
84
85 // Register call-back for software alignment
86 StatusCode sc = StatusCode::FAILURE;
87 if (m_alignable.value()) {
88 std::string folderName = "/Indet/AlignHGTD";
90 ATH_MSG_DEBUG( "Registering callback on AlignableTransformContainer with folder " << folderName );
92 ATH_CHECK( detStore()->regFcn( &IGeoModelTool::align, dynamic_cast<IGeoModelTool *>(this), atc, folderName ) );
93 sc = StatusCode::SUCCESS;
94 }
95 else {
96 ATH_MSG_WARNING( "Unable to register callback on AlignableTransformContainer with folder " <<
97 folderName << ", Alignment disabled (only if no Run-2 scheme is loaded)!" );
98 }
99 }
100 else {
101 ATH_MSG_INFO( "Alignment disabled. No callback registered" );
102 // We return failure otherwise it will try and register a GeoModelSvc callback associated with this callback.
103 }
104 return sc;
105}
#define ATH_CHECK
Evaluate an expression and check for errors.
#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