13 using std::make_unique;
27 " Cannot put a product corresponding to a full Run using\n" 28 " art::runFragment(). This can happen if you attempted to\n" 29 " put a product at beginRun using art::runFragment().\n" 30 " Please use either:\n" 31 " art::fullRun(), or\n" 32 " art::runFragment(art::RangeSet const&)\n" 33 " or contact artists@fnal.gov for assistance.\n") !=
41 " Cannot put a product corresponding to a full Run using\n" 42 " art::runFragment(art::RangeSet&). Please use:\n" 44 " or contact artists@fnal.gov for assistance.\n") !=
52 " Cannot put a product corresponding to a full SubRun using\n" 53 " art::subRunFragment(). This can happen if you attempted to\n" 54 " put a product at beginSubRun using art::subRunFragment().\n" 55 " Please use either:\n" 56 " art::fullSubRun(), or\n" 57 " art::subRunFragment(art::RangeSet const&)\n" 58 " or contact artists@fnal.gov for assistance.\n") !=
63 subRun_fragment_full_subRun_put(
std::string const what)
66 " Cannot put a product corresponding to a full SubRun using\n" 67 " art::subRunFragment(art::RangeSet&). Please use:\n" 68 " art::fullSubRun()\n" 69 " or contact artists@fnal.gov for assistance.\n") !=
85 produces<unsigned, art::InRun>(
"bgnRunNum");
86 produces<unsigned, art::InRun>(
"bgnRunDenom");
87 produces<unsigned, art::InRun>(
"bgnRunGarbage1");
88 produces<unsigned, art::InRun>(
"bgnRunGarbage2");
89 produces<unsigned, art::InRun>(
"endRunNum");
90 produces<unsigned, art::InRun>(
"endRunDenom");
92 produces<unsigned, art::InSubRun>(
"bgnSubRunNum");
93 produces<unsigned, art::InSubRun>(
"bgnSubRunDenom");
94 produces<unsigned, art::InSubRun>(
"bgnSubRunGarbage1");
95 produces<unsigned, art::InSubRun>(
"bgnSubRunGarbage2");
96 produces<unsigned, art::InSubRun>(
"endSubRunNum");
97 produces<unsigned, art::InSubRun>(
"endSubRunDenom");
103 r.
put(make_unique<unsigned>(2),
"bgnRunNum");
106 BOOST_CHECK_EXCEPTION(
110 return insert_failure(e) && run_fragment_put(e.what());
113 BOOST_CHECK_EXCEPTION(
114 r.
put(make_unique<unsigned>(4),
119 return insert_failure(e) && run_fragment_full_run_put(e.what());
126 sr.
put(make_unique<unsigned>(6),
"bgnSubRunNum");
129 BOOST_CHECK_EXCEPTION(
134 return insert_failure(e) && subRun_fragment_put(e.what());
137 BOOST_CHECK_EXCEPTION(
138 sr.
put(make_unique<unsigned>(8),
143 return insert_failure(e) && subRun_fragment_full_subRun_put(e.what());
154 sr.
put(make_unique<unsigned>(1),
"endSubRunNum");
161 r.
put(make_unique<unsigned>(3),
"endRunNum");
void beginRun(art::Run &r) override
void endSubRun(art::SubRun &sr) override
constexpr auto runFragment()
static RangeSet forSubRun(SubRunID)
#define DEFINE_ART_MODULE(klass)
void produce(art::Event &) override
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
constexpr auto subRunFragment()
constexpr auto fullSubRun()
void beginSubRun(art::SubRun &sr) override
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
ImplicitRSAssigmentProducer(Parameters const &ps)
static RangeSet forRun(RunID)
void endRun(art::Run &r) override