hepmc - Diff between revs 209 and 235
Subversion Repositories:
| Rev 209 | Rev 235 | |||
|---|---|---|---|---|
| Line 107... | Line 107... | |||
| 107 | 107 | |||
| 108 | void setPx(double x) { m_x=x; } //!< set px | 108 | void setPx(double x) { m_x=x; } //!< set px | |
| 109 | void setPy(double y) { m_y=y; } //!< set py | 109 | void setPy(double y) { m_y=y; } //!< set py | |
| 110 | void setPz(double z) { m_z=z; } //!< set pz | 110 | void setPz(double z) { m_z=z; } //!< set pz | |
| 111 | void setE(double t) { m_t=t; } //!< set E | 111 | void setE(double t) { m_t=t; } //!< set E | |
| 112 | - | |||
| 113 | // simple math | - | ||
| 114 | FourVector operator + (const FourVector &) const; //!< addition | - | ||
| 115 | FourVector & operator += (const FourVector &); //!< addition | - | ||
| 116 | FourVector operator - (const FourVector &) const; //!< subtraction | - | ||
| 117 | FourVector & operator -= (const FourVector &); //!< subtraction | - | ||
| 118 | FourVector operator - () const; //!< unary minus | - | ||
| 119 | FourVector & operator *= (double); //!< scale | - | ||
| 120 | 112 | |||
| 121 | private: | 113 | private: | |
| 122 | 114 | |||
| 123 | double m_x; | 115 | double m_x; | |
| 124 | double m_y; | 116 | double m_y; | |
| Line 184... | Line 176... | |||
| 184 | 176 | |||
| 185 | ThreeVector & operator = (const ThreeVector &); //!< make a copy | 177 | ThreeVector & operator = (const ThreeVector &); //!< make a copy | |
| 186 | 178 | |||
| 187 | bool operator == (const ThreeVector &) const; //!< equality | 179 | bool operator == (const ThreeVector &) const; //!< equality | |
| 188 | bool operator != (const ThreeVector &) const; //!< inequality | 180 | bool operator != (const ThreeVector &) const; //!< inequality | |
| 189 | - | |||
| 190 | // simple math | - | ||
| 191 | ThreeVector operator + (const ThreeVector &) const; //!< addition | - | ||
| 192 | ThreeVector & operator += (const ThreeVector &); //!< addition | - | ||
| 193 | ThreeVector operator - (const ThreeVector &) const; //!< subtraction | - | ||
| 194 | ThreeVector & operator -= (const ThreeVector &); //!< subtraction | - | ||
| 195 | ThreeVector operator - () const; //!< unary minus | - | ||
| 196 | ThreeVector & operator *= (double); //!< scale | - | ||
| 197 | 181 | |||
| 198 | private: | 182 | private: | |
| 199 | 183 | |||
| 200 | double m_x; | 184 | double m_x; | |
| 201 | double m_y; | 185 | double m_y; | |
