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
GenPdfInfo.h
1// -*- C++ -*-
2//
3// This file is part of HepMC
4// Copyright (C) 2014-2023 The HepMC collaboration (see AUTHORS for details)
5//
6#ifndef HEPMC3_GENPDFINFO_H
7#define HEPMC3_GENPDFINFO_H
27#include <iostream>
28#include "HepMC3/Attribute.h"
29
30namespace HepMC3 {
31
32class GenPdfInfo : public Attribute {
33
34//
35// Fields
36//
37public:
38 int parton_id[2];
39 int pdf_id[2];
40 double scale;
41 double x[2];
42 double xf[2];
43
44//
45// Functions
46//
47public:
49 bool from_string(const std::string &att) override;
50
52 bool to_string(std::string &att) const override;
53
55 void set( const int& parton_id1, const int& parton_id2, const double& x1, const double& x2,
56 const double& scale_in, const double& xf1, const double& xf2,
57 const int& pdf_id1 = 0, const int& pdf_id2 = 0 );
58
59 bool operator==( const GenPdfInfo& ) const;
60 bool operator!=( const GenPdfInfo& ) const;
61 bool is_valid() const;
62};
63
64} // namespace HepMC3
65
66#endif
Attribute()
Default constructor.
Definition Attribute.h:51
Stores additional information about PDFs.
Definition GenPdfInfo.h:32
bool is_valid() const
Verify that the instance contains non-zero information.
bool operator!=(const GenPdfInfo &) const
Operator !=.
double xf[2]
PDF value.
Definition GenPdfInfo.h:42
int pdf_id[2]
LHAPDF ID code.
Definition GenPdfInfo.h:39
bool to_string(std::string &att) const override
Implementation of Attribute::to_string.
bool operator==(const GenPdfInfo &) const
Operator ==.
bool from_string(const std::string &att) override
Implementation of Attribute::from_string.
int parton_id[2]
Parton PDG ID.
Definition GenPdfInfo.h:38
double x[2]
Parton momentum fraction.
Definition GenPdfInfo.h:41
double scale
Factorisation scale (in GEV)
Definition GenPdfInfo.h:40
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.