60 produces<nanoaod::MergeableCounterTable, edm::Transition::BeginLuminosityBlock>();
69 auto out = std::make_unique<nanoaod::MergeableCounterTable>();
70 out->addFloat(
"crossingAngle",
"LHC crossing angle", lhcInfoCombined.
crossingAngle());
71 out->addFloat(
"betaStar",
"LHC beta star", lhcInfoCombined.
betaStarX);
72 out->addFloat(
"energy",
"LHC beam energy", lhcInfoCombined.
energy);
79 desc.add<
std::string>(
"lhcInfoLabel",
"")->setComment(
"label used for LHCInfo");
80 desc.add<
std::string>(
"lhcInfoPerLSLabel",
"")->setComment(
"label of the LHCInfoPerLS record");
81 desc.add<
std::string>(
"lhcInfoPerFillLabel",
"")->setComment(
"label of the LHCInfoPerFill record");
82 desc.add<
bool>(
"useNewLHCInfo",
true)
83 ->setComment(
"flag whether to use new LHCInfoPerLS/Fill records or old LHCInfo");
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
float crossingAngle() const
void produce(edm::StreamID id, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
edm::ESGetToken< LHCInfoPerFill, LHCInfoPerFillRcd > lhcinfoPerFillToken_
#define DEFINE_FWK_MODULE(type)
edm::ESGetToken< LHCInfo, LHCInfoRcd > lhcinfoToken_
~LHCInfoProducer() override
LHCInfoProducer(edm::ParameterSet const &iConfig)
edm::ESGetToken< LHCInfoPerLS, LHCInfoPerLSRcd > lhcinfoPerLSToken_
void globalBeginLuminosityBlockProduce(edm::LuminosityBlock &iLumi, edm::EventSetup const &iSetup) const override