32 return StatusCode::SUCCESS;
43 auto cc = std::make_unique<CondCont_t> (*rcusvc.get(),
id);
45 auto lbn = [&](
int l) {
return EventIDBase (
m_runNumber,
46 EventIDBase::UNDEFEVT,
47 EventIDBase::UNDEFNUM,
48 EventIDBase::UNDEFNUM,
50 auto range = [&](
int l1,
int l2) {
return EventIDRange (lbn(l1), lbn(l2)); };
54 auto tc = std::make_unique<CaloRec::ToolConstants>();
57 tc->newrep (name(),
"test.cb1",
"0");
58 tc->newrep (name(),
"test.ca2",
"[[4, 5], [10, 9], [2.5, 1]]");
59 ATH_CHECK( cc->insert (range(0, 1), std::move (
tc), ctx) );
63 auto tc = std::make_unique<CaloRec::ToolConstants>();
66 tc->newrep (name(),
"test.cb1",
"1");
67 tc->newrep (name(),
"test.ca1",
"[10, 9, 8, 7]");
68 tc->newrep (name(),
"test.ca2",
"[[14, 15], [1, 19], [12.5, 11]]");
69 ATH_CHECK( cc->insert (range(1, 2), std::move (
tc), ctx) );
73 auto tc = std::make_unique<CaloRec::ToolConstants>();
76 tc->newrep (name(),
"test.cb1",
"1");
77 tc->newrep (name(),
"test.caa",
"[10, 9, 8, 7]");
78 tc->newrep (name(),
"test.ca2",
"[[14, 15], [1, 19], [12.5, 11]]");
79 ATH_CHECK( cc->insert (range(2, 3), std::move (
tc), ctx) );
83 auto tc = std::make_unique<CaloRec::ToolConstants>();
86 ATH_CHECK( cc->insert (range(3, 4), std::move (
tc), ctx) );
91 return StatusCode::SUCCESS;
virtual void writeConstants(std::ostream &stream, const std::string &name, const EventContext &ctx) const
Dump method (for debugging).