9 config_assert(
bool const cond, std::string
const& msg)
17 unsigned const subRuns,
19 unsigned const inputFiles,
20 unsigned const the_size,
22 : counts_{{events, subRuns, runs, inputFiles}},
age_{the_age},
size_{the_size}
30 <<
", size: " << fp.
size() <<
", age: " << fp.
age().count() <<
"]";
44 config_assert(cc.nEvents() > 0,
"maxEvents must be greater than 0.");
45 config_assert(cc.nSubRuns() > 0,
"maxSubRuns must be greater than 0.");
46 config_assert(cc.nRuns() > 0,
"maxRuns must be greater than 0.");
47 config_assert(cc.nInputFiles() > 0,
"maxInputFiles must be greater than 0.");
48 config_assert(cc.size() > 0,
"maxSize must be greater than 0 KiB.");
49 config_assert(cc.age() > decltype(cc.age())::zero(),
50 "maxAge must be greater than 0 seconds.");
std::ostream & operator<<(std::ostream &os, EDAnalyzer::Table< T > const &t)
ClosingCriteria()=default
art::FileIndex::EntryNumber_t EntryNumber_t
Atom< unsigned > maxSubRuns
static BT value(std::string const &spec)
std::chrono::seconds age_
bool should_close(FileProperties const &) const
Atom< unsigned > maxInputFiles
FileProperties closingCriteria_
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
fhicl::Atom< std::string > granularity
std::chrono::seconds seconds_t
Atom< unsigned > maxEvents