24 bool const fastCloning,
25 bool const wantAllEvents,
28 bool result{fastCloning};
30 <<
"Initial fast cloning configuration " 31 << (fastCloningSet ?
"(user-set): " :
"(from default): ") << std::boolalpha
34 if (fastCloning && !wantAllEvents) {
37 <<
"Fast cloning deactivated due to presence of\n" 38 <<
"event selection configuration.";
40 if (fastCloning && maxCriterionSpecified(cc) &&
44 <<
"Fast cloning deactivated due to request to allow\n" 45 <<
"output file switching at an Event, SubRun, or Run boundary.";
52 bool const dropAllEvents,
53 bool const dropAllSubRuns)
58 if (dropAllEventsSet && !dropAllEvents) {
60 <<
"\nThe following FHiCL specification is illegal\n\n" 61 <<
" dropAllEvents : false \n" 62 <<
" dropAllSubRuns : true \n\n" 63 <<
"[1] Both can be 'true', " 64 <<
"[2] both can be 'false', or " 65 <<
"[3] 'dropAllEvents : true' and 'dropAllSubRuns : false' "
auto const & fileProperties() const
bool shouldDropEvents(bool dropAllEventsSet, bool dropAllEvents, bool dropAllSubRuns)
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
static constexpr auto unsigned_max()
static constexpr auto seconds_max()
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
static constexpr auto size_max()
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
bool shouldFastClone(bool fastCloningSet, bool fastCloning, bool wantAllEvents, ClosingCriteria const &fileProperties)