rootOutputConfigurationTools.cc
Go to the documentation of this file.
2 // vim: set sw=2 expandtab :
3 
6 
7 using namespace art;
8 
9 namespace art {
10  namespace detail {
11 
12  bool
13  shouldDropEvents(bool const dropAllEventsSet,
14  bool const dropAllEvents,
15  bool const dropAllSubRuns)
16  {
17  if (!dropAllSubRuns) {
18  return dropAllEvents;
19  }
20  if (dropAllEventsSet && !dropAllEvents) {
22  << "\nThe following FHiCL specification is illegal\n\n"
23  << " dropAllEvents : false \n"
24  << " dropAllSubRuns : true \n\n"
25  << "[1] Both can be 'true', "
26  << "[2] both can be 'false', or "
27  << "[3] 'dropAllEvents : true' and 'dropAllSubRuns : false' "
28  << "is allowed.\n\n";
29  }
30  return true;
31  }
32 
33  } // namespace detail
34 } // namespace art
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
bool shouldDropEvents(bool const dropAllEventsSet, bool const dropAllEvents, bool const dropAllSubRuns)