21#ifdef HEPMC3_NO_DEPRECATED
25 std::istringstream is(att);
28 if ( att[0] !=
'v' ) {
53 for (
int i = 0; i < N; ++i ) {
58 for (
int i = 0; i < N; ++i ) {
67 std::ostringstream os;
69#ifndef HEPMC3_NO_DEPRECATED
75 os << std::setprecision(8)
78#ifndef HEPMC3_NO_DEPRECATED
84#ifndef HEPMC3_NO_DEPRECATED
94 os <<
" " << it->first <<
" " << it->second;
97 for ( std::map<int, double>::const_iterator it =
eccentricities.begin();
99 os <<
" " << it->first <<
" " << it->second;
107#ifndef HEPMC3_NO_DEPRECATED
110 return ( memcmp( (
void*)
this, (
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.
Stores additional information about Heavy Ion generator.
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.
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 &ucent=0.)
Set all fields.
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.
bool operator!=(const GenHeavyIon &) const
Operator !=.
int Ncoll
the number of inelastic nucleon-nucleon collisions.
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.