Install fatal handler with default options.
This is meant to be easy to call from python via ctypes.
71{
73
74
75 if(!m_simplifiedGeoPath.empty()) {
77
78 if (geoFile.empty()) {
79 ATH_MSG_FATAL(
"Could not find simplified geometry file: " << m_simplifiedGeoPath);
80 return StatusCode::FAILURE;
81 }
82
84 parser.Read(geoFile,
false);
85 }
86
87
88 if (m_recordFlux) G4ScoringManager::GetScoringManager();
89
91
92 try {
94 }
95 catch(const std::exception& e) {
96 ATH_MSG_ERROR(
"Failure in G4AtlasAlg::initializeOnce: " <<
e.what());
97 return StatusCode::FAILURE;
98 }
99
102
105
106
107 ATH_CHECK( m_truthRecordSvc.retrieve() );
108 ATH_MSG_INFO(
"- Using ISF TruthRecordSvc : " << m_truthRecordSvc.typeAndName() );
109
110
111 ATH_CHECK( m_inputTruthCollectionKey.initialize());
112 ATH_CHECK( m_outputTruthCollectionKey.initialize());
113 ATH_CHECK( m_eventInfoKey.initialize() );
114
116 if ( not m_truthPreselectionTool.empty() ) {
117 ATH_CHECK(m_truthPreselectionTool.retrieve());
118 }
119
120 if ( not m_qspatcher.empty() ) {
122 }
123
125 return StatusCode::SUCCESS;
126}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_INFO(x,...)
#define ATH_MSG_FATAL(x,...)
static std::once_flag initializeOnceFlag
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
void initializeOnce()
G4 initialization called only by the first alg instance.