15 #include <Math/VectorUtil.h>
37 genToken_ = consumes<reco::GenParticleCollection>(
41 std::vector<double> defPtEdges;
42 defPtEdges.push_back(0.);
43 defPtEdges.push_back(999999.);
44 isrBinEdges_ =
pset.getUntrackedParameter<std::vector<double> >(
"ISRBinEdges", defPtEdges);
48 std::vector<double> defWeights;
49 defWeights.push_back(1.);
50 ptWeights_ =
pset.getUntrackedParameter<std::vector<double> >(
"PtWeights", defWeights);
51 if (
ptWeights_.size() == 1 && ninputs_expected > 1) {
52 for (
unsigned int i = 1;
i < ninputs_expected;
i++) {
78 std::unique_ptr<double>
weight(
new double);
84 for (
unsigned int i = 0;
i < gensize; ++
i) {
87 if (
id != 23 &&
abs(
id) != 24)
94 for (
unsigned int j = 1;
j <=
nbins; ++
j) {