Install fatal handler with default options.
This is meant to be easy to call from python via ctypes.
72{
74
75
76 if(!m_simplifiedGeoPath.empty()) {
78
79 if (geoFile.empty()) {
80 ATH_MSG_FATAL(
"Could not find simplified geometry file: " << m_simplifiedGeoPath);
81 return StatusCode::FAILURE;
82 }
83
85 parser.Read(geoFile,
false);
86 }
87
88
89 if (m_recordFlux) G4ScoringManager::GetScoringManager();
90
92
93 try {
95 }
96 catch(const std::exception& e) {
97 ATH_MSG_ERROR(
"Failure in G4AtlasAlg::initializeOnce: " <<
e.what());
98 return StatusCode::FAILURE;
99 }
100
103
106
107
108 ATH_CHECK( m_truthRecordSvc.retrieve() );
109 ATH_MSG_INFO(
"- Using ISF TruthRecordSvc : " << m_truthRecordSvc.typeAndName() );
111 ATH_MSG_INFO(
"- Using ISF GeoIDSvc : " << m_geoIDSvc.typeAndName() );
112
116
117
118 ATH_CHECK( m_inputTruthCollectionKey.initialize());
119 ATH_CHECK( m_outputTruthCollectionKey.initialize());
120 ATH_CHECK( m_eventInfoKey.initialize() );
121
123 if ( not m_truthPreselectionTool.empty() ) {
124 ATH_CHECK(m_truthPreselectionTool.retrieve());
125 }
126
127 if ( not m_qspatcher.empty() ) {
129 }
130
132 return StatusCode::SUCCESS;
133}
#define ATH_CHECK
Evaluate an expression and check for errors.
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.
Singleton class for creating truth incidents.
void SetISFGeoIDSvc(ISF::IGeoIDSvc *geoIDSvc)
Define which ISF GeoIDSvc to use.
void SetISFTruthSvc(ISF::ITruthSvc *truthSvc)
Define which ISF TruthService to use.