34 static std::string
const st(
"st");
35 static std::string
const nd(
"nd");
36 static std::string
const rd(
"rd");
37 static std::string
const th(
"th");
39 int lastDigit = count % 10;
40 if (lastDigit >= 4 || lastDigit == 0)
43 if (count % 100 - lastDigit == 10)
45 return (lastDigit == 1 ? st : (lastDigit == 2 ? nd : rd));
68 <<
"reportFrequency has a negative value, which is not meaningful.";
70 std::string
const runMode{
"Runs"};
71 std::string
const runSubRunMode{
"RunsAndSubRuns"};
73 if (processingMode == runMode) {
75 }
else if (processingMode == runSubRunMode) {
79 <<
"DecrepitRelicInputSourceImplementation::" 80 "DecrepitRelicInputSourceImplementation()\n" 81 <<
"The 'processingMode' parameter for sources has an illegal value '" 82 << processingMode <<
"'\n" 84 << runSubRunMode <<
"', or '" << runMode <<
"'.\n";
90 std::unique_ptr<RunPrincipal>&& rp)
97 std::unique_ptr<SubRunPrincipal>&& srp)
106 std::unique_ptr<EventPrincipal>&& ep)
214 std::unique_ptr<FileBlock>
234 std::unique_ptr<FileBlock>
237 return std::make_unique<FileBlock>();
240 std::unique_ptr<RunPrincipal>
254 std::unique_ptr<SubRunPrincipal>
256 cet::exempt_ptr<RunPrincipal const> rp)
272 std::unique_ptr<EventPrincipal>
274 cet::exempt_ptr<SubRunPrincipal const> srp)
297 std::unique_ptr<EventPrincipal>
301 <<
"DecrepitRelicInputSourceImplementation::readEvent()\n" 302 <<
"Random access is not implemented for this type of Input Source\n" 303 <<
"Contact a Framework Developer\n";
316 char ts[] =
"dd-Mon-yyyy hh:mm:ss TZN ";
317 strftime(ts, strlen(ts) + 1,
"%d-%b-%Y %H:%M:%S %Z", localtime(&t));
320 <<
" record. " << eventID <<
" at " << ts;
328 <<
"DecrepitRelicInputSourceImplementation::skip()\n" 329 <<
"Random access is not implemented for this type of Input Source\n" 330 <<
"Contact a Framework Developer\n";
337 <<
"DecrepitRelicInputSourceImplementation::rewind()\n" 338 <<
"Rewind is not implemented for this type of Input Source\n" 339 <<
"Contact a Framework Developer\n";
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception