27 return StatusCode::SUCCESS;
40 std::unique_ptr<CaloBCIDLumi> lumi;
44 return StatusCode::SUCCESS;
48 lumi = std::make_unique<CaloBCIDLumi> (**coeffs, **bccd);
56 if (outputLumi.
isValid(range)) {
57 EventIDBase start = range.start();
58 EventIDBase coeffs_start = coeffs.getRange().start();
59 EventIDBase lcd_start = lcd.
getRange().start();
60 if ((start.time_stamp() == coeffs_start.time_stamp() &&
61 start.time_stamp_ns_offset() == coeffs_start.time_stamp_ns_offset()) ||
62 (start.time_stamp() == lcd_start.time_stamp() &&
63 start.time_stamp_ns_offset() == lcd_start.time_stamp_ns_offset()))
66 return StatusCode::SUCCESS;
70 lumi = std::make_unique<CaloBCIDLumi> (**coeffs, **lcd);
78 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Conditions algorithm to create CaloBCIDLumi.
Gaudi::Property< bool > m_isMC
Property; MC flag.
virtual StatusCode execute(const EventContext &ctx) const override final
Execute the algorithm.
SG::ReadCondHandleKey< LuminosityCondData > m_lumiDataKey
Property: Per-bunch luminosity data (data only) conditions input).
SG::ReadCondHandleKey< BunchCrossingCondData > m_bcDataKey
Property: Bunch crossing data (MC only) (conditions input).
virtual StatusCode initialize() override
Gaudi initialize method.
SG::WriteCondHandleKey< CaloBCIDLumi > m_outputLumiKey
Property: Offset correction luminosity-dependent conditions object (output).
SG::ReadCondHandleKey< CaloBCIDCoeffs > m_coeffsKey
Property: Coefficients object (conditions input).
const EventIDRange & getRange()
const std::string & key() const
void addDependency(const EventIDRange &range)
const EventIDRange & getRange() const
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED