20 const char *cursor = att.data();
24 if ( !(cursor = strchr(cursor+1,
' ')) )
return false;
27 if ( !(cursor = strchr(cursor+1,
' ')) )
return false;
30 if ( !(cursor = strchr(cursor+1,
' ')) )
return false;
33 if ( !(cursor = strchr(cursor+1,
' ')) )
return false;
36 if ( !(cursor = strchr(cursor+1,
' ')) )
return false;
39 if ( !(cursor = strchr(cursor+1,
' ')) )
return false;
42 if ( !(cursor = strchr(cursor+1,
' ')) )
return false;
45 if ( !(cursor = strchr(cursor+1,
' ')) )
return false;
54 snprintf(buf, 255,
"%i %i %.8e %.8e %.8e %.8e %.8e %i %i",
70void GenPdfInfo::set(
const int& parton_id1,
const int& parton_id2,
const double& x1,
const double& x2,
71 const double& scale_in,
const double& xf1,
const double& xf2,
72 const int& pdf_id1,
const int& pdf_id2) {
85 return ( memcmp( (
void*)
this, (
void*)&a,
sizeof(
class GenPdfInfo) ) == 0 );
89 return !( a == *this );
96 if (
x[0] != 0 )
return true;
97 if (
x[1] != 0 )
return true;
98 if (
scale != 0 )
return true;
99 if (
xf[0] != 0 )
return true;
100 if (
xf[1] != 0 )
return true;
101 if (
pdf_id[0] != 0 )
return true;
102 if (
pdf_id[1] != 0 )
return true;
Definition of event attribute class GenPdfInfo.
Stores additional information about PDFs.
int parton_id[2]
Parton PDG ID.
double scale
Factorisation scale (in GEV)
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.
int pdf_id[2]
LHAPDF ID code.
bool is_valid() const
Verify that the instance contains non-zero information.
bool from_string(const std::string &att) override
Implementation of Attribute::from_string.
double x[2]
Parton momentum fraction.
bool operator==(const GenPdfInfo &) const
Operator ==.
bool to_string(std::string &att) const override
Implementation of Attribute::to_string.
bool operator!=(const GenPdfInfo &) const
Operator !=.