Changeset 572 in svn for trunk/Utilities/HepMC/interface/HeavyIon.h
- Timestamp:
- Nov 2, 2011, 5:39:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/HepMC/interface/HeavyIon.h
r349 r572 112 112 float sigma_inel_NN() const { return m_sigma_inel_NN; } 113 113 114 /// verify that the instance contains non-zero information 115 bool is_valid() const; 116 114 117 // --- mutators: 115 118 /// set number of hard scatterings … … 158 161 }; 159 162 163 // Free Functions 164 165 /// Write the contents of HeavyIon to an output stream. 166 std::ostream & operator << (std::ostream &, HeavyIon const *); 167 /// Read the contents of HeavyIon from an input stream. 168 std::istream & operator >> (std::istream &, HeavyIon *); 169 160 170 // inline operators 161 171 /// Required members are … … 248 258 } 249 259 260 inline bool HeavyIon::is_valid() const 261 { 262 if( m_Ncoll_hard != 0 ) return true; 263 if( m_Npart_proj != 0 ) return true; 264 if( m_Npart_targ != 0 ) return true; 265 if( m_Ncoll != 0 ) return true; 266 if( m_spectator_neutrons != 0 ) return true; 267 if( m_spectator_protons != 0 ) return true; 268 if( m_N_Nwounded_collisions != 0 ) return true; 269 if( m_Nwounded_N_collisions != 0 ) return true; 270 if( m_Nwounded_Nwounded_collisions != 0 ) return true; 271 if( m_impact_parameter != 0 ) return true; 272 if( m_event_plane_angle != 0 ) return true; 273 if( m_eccentricity != 0 ) return true; 274 if( m_sigma_inel_NN != 0 ) return true; 275 return false; 276 } 277 250 278 } // HepMC 251 279
Note:
See TracChangeset
for help on using the changeset viewer.