7 #include "GaudiKernel/EventIDRange.h"
25 return StatusCode::SUCCESS;
33 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.
fullKey() <<
" is already valid.. In theory this should not be called, but may happen if multiple concurrent events are being processed out of order.");
34 return StatusCode::SUCCESS;
38 std::unique_ptr<PixelModuleData> writeCdo(std::make_unique<PixelModuleData>());
40 const EventIDBase
start{EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT, 0,
41 0, EventIDBase::UNDEFNUM, EventIDBase::UNDEFNUM};
42 const EventIDBase
stop {EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT, EventIDBase::UNDEFNUM-1,
43 EventIDBase::UNDEFNUM-1, EventIDBase::UNDEFNUM, EventIDBase::UNDEFNUM};
75 int currentRunNumber = ctx.eventID().run_number();
77 std::ifstream indata(
filename.c_str());
85 if (rangeW.stop().isValid() && rangeW.start()>rangeW.stop()) {
87 return StatusCode::FAILURE;
90 if (writeHandle.
record(rangeW, std::move(writeCdo)).isFailure()) {
91 ATH_MSG_FATAL(
"Could not record PixelModuleData " << writeHandle.
key() <<
" with EventRange " << rangeW <<
" into Conditions Store");
92 return StatusCode::FAILURE;
94 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.
key() <<
" with range " << rangeW <<
" into Conditions Store");
96 return StatusCode::SUCCESS;
104 std::string subfilename;
107 indata >> subfilename;
108 if (indata.eof()) {
break; }
111 ATH_MSG_DEBUG(
"PixelConfigCondAlg::getFileName() RunNumber=" << currentRunNumber <<
" IOV=" <<
runNumber <<
" filename=" << subfilename);