42 BunchSpacingProducer::
46 produces<unsigned int>();
47 bunchSpacing_ = consumes<int>(
edm::InputTag(
"addPileupInfo",
"bunchSpacing"));
49 if ( iConfig.
exists(
"overrideBunchSpacing") ) {
50 overRide_= iConfig.
getParameter<
bool>(
"overrideBunchSpacing");
52 bunchSpacingOverride_=iConfig.
getParameter<
unsigned int>(
"bunchSpacingOverride");
66 std::auto_ptr<unsigned int> pOut1(
new unsigned int);
72 unsigned int bunchSpacing=50;
76 if ( ( run > 252126 && run != 254833 )||
91 bunchSpacing = *bunchSpacingH;
94 std::auto_ptr<unsigned int> pOut1(
new unsigned int);
103 desc.
add<
bool>(
"overrideBunchSpacing",
false);
104 desc.
add<
unsigned int>(
"bunchSpacingOverride",25);
106 descriptions.
add(
"bunchSpacingProducer",desc) ;
static void fillDescriptions(edm::ConfigurationDescriptions &)
T getParameter(std::string const &) const
virtual void produce(edm::Event &, const edm::EventSetup &) overridefinal
bool getByToken(EDGetToken token, Handle< PROD > &result) const
unsigned int bunchSpacingOverride_
#define DEFINE_FWK_MODULE(type)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
edm::EDGetTokenT< int > bunchSpacing_
BunchSpacingProducer(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)