47 void initPDFSet(
int nset,
int setid,
int member = 0);
50 double xfx(
int nset,
double x,
double Q,
int fl);
51 double getXmin(
int nset,
int member);
52 double getXmax(
int nset,
int member);
53 double getQ2min(
int nset,
int member);
54 double getQ2max(
int nset,
int member);
61 _newECMS(
pset.getParameter<double>(
"NewECMS")),
64 std::stringstream labelStr;
68 produces<GenEventInfoProduct>(
_label);
82 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;
134 LogTrace(
"LHECOMWeightProducer") <<
" xfx1 : " << oldpdf1 <<
"\n" 135 <<
" xfx2 : " << oldpdf2 <<
"\n" 136 <<
" xfx1': " << newpdf1 <<
"\n" 137 <<
" xfx2': " << newpdf2 <<
"\n" 138 <<
" weight:" << (newpdf1 / oldpdf1) * (newpdf2 / oldpdf2);
139 double weight = (newpdf1 / oldpdf1) * (newpdf2 / oldpdf2);
~LHECOMWeightProducer() override=default
std::pair< double, double > EBMUP
std::pair< int, int > PDFGUP
double getXmax(int nset, int member)
double getQ2max(int nset, int member)
const lhef::HEPRUP & heprup() const
void endRun(edm::Run const &run, const edm::EventSetup &es) override
void extrapolate(bool extrapolate=true)
std::vector< FiveVector > PUP
void beginRun(edm::Run const &run, const edm::EventSetup &es) override
#define DEFINE_FWK_MODULE(type)
double getXmin(int nset, int member)
const edm::InputTag lheTag_
Log< level::Info, false > LogInfo
void initPDFSet(int nset, int setid, int member=0)
const edm::EDGetTokenT< LHEEventProduct > tokenLHEEvent_
const edm::EDGetTokenT< LHERunInfoProduct > tokenLHERun_
std::pair< int, int > PDFSUP
LHECOMWeightProducer(const edm::ParameterSet &)
double xfx(int nset, double x, double Q, int fl)
void produce(edm::Event &, const edm::EventSetup &) override
double getQ2min(int nset, int member)
void usePDFMember(int nset, int member)
const lhef::HEPEUP & hepeup() const