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();
78 return StatusCode::FAILURE;
80 std::ifstream indata(
filename.c_str());
88 if (rangeW.stop().isValid() && rangeW.start()>rangeW.stop()) {
90 return StatusCode::FAILURE;
93 if (writeHandle.
record(rangeW, std::move(writeCdo)).isFailure()) {
94 ATH_MSG_FATAL(
"Could not record PixelModuleData " << writeHandle.
key() <<
" with EventRange " << rangeW <<
" into Conditions Store");
95 return StatusCode::FAILURE;
97 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.
key() <<
" with range " << rangeW <<
" into Conditions Store");
99 return StatusCode::SUCCESS;
109 std::ifstream indata(
fname);
111 std::string subfilename;
114 indata >> subfilename;
115 if (indata.eof()) {
break; }
118 ATH_MSG_DEBUG(
"PixelConfigCondAlg::getFileName() RunNumber=" << currentRunNumber <<
" IOV=" <<
runNumber <<
" filename=" << subfilename);