HepMC3 event record library
|
Stores additional information about PDFs. More...
#include <GenPdfInfo.h>
Public Member Functions | |
bool | from_string (const std::string &att) override |
Implementation of Attribute::from_string. More... | |
bool | to_string (std::string &att) const override |
Implementation of Attribute::to_string. More... | |
void | set (const int &parton_id1, const int &parton_id2, const double &x1, const double &x2, const double &scale_in, const double &xf1, const double &xf2, const int &pdf_id1=0, const int &pdf_id2=0) |
Set all fields. More... | |
bool | operator== (const GenPdfInfo &) const |
Operator ==. More... | |
bool | operator!= (const GenPdfInfo &) const |
Operator !=. More... | |
bool | is_valid () const |
Verify that the instance contains non-zero information. More... | |
virtual bool | init () |
Optionally initialize the attribute after from_string. More... | |
virtual bool | init (const GenRunInfo &) |
Optionally initialize the attribute after from_string. More... | |
bool | is_parsed () const |
Check if this attribute is parsed. More... | |
const std::string & | unparsed_string () const |
Get unparsed string. More... | |
const GenEvent * | event () const |
GenParticlePtr | particle () |
ConstGenParticlePtr | particle () const |
GenVertexPtr | vertex () |
ConstGenVertexPtr | vertex () const |
Data Fields | |
int | parton_id [2] |
Parton PDG ID. More... | |
int | pdf_id [2] |
LHAPDF ID code. More... | |
double | scale |
Factorisation scale (in GEV) More... | |
double | x [2] |
Parton momentum fraction. More... | |
double | xf [2] |
PDF value. More... | |
Protected Member Functions | |
void | set_is_parsed (bool flag) |
Set is_parsed flag. More... | |
void | set_unparsed_string (const std::string &st) |
Set unparsed string. More... | |
Stores additional information about PDFs.
This is an example of event attribute used to store PDF-related information
Definition at line 32 of file GenPdfInfo.h.
|
inlineinherited |
return the GenEvent to which this Attribute belongs, if at all.
Definition at line 109 of file Attribute.h.
References Attribute::m_event.
|
overridevirtual |
Implementation of Attribute::from_string.
Implements Attribute.
Definition at line 18 of file GenPdfInfo.cc.
References GenPdfInfo::parton_id, GenPdfInfo::pdf_id, GenPdfInfo::scale, GenPdfInfo::x, and GenPdfInfo::xf.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Reimplemented in HEPEUPAttribute.
Definition at line 82 of file Attribute.h.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenRunInfo object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute.
Definition at line 91 of file Attribute.h.
|
inlineinherited |
Check if this attribute is parsed.
Definition at line 103 of file Attribute.h.
References Attribute::m_is_parsed.
bool is_valid | ( | ) | const |
Verify that the instance contains non-zero information.
Definition at line 91 of file GenPdfInfo.cc.
References GenPdfInfo::parton_id, GenPdfInfo::pdf_id, GenPdfInfo::scale, GenPdfInfo::x, and GenPdfInfo::xf.
bool operator!= | ( | const GenPdfInfo & | a | ) | const |
Operator !=.
Definition at line 87 of file GenPdfInfo.cc.
bool operator== | ( | const GenPdfInfo & | a | ) | const |
Operator ==.
Definition at line 83 of file GenPdfInfo.cc.
|
inlineinherited |
return the GenParticle to which this Attribute belongs, if at all.
Definition at line 114 of file Attribute.h.
References Attribute::m_particle.
|
inlineinherited |
return the GenParticle to which this Attribute belongs, if at all.
Definition at line 119 of file Attribute.h.
References Attribute::m_particle.
void set | ( | const int & | parton_id1, |
const int & | parton_id2, | ||
const double & | x1, | ||
const double & | x2, | ||
const double & | scale_in, | ||
const double & | xf1, | ||
const double & | xf2, | ||
const int & | pdf_id1 = 0 , |
||
const int & | pdf_id2 = 0 |
||
) |
Set all fields.
Definition at line 69 of file GenPdfInfo.cc.
References GenPdfInfo::parton_id, GenPdfInfo::pdf_id, GenPdfInfo::scale, GenPdfInfo::x, and GenPdfInfo::xf.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
overridevirtual |
Implementation of Attribute::to_string.
Implements Attribute.
Definition at line 50 of file GenPdfInfo.cc.
References GenPdfInfo::parton_id, GenPdfInfo::pdf_id, GenPdfInfo::scale, GenPdfInfo::x, and GenPdfInfo::xf.
|
inlineinherited |
|
inlineinherited |
return the GenVertex to which this Attribute belongs, if at all.
Definition at line 124 of file Attribute.h.
References Attribute::m_vertex.
|
inlineinherited |
return the GenVertex to which this Attribute belongs, if at all.
Definition at line 129 of file Attribute.h.
References Attribute::m_vertex.
int parton_id[2] |
Parton PDG ID.
Definition at line 38 of file GenPdfInfo.h.
int pdf_id[2] |
LHAPDF ID code.
Definition at line 39 of file GenPdfInfo.h.
double scale |
Factorisation scale (in GEV)
Definition at line 40 of file GenPdfInfo.h.
double x[2] |
Parton momentum fraction.
Definition at line 41 of file GenPdfInfo.h.
double xf[2] |
PDF value.
Definition at line 42 of file GenPdfInfo.h.