19 produces<nanoaod::FlatTable>();
26 desc.add<
bool>(
"extension",
false);
29 descriptions.
add(
"tkInstLumiTable",
desc);
46 out->addColumnValue<
int>(
"bx",
iEvent.bunchCrossing(),
"Bunch-crossing ID");
57 }
else if (metaData.
isValid()) {
62 <<
"Luminosity related collections not found in the event; will write dummy values";
65 out->addColumnValue<
float>(
"instLumi",
instLumi,
"Instantaneous luminosity");
66 out->addColumnValue<
float>(
"PU",
pu,
"Pileup");
const edm::EDGetTokenT< LumiScalersCollection > m_scalerToken
Class to contain the online luminosity from soft FED 1022.
float instLumi() const
Return the luminosity for the current nibble.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Log< level::Info, false > LogInfo
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< OnlineLuminosityRecord > m_metaDataToken
std::vector< LumiScalers > LumiScalersCollection
TkInstLumiTableProducer(const edm::ParameterSet ¶ms)
float avgPileUp() const
Return the average pileup for th current nibble.