15 #include <Math/VectorUtil.h>
42 std::vector<double> defPtEdges;
43 defPtEdges.push_back(0.);
44 defPtEdges.push_back(999999.);
49 std::vector<double> defWeights;
50 defWeights.push_back(1.);
52 if (
ptWeights_.size()==1 && ninputs_expected>1) {
75 unsigned int gensize = genParticles->size();
77 std::auto_ptr<double>
weight (
new double);
83 for(
unsigned int i = 0;
i<gensize; ++
i) {
85 int id = part.
pdgId();
86 if (
id!=23 &&
abs(
id)!=24)
continue;
88 if (status!=3)
continue;
89 double pt = part.
pt();
91 for (
unsigned int j=1;
j<=
nbins; ++
j) {
T getUntrackedParameter(std::string const &, T const &) const
virtual int pdgId() const
PDG identifier.
#define DEFINE_FWK_MODULE(type)
virtual int status() const
status word
std::vector< double > isrBinEdges_
virtual void produce(edm::Event &, const edm::EventSetup &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ISRWeightProducer(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual double pt() const
transverse momentum
std::vector< double > ptWeights_