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/SimpleVector.icc

    r349 r572  
    4949}
    5050
    51 inline double  FourVector::mag() const {
    52 return std::sqrt( m_x*m_x + m_y*m_y + m_z*m_z );
    53 }
    54 
    5551inline double FourVector::perp2() const { return m_x*m_x + m_y*m_y; }
    5652
     
    7874
    7975inline double FourVector::pseudoRapidity() const {
    80   double m = mag();
     76  double m = std::sqrt( m_x*m_x + m_y*m_y + m_z*m_z );
    8177  if ( m==  0   ) return  0.0;   
    8278  if ( m==  z() ) return  1.0E72;
     
    106102}
    107103
    108 inline double  ThreeVector::mag() const {
     104inline double ThreeVector::r()    const {
    109105return std::sqrt( m_x*m_x + m_y*m_y + m_z*m_z );
    110106}
    111 
    112 inline double ThreeVector::r()    const { return mag(); }
    113107
    114108inline void ThreeVector::set(double x, double y, double z) {
     
    125119
    126120inline void ThreeVector::setTheta(double th) {
    127   double ma   = mag();
     121  double ma   = r();
    128122  double ph   = phi();
    129123  setX(ma*std::sin(th)*std::cos(ph));
Note: See TracChangeset for help on using the changeset viewer.