44 void initPDFSet(
int nset,
int setid,
int member=0);
47 double xfx(
int nset,
double x,
double Q,
int fl);
48 double getXmin(
int nset,
int member);
49 double getXmax(
int nset,
int member);
50 double getQ2min(
int nset,
int member);
51 double getQ2max(
int nset,
int member);
57 lheTag_(pset.getParameter<
edm::InputTag> (
"lheSrc")),
58 _newECMS(pset.getParameter< double > (
"NewECMS"))
60 std::stringstream labelStr;
61 labelStr <<
"com" <<
"To" <<
_newECMS;
63 produces<GenEventInfoProduct>(
_label);
80 throw cms::Exception(
"LHECOMWeightProducer") <<
"You cannot reweight COM energy to a higher than original energy ";
111 LogTrace(
"LHECOMWeightProducer") <<
"*******LHECOMWeightProducer*******\n" <<
112 " Q : " << Q <<
"\n" <<
113 " id1: " << id1 <<
"\n" <<
114 " x1 : " << x1 <<
"\n" <<
115 " x1': " << x1prime <<
"\n" <<
116 " id2: " << id2 <<
"\n" <<
117 " x2 : " << x2 <<
"\n" <<
118 " x2': " << x2prime ;
132 double newpdf1 =
LHAPDF::xfx(1, x1prime, Q, id1)/x1prime;
133 double newpdf2 =
LHAPDF::xfx(1, x2prime, Q, id2)/x2prime;
135 " xfx1 : " << oldpdf1 <<
"\n" <<
136 " xfx2 : " << oldpdf2 <<
"\n" <<
137 " xfx1': " << newpdf1 <<
"\n" <<
138 " xfx2': " << newpdf2 <<
"\n" <<
139 " weight:" << (newpdf1/oldpdf1)*(newpdf2/oldpdf2);
140 double weight = (newpdf1/oldpdf1)*(newpdf2/oldpdf2);
142 weights.push_back(weight);
144 info->setWeights(weights);
bool getByLabel(std::string const &label, Handle< PROD > &result) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const lhef::HEPEUP & hepeup() const
#define DEFINE_FWK_MODULE(type)
std::pair< double, double > EBMUP
void initPDFSet(int nset, const std::string &filename, int member=0)
const lhef::HEPRUP & heprup() const
std::pair< int, int > PDFGUP
double getXmax(int nset, int member)
double getQ2max(int nset, int member)
void extrapolate(bool extrapolate=true)
std::vector< FiveVector > PUP
virtual void beginRun(edm::Run const &run, const edm::EventSetup &es) override
double getXmin(int nset, int member)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void initPDFSet(int nset, int setid, int member=0)
std::pair< int, int > PDFSUP
LHECOMWeightProducer(const edm::ParameterSet &)
double xfx(int nset, double x, double Q, int fl)
virtual void produce(edm::Event &, const edm::EventSetup &) override
double getQ2min(int nset, int member)
virtual void beginJob() override
void usePDFMember(int nset, int member)