hepmc - Diff between revs 147 and 209

Subversion Repositories:
Rev:
Show entire file - Ignore whitespace
Rev 147 Rev 209
Line 83... Line 83...
83 if ( m== -z() ) return -1.0E72; 83 if ( m== -z() ) return -1.0E72;
84 return 0.5*log( (m+z())/(m-z()) ); 84 return 0.5*log( (m+z())/(m-z()) );
85 } 85 }
86 86
87 inline double FourVector::eta() const { return pseudoRapidity();} 87 inline double FourVector::eta() const { return pseudoRapidity();}
-   88
-   89 inline FourVector FourVector::operator + (const FourVector & q) const {
-   90 return FourVector(x()+q.x(), y()+q.y(), z()+q.z(), t()+q.t());
-   91 }
-   92
-   93 inline FourVector & FourVector::operator += (const FourVector & q) {
-   94 m_x += q.x();
-   95 m_y += q.y();
-   96 m_z += q.z();
-   97 m_t += q.t();
-   98 return *this;
-   99 }
-   100
-   101 inline FourVector FourVector::operator - (const FourVector & q) const {
-   102 return FourVector(x()-q.x(), y()-q.y(), z()-q.z(), t()-q.t());
-   103 }
-   104
-   105 inline FourVector & FourVector::operator -= (const FourVector & q) {
-   106 m_x -= q.x();
-   107 m_y -= q.y();
-   108 m_z -= q.z();
-   109 m_t -= q.t();
-   110 return *this;
-   111 }
-   112
-   113 inline FourVector FourVector::operator - () const {
-   114 return FourVector(-x(), -y(), -z(), -t());
-   115 }
-   116
-   117 inline FourVector& FourVector::operator *= (double a) {
-   118 m_x *= a;
-   119 m_y *= a;
-   120 m_z *= a;
-   121 m_t *= a;
-   122 return *this;
-   123 }
88 124
89 125
90 ////////////////////////////////////////////////////////////////////////// 126 //////////////////////////////////////////////////////////////////////////
91 // ThreeVector inline methods 127 // ThreeVector inline methods
92 ////////////////////////////////////////////////////////////////////////// 128 //////////////////////////////////////////////////////////////////////////
Line 147... Line 183...
147 return (v.x()==x() && v.y()==y() && v.z()==z()) ? true : false; 183 return (v.x()==x() && v.y()==y() && v.z()==z()) ? true : false;
148 } 184 }
149 185
150 inline bool ThreeVector::operator != (const ThreeVector& v) const { 186 inline bool ThreeVector::operator != (const ThreeVector& v) const {
151 return (v.x()!=x() || v.y()!=y() || v.z()!=z()) ? true : false; 187 return (v.x()!=x() || v.y()!=y() || v.z()!=z()) ? true : false;
-   188 }
-   189
-   190 inline ThreeVector ThreeVector::operator + (const ThreeVector & q) const {
-   191 return ThreeVector(x()+q.x(), y()+q.y(), z()+q.z());
-   192 }
-   193
-   194 inline ThreeVector & ThreeVector::operator += (const ThreeVector & q) {
-   195 m_x += q.x();
-   196 m_y += q.y();
-   197 m_z += q.z();
-   198 return *this;
-   199 }
-   200
-   201 inline ThreeVector ThreeVector::operator - (const ThreeVector & q) const {
-   202 return ThreeVector(x()-q.x(), y()-q.y(), z()-q.z());
-   203 }
-   204
-   205 inline ThreeVector & ThreeVector::operator -= (const ThreeVector & q) {
-   206 m_x -= q.x();
-   207 m_y -= q.y();
-   208 m_z -= q.z();
-   209 return *this;
-   210 }
-   211
-   212 inline ThreeVector ThreeVector::operator - () const {
-   213 return ThreeVector(-x(), -y(), -z());
-   214 }
-   215
-   216 inline ThreeVector& ThreeVector::operator *= (double a) {
-   217 m_x *= a;
-   218 m_y *= a;
-   219 m_z *= a;
-   220 return *this;
152 } 221 }
153 222
154 } // HepMC 223 } // HepMC