22#ifdef HEPMC3_NO_DEPRECATED
26 std::istringstream is(att);
29 if ( att[0] !=
'v' ) {
55 for (
int i = 0; i < N; ++i ) {
60 for (
int i = 0; i < N; ++i ) {
69 std::ostringstream os;
71#ifndef HEPMC3_NO_DEPRECATED
77 os << std::setprecision(8)
80#ifndef HEPMC3_NO_DEPRECATED
86#ifndef HEPMC3_NO_DEPRECATED
95 os <<
" " << it.first <<
" " << it.second;
99 os <<
" " << it.first <<
" " << it.second;
107#ifndef HEPMC3_NO_DEPRECATED
110 return ( memcmp(
static_cast<const void*
>(
this),
static_cast<const void*
>(&a),
sizeof(
class GenHeavyIon) ) == 0 );
114 return !( a == *this );
117void GenHeavyIon::set(
const int&nh,
const int&np,
const int&nt,
const int&nc,
const int&ns,
const int&nsp,
118 const int&nnw,
const int&nwn,
const int&nwnw,
119 const double& im,
const double& pl,
const double& ec,
const double& s,
const double& cent,
const double& usrcent) {
141 if (
Ncoll != 0 ) {
return true; }
Definition of attribute class GenHeavyIon.
int Nspec_targ_p
The number of spectator protons in the target.
int Nwounded_Nwounded_collisions
Non-diffractive or doubly diffractive collisions.
int Nwounded_N_collisions
Collisions with a diffractively excited projectile nucleon.
int Nspec_proj_n
The number of spectator neutrons in the projectile.
double impact_parameter
The impact parameter.
bool forceoldformat
force writing in old format for compatibility purposes.
std::map< int, double > eccentricities
Eccentricities.
int Nspec_proj_p
The number of spectator protons in the projectile.
double event_plane_angle
The event plane angle.
std::map< int, double > participant_plane_angles
Participant plane angles.
int Npart_proj
the number of participating nucleons in the projectile.
bool operator==(const GenHeavyIon &) const
Operator ==.
double eccentricity
The eccentricity.
double user_cent_estimate
A user defined centrality estimator.
int spectator_protons
Total number of spectator protons.
int N_Nwounded_collisions
Collisions with a diffractively excited target nucleon.
double centrality
The centrality.
bool is_valid() const
Verify that the instance contains non-zero information.
int Nspec_targ_n
The number of spectator neutrons in the target.
bool from_string(const std::string &att) override
Implementation of Attribute::from_string.
int Ncoll_hard
the number of hard nucleon-nucleon collisions.
void set(const int &nh, const int &np, const int &nt, const int &nc, const int &ns, const int &nsp, const int &nnw=0, const int &nwn=0, const int &nwnw=0, const double &im=0., const double &pl=0., const double &ec=0., const double &s=0., const double ¢=0., const double &usrcent=0.)
Set all fields.
bool operator!=(const GenHeavyIon &) const
Operator !=.
int Ncoll
the number of inelastic nucleon-nucleon collisions.
GenHeavyIon()
Empty default constructor.
int Npart_targ
the number of participating nucleons in the target.
int spectator_neutrons
Total number of spectator neutrons.
bool to_string(std::string &att) const override
Implementation of Attribute::to_string.
double sigma_inel_NN
The assumed inelastic nucleon-nucleon cross section.
std::string version()
Get the HepMC library version string.