38 BunchSpacingProducer::BunchSpacingProducer::BunchSpacingProducer(
const edm::ParameterSet& iConfig) {
40 produces<unsigned int>();
41 bunchSpacing_ = consumes<int>(
edm::InputTag(
"addPileupInfo",
"bunchSpacing"));
42 overRide_ = iConfig.
getParameter<
bool>(
"overrideBunchSpacing");
43 bunchSpacingOverride_ = iConfig.
getParameter<
unsigned int>(
"bunchSpacingOverride");
58 unsigned int run =
e.run();
61 if ((
run > 252126 &&
run != 254833) ||
run == 178003 ||
run == 178004 ||
run == 209089 ||
run == 209106 ||
62 run == 209109 ||
run == 209146 ||
run == 209148 ||
run == 209151) {
77 desc.add<
bool>(
"overrideBunchSpacing",
false);
78 desc.add<
unsigned int>(
"bunchSpacingOverride", 25);
80 descriptions.
add(
"BunchSpacingProducer",
desc);
static void fillDescriptions(edm::ConfigurationDescriptions &)
T getParameter(std::string const &) const
~BunchSpacingProducer() override
unsigned int bunchSpacingOverride_
edm::EDGetTokenT< int > bunchSpacing_
BunchSpacingProducer(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &, const edm::EventSetup &) final
void add(std::string const &label, ParameterSetDescription const &psetDescription)