Fork me on GitHub

Ignore:
Timestamp:
Nov 2, 2011, 5:39:26 PM (13 years ago)
Author:
cp3-support
Message:

upgrade HepMC to version 2.06.05

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/HepMC/interface/HeavyIon.h

    r349 r572  
    112112    float sigma_inel_NN()                const { return m_sigma_inel_NN; }
    113113
     114    /// verify that the instance contains non-zero information
     115    bool  is_valid()                     const;
     116
    114117  // ---  mutators:
    115118    /// set number of hard scatterings
     
    158161};
    159162
     163// Free Functions
     164
     165/// Write the contents of HeavyIon to an output stream.
     166std::ostream & operator << (std::ostream &, HeavyIon const *);
     167/// Read the contents of HeavyIon from an input stream.
     168std::istream & operator >> (std::istream &, HeavyIon *);
     169
    160170// inline operators
    161171  /// Required members are
     
    248258}
    249259
     260inline 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
    250278} // HepMC
    251279
Note: See TracChangeset for help on using the changeset viewer.