Skip to content
Snippets Groups Projects
Commit 81cb9f4e authored by Nils Krumnack's avatar Nils Krumnack
Browse files

silently ignore missing classes during initialization

As suggested by @akraszna during the MR I'm now silently ignoring any
missing xAOD classes.
parent 425493da
No related branches found
No related tags found
No related merge requests found
......@@ -75,13 +75,11 @@ namespace xAOD {
"xAOD::PFO_v1",
"xAOD::TrigElectron_v1",
"xAOD::L2CombinedMuon_v1"}) {
TClass* cl = TClass::GetClass( name );
if( cl == nullptr ) {
std::cerr << "xAOD::Init: "
<< "Failed to load the dictionary for: "
<< name << std::endl;
return xAOD::TReturnCode::kFailure;
}
// silently ignore missing classes, because this gets used in
// all projects, and not all projects contain all xAOD classes
static constexpr Bool_t LOAD = kTRUE;
static constexpr Bool_t SILENT = kTRUE;
TClass::GetClass( name, LOAD, SILENT );
}
// Let the user know what happened:
......
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