Skip to content
Snippets Groups Projects
Commit bf563d34 authored by Dag Gillberg's avatar Dag Gillberg
Browse files

Make sure sysInit is called only once.

parent 047339ac
No related branches found
No related tags found
9 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45419WIP: GNNC tool,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!28528Revert 63f845ae,!27054Atr20369 210,!26342Monopole: Handle fractionally charged particles
......@@ -15,7 +15,13 @@ namespace xAOD {
StatusCode TruthWeightTool::initialize() {
ATH_MSG_DEBUG( "Initialising... " );
// AsgMetadataTool needs to call sysInitize to be registered in the incident svc
return sysInitialize(); //StatusCode::SUCCESS;
// "hack" to make sure sysInitlize is called (only once, or we get caut in infinite loop)
bool static first=true;
if (first) {
first=false;
return sysInitialize();
}
return StatusCode::SUCCESS;
}
std::shared_ptr<IIndexRetriever> TruthWeightTool::spawnIndexRetriever(std::string weightName) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment