10#include <generators/evtgen/EvtGenUtilities.h>
13#include <framework/logging/Logger.h>
14#include <framework/utilities/FileSystem.h>
16bool Belle2::generators::checkEvtGenDecayFile(
17 const std::string& decayFile)
19 const std::string defaultDecFile =
20 FileSystem::findFile(
"decfiles/dec/DECAY_BELLE2.DEC",
true);
21 if (decayFile.empty()) {
22 B2ERROR(
"No global decay file defined, please make sure "
23 "the decay-file parameter is set correctly.");
26 if (defaultDecFile.empty()) {
27 B2WARNING(
"Cannot find default decay file.");
28 }
else if (defaultDecFile != decayFile) {
29 B2INFO(
"Using non-standard decay file \"" << decayFile <<
"\".");