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)); };
53 auto tc = std::make_unique<CaloRec::ToolConstants>();
56 tc->newrep (name(),
"test.cb1",
"0");
57 tc->newrep (name(),
"test.ca2",
"[[4, 5], [10, 9], [2.5, 1]]");
58 ATH_CHECK( cc->insert (range(0, 1), std::move (
tc)) );
62 auto tc = std::make_unique<CaloRec::ToolConstants>();
65 tc->newrep (name(),
"test.cb1",
"1");
66 tc->newrep (name(),
"test.ca1",
"[10, 9, 8, 7]");
67 tc->newrep (name(),
"test.ca2",
"[[14, 15], [1, 19], [12.5, 11]]");
68 ATH_CHECK( cc->insert (range(1, 2), std::move (
tc)) );
72 auto tc = std::make_unique<CaloRec::ToolConstants>();
75 tc->newrep (name(),
"test.cb1",
"1");
76 tc->newrep (name(),
"test.caa",
"[10, 9, 8, 7]");
77 tc->newrep (name(),
"test.ca2",
"[[14, 15], [1, 19], [12.5, 11]]");
78 ATH_CHECK( cc->insert (range(2, 3), std::move (
tc)) );
82 auto tc = std::make_unique<CaloRec::ToolConstants>();
85 ATH_CHECK( cc->insert (range(3, 4), std::move (
tc)) );
90 return StatusCode::SUCCESS;