Changes in external/fastjet/PseudoJet.cc [1d208a2:b7b836a] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/PseudoJet.cc
r1d208a2 rb7b836a 1 1 //FJSTARTHEADER 2 // $Id: PseudoJet.cc 4 100 2016-03-15 20:50:22Z salam $3 // 4 // Copyright (c) 2005-201 4, Matteo Cacciari, Gavin P. Salam and Gregory Soyez2 // $Id: PseudoJet.cc 4354 2018-04-22 07:12:37Z salam $ 3 // 4 // Copyright (c) 2005-2018, Matteo Cacciari, Gavin P. Salam and Gregory Soyez 5 5 // 6 6 //---------------------------------------------------------------------- … … 203 203 //---------------------------------------------------------------------- 204 204 /// multiply the jet's momentum by the coefficient 205 voidPseudoJet::operator*=(double coeff) {205 PseudoJet & PseudoJet::operator*=(double coeff) { 206 206 // operator*= aims to maintain the rapidity and azimuth 207 207 // for the PseudoJet; if they have already been evaluated … … 218 218 _kt2*= coeff*coeff; 219 219 // phi and rap are unchanged 220 return *this; 220 221 } 221 222 222 223 //---------------------------------------------------------------------- 223 224 /// divide the jet's momentum by the coefficient 224 voidPseudoJet::operator/=(double coeff) {225 PseudoJet & PseudoJet::operator/=(double coeff) { 225 226 (*this) *= 1.0/coeff; 227 return *this; 226 228 } 227 229 … … 229 231 //---------------------------------------------------------------------- 230 232 /// add the other jet's momentum to this jet 231 voidPseudoJet::operator+=(const PseudoJet & other_jet) {233 PseudoJet & PseudoJet::operator+=(const PseudoJet & other_jet) { 232 234 _px += other_jet._px; 233 235 _py += other_jet._py; … … 235 237 _E += other_jet._E ; 236 238 _finish_init(); // we need to recalculate phi,rap,kt2 239 return *this; 237 240 } 238 241 … … 240 243 //---------------------------------------------------------------------- 241 244 /// subtract the other jet's momentum from this jet 242 voidPseudoJet::operator-=(const PseudoJet & other_jet) {245 PseudoJet & PseudoJet::operator-=(const PseudoJet & other_jet) { 243 246 _px -= other_jet._px; 244 247 _py -= other_jet._py; … … 246 249 _E -= other_jet._E ; 247 250 _finish_init(); // we need to recalculate phi,rap,kt2 251 return *this; 248 252 } 249 253
Note:
See TracChangeset
for help on using the changeset viewer.