17 lumiToken_{produces<edm::ConditionsInLumiBlock, edm::Transition::EndLuminosityBlock>()},
19 runToken_{produces<edm::ConditionsInRunBlock, edm::Transition::EndRun>()},
21 eventToken_{produces<edm::ConditionsInEventBlock>()} {}
30 return std::make_shared<edm::ConditionsInLumiBlock>();
39 return std::make_shared<edm::ConditionsInRunBlock>();
44 auto& runBlock = *(runCache(run.
index()));
47 runBlock.BStartCurrent = sum.m_start_current;
48 runBlock.BStopCurrent = sum.m_stop_current;
49 runBlock.BAvgCurrent = sum.m_avg_current;
61 if (!gtReadoutRecordData.
isValid()) {
63 <<
"\nrequested in configuration, but not found in the event."
64 <<
"\nNo BST quantities retrieved." << std::endl;
71 const L1GtfeExtWord& gtfeBlockData = gtReadoutRecordData->gtfeWord();
79 auto& runBlock = *runCache(iEvent.
getRun().
index());
81 runBlock.beamMode = gtfeBlockData.
beamMode();
std::shared_ptr< edm::ConditionsInLumiBlock > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const final
LuminosityBlockIndex index() const
const edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > gtEvmDigisLabelToken_
const edm::InputTag gtEvmDigisLabel_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
const edm::EDPutTokenT< edm::ConditionsInEventBlock > eventToken_
Run const & getRun() const
~ConditionDumperInEdm() override
void emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
const cms_uint16_t bstMasterStatus() const
const cms_uint16_t beamMomentum() const
bool getData(T &iHolder) const
void endRunProduce(edm::Run &, const edm::EventSetup &) final
const edm::EDPutTokenT< edm::ConditionsInLumiBlock > lumiToken_
LuminosityBlock const & getLuminosityBlock() const
ConditionDumperInEdm(const edm::ParameterSet &)
const cms_uint32_t totalIntensityBeam2() const
const cms_uint32_t totalIntensityBeam1() const
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
edm::ConditionsInEventBlock eventBlock_
const cms_uint32_t lhcFillNumber() const
std::shared_ptr< edm::ConditionsInRunBlock > globalBeginRun(edm::Run const &, const edm::EventSetup &) const final
T getParameter(std::string const &) const
void produce(edm::Event &, const edm::EventSetup &) final
void endLuminosityBlockProduce(edm::LuminosityBlock &, edm::EventSetup const &) final
const edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
const cms_uint32_t turnCountNumber() const
const cms_uint16_t beamMode() const
const edm::EDPutTokenT< edm::ConditionsInRunBlock > runToken_