MARLEY (Model of Argon Reaction Low Energy Yields) v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
Loading...
Searching...
No Matches
HepMC3::GenPdfInfo Class Reference

Stores additional information about PDFs. More...

#include <GenPdfInfo.h>

Inheritance diagram for HepMC3::GenPdfInfo:
HepMC3::Attribute

Public Member Functions

bool from_string (const std::string &att) override
 Implementation of Attribute::from_string.
 
bool is_valid () const
 Verify that the instance contains non-zero information.
 
bool operator!= (const GenPdfInfo &) const
 Operator !=.
 
bool operator== (const GenPdfInfo &) const
 Operator ==.
 
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.
 
bool to_string (std::string &att) const override
 Implementation of Attribute::to_string.
 
- Public Member Functions inherited from HepMC3::Attribute
 Attribute ()
 Default constructor.
 
virtual ~Attribute ()
 Virtual destructor.
 
const GenEventevent () const
 
virtual bool init ()
 Optionally initialize the attribute after from_string.
 
virtual bool init (const GenRunInfo &)
 Optionally initialize the attribute after from_string.
 
bool is_parsed () const
 Check if this attribute is parsed.
 
GenParticlePtr particle ()
 
ConstGenParticlePtr particle () const
 
const std::string & unparsed_string () const
 Get unparsed string.
 
GenVertexPtr vertex ()
 
ConstGenVertexPtr vertex () const
 

Public Attributes

int parton_id [2]
 Parton PDG ID.
 
int pdf_id [2]
 LHAPDF ID code.
 
double scale
 Factorisation scale (in GEV)
 
double x [2]
 Parton momentum fraction.
 
double xf [2]
 PDF value.
 

Additional Inherited Members

- Protected Member Functions inherited from HepMC3::Attribute
 Attribute (const std::string &st)
 Protected constructor that allows to set string.
 
void set_is_parsed (bool flag)
 Set is_parsed flag.
 
void set_unparsed_string (const std::string &st)
 Set unparsed string.
 

Detailed Description

Stores additional information about PDFs.

This is an example of event attribute used to store PDF-related information

Note
Input parton flavour codes id1 & id2 are expected to obey the PDG code conventions, especially g = 21.
The contents of pdf1 and pdf2 are expected to be x*f(x). The LHAPDF set ids are the entries in the first column of https://lhapdf.hepforge.org/pdfsets.html

Definition at line 32 of file GenPdfInfo.h.

Member Function Documentation

◆ from_string()

bool HepMC3::GenPdfInfo::from_string ( const std::string & att)
overridevirtual

Implementation of Attribute::from_string.

Implements HepMC3::Attribute.

◆ to_string()

bool HepMC3::GenPdfInfo::to_string ( std::string & att) const
overridevirtual

Implementation of Attribute::to_string.

Implements HepMC3::Attribute.

Member Data Documentation

◆ parton_id

int HepMC3::GenPdfInfo::parton_id[2]

Parton PDG ID.

Definition at line 38 of file GenPdfInfo.h.

◆ pdf_id

int HepMC3::GenPdfInfo::pdf_id[2]

LHAPDF ID code.

Definition at line 39 of file GenPdfInfo.h.

◆ scale

double HepMC3::GenPdfInfo::scale

Factorisation scale (in GEV)

Definition at line 40 of file GenPdfInfo.h.

◆ x

double HepMC3::GenPdfInfo::x[2]

Parton momentum fraction.

Definition at line 41 of file GenPdfInfo.h.

◆ xf

double HepMC3::GenPdfInfo::xf[2]

PDF value.

Definition at line 42 of file GenPdfInfo.h.


The documentation for this class was generated from the following file: