Go to the documentation of this file.
38 BunchSpacingProducer::BunchSpacingProducer::BunchSpacingProducer(
const edm::ParameterSet& iConfig) {
40 produces<unsigned int>();
41 bunchSpacing_ = consumes<int>(
edm::InputTag(
"addPileupInfo",
"bunchSpacing"));
43 if (iConfig.
exists(
"overrideBunchSpacing")) {
44 overRide_ = iConfig.
getParameter<
bool>(
"overrideBunchSpacing");
46 bunchSpacingOverride_ = iConfig.
getParameter<
unsigned int>(
"bunchSpacingOverride");
63 unsigned int run =
e.run();
66 if ((
run > 252126 &&
run != 254833) ||
run == 178003 ||
run == 178004 ||
run == 209089 ||
run == 209106 ||
67 run == 209109 ||
run == 209146 ||
run == 209148 ||
run == 209151) {
82 desc.
add<
bool>(
"overrideBunchSpacing",
false);
83 desc.
add<
unsigned int>(
"bunchSpacingOverride", 25);
85 descriptions.
add(
"bunchSpacingProducer", desc);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
~BunchSpacingProducer() override
edm::EDGetTokenT< int > bunchSpacing_
BunchSpacingProducer(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void produce(edm::Event &, const edm::EventSetup &) final
T getParameter(std::string const &) const
static void fillDescriptions(edm::ConfigurationDescriptions &)
unsigned int bunchSpacingOverride_