HepMC event record
|
Stores additional information about PDFs.
This is an example of event attribute used to store PDF-related information
Definition at line 32 of file build/outputs/include/HepMC/GenPdfInfo.h.
#include <GenPdfInfo.h>
Public Member Functions | |
bool | from_string (const string &att) |
Implementation of Attribute::from_string. More... | |
bool | to_string (string &att) const |
Implementation of Attribute::to_string. More... | |
void | set (int parton_id1, int parton_id2, double x1, double x2, double scale_in, double xf1, double xf2, int pdf_id1=0, 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... | |
bool | from_string (const string &att) |
Implementation of Attribute::from_string. More... | |
bool | to_string (string &att) const |
Implementation of Attribute::to_string. More... | |
void | set (int parton_id1, int parton_id2, double x1, double x2, double scale_in, double xf1, double xf2, int pdf_id1=0, 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 (const GenEvent &) |
Optionally initialize the attribute after from_string. More... | |
virtual bool | init (const GenRunInfo &) |
Optionally initialize the attribute after from_string. More... | |
virtual bool | init (const GenEvent &) |
Optionally initialize the attribute after from_string. More... | |
virtual bool | init (const GenRunInfo &) |
Optionally initialize the attribute after from_string. More... | |
bool | is_parsed () |
Check if this attribute is parsed. More... | |
bool | is_parsed () |
Check if this attribute is parsed. More... | |
const string & | unparsed_string () const |
Get unparsed string. More... | |
const string & | unparsed_string () const |
Get unparsed string. More... | |
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_is_parsed (bool flag) |
Set is_parsed flag. More... | |
void | set_unparsed_string (const string &st) |
Set unparsed string. More... | |
void | set_unparsed_string (const string &st) |
Set unparsed string. More... | |
|
virtual |
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.
|
virtual |
Implementation of Attribute::from_string.
Implements Attribute.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenEvent object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.
Definition at line 73 of file build/outputs/include/HepMC/Attribute.h.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenEvent object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.
Definition at line 73 of file include/HepMC/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, and HEPEUPAttribute.
Definition at line 82 of file include/HepMC/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, and HEPEUPAttribute.
Definition at line 82 of file build/outputs/include/HepMC/Attribute.h.
|
inlineinherited |
Check if this attribute is parsed.
Definition at line 94 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
|
inlineinherited |
Check if this attribute is parsed.
Definition at line 94 of file include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
bool is_valid | ( | ) | const |
Verify that the instance contains non-zero information.
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 & | ) | const |
Operator !=.
bool operator== | ( | const GenPdfInfo & | ) | const |
Operator ==.
bool operator== | ( | const GenPdfInfo & | a | ) | const |
Operator ==.
Definition at line 83 of file GenPdfInfo.cc.
void set | ( | int | parton_id1, |
int | parton_id2, | ||
double | x1, | ||
double | x2, | ||
double | scale_in, | ||
double | xf1, | ||
double | xf2, | ||
int | pdf_id1 = 0 , |
||
int | pdf_id2 = 0 |
||
) |
Set all fields.
void set | ( | int | parton_id1, |
int | parton_id2, | ||
double | x1, | ||
double | x2, | ||
double | scale_in, | ||
double | xf1, | ||
double | xf2, | ||
int | pdf_id1 = 0 , |
||
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 |
Set is_parsed flag.
Definition at line 101 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
|
inlineprotectedinherited |
Set is_parsed flag.
Definition at line 101 of file include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
|
inlineprotectedinherited |
Set unparsed string.
Definition at line 104 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_string.
|
inlineprotectedinherited |
Set unparsed string.
Definition at line 104 of file include/HepMC/Attribute.h.
References Attribute::m_string.
|
virtual |
Implementation of Attribute::to_string.
Implements Attribute.
|
virtual |
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 |
Get unparsed string.
Definition at line 97 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_string.
|
inlineinherited |
Get unparsed string.
Definition at line 97 of file include/HepMC/Attribute.h.
References Attribute::m_string.
int parton_id |
Parton PDG ID.
Definition at line 38 of file build/outputs/include/HepMC/GenPdfInfo.h.
int pdf_id |
LHAPDF ID code.
Definition at line 39 of file build/outputs/include/HepMC/GenPdfInfo.h.
double scale |
Factorisation scale (in GEV)
Definition at line 40 of file build/outputs/include/HepMC/GenPdfInfo.h.
double x |
Parton momentum fraction.
Definition at line 41 of file build/outputs/include/HepMC/GenPdfInfo.h.
double xf |
PDF value.
Definition at line 42 of file build/outputs/include/HepMC/GenPdfInfo.h.