11 #include "HepMC/GenHeavyIon.h" 19 const char *cursor = att.data();
23 if( !(cursor = strchr(cursor+1,
' ')) )
return false;
26 if( !(cursor = strchr(cursor+1,
' ')) )
return false;
29 if( !(cursor = strchr(cursor+1,
' ')) )
return false;
32 if( !(cursor = strchr(cursor+1,
' ')) )
return false;
35 if( !(cursor = strchr(cursor+1,
' ')) )
return false;
38 if( !(cursor = strchr(cursor+1,
' ')) )
return false;
41 if( !(cursor = strchr(cursor+1,
' ')) )
return false;
44 if( !(cursor = strchr(cursor+1,
' ')) )
return false;
47 if( !(cursor = strchr(cursor+1,
' ')) )
return false;
50 if( !(cursor = strchr(cursor+1,
' ')) )
return false;
53 if( !(cursor = strchr(cursor+1,
' ')) )
return false;
56 if( !(cursor = strchr(cursor+1,
' ')) )
return false;
59 if( !(cursor = strchr(cursor+1,
' ')) )
return false;
68 sprintf(buf,
"%i %i %i %i %i %i %i %i %i %.8e %.8e %.8e %.8e %.8e",
90 int nnw,
int nwn,
int nwnw,
91 float im,
float pl,
float ec,
float s,
float cent ) {
109 return ( memcmp( (
void*)
this, (
void*) &a,
sizeof(
class GenHeavyIon) ) == 0 );
113 return !( a == *this );
120 if(
Ncoll != 0 )
return true;
Stores additional information about Heavy Ion generator.
int spectator_neutrons
Number of spectator neutrons.
int Nwounded_N_collisions
bool is_valid() const
Verify that the instance contains non-zero information.
int Ncoll
Number of collisions.
int Nwounded_Nwounded_collisions
void set(int nh, int np, int nt, int nc, int ns, int nsp, int nnw=0, int nwn=0, int nwnw=0, float im=0., float pl=0., float ec=0., float s=0., float cent=0.)
Set all fields.
bool operator!=(const GenHeavyIon &) const
Operator !=.
int N_Nwounded_collisions
double event_plane_angle
Event plane angle.
bool from_string(const string &att)
Implementation of Attribute::from_string.
bool operator==(const GenHeavyIon &) const
Operator ==.
int Ncoll_hard
Number of hard collisions.
int Npart_proj
Number of participating nucleons in the projectile.
bool to_string(string &att) const
Implementation of Attribute::to_string.
double centrality
Centrality.
int spectator_protons
Number of spectator protons.
double sigma_inel_NN
Assumed nucleon-nucleon cross-section.
Definition of template class SmartPointer.
double impact_parameter
Impact parameter.
double eccentricity
Eccentricity.
int Npart_targ
Number of participating nucleons in the target.