|
[Rivet-svn] r2666 - trunk/include/Rivet/Toolsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Aug 19 10:53:42 BST 2010
Author: fsiegert Date: Thu Aug 19 10:53:42 2010 New Revision: 2666 Log: Either I fail to see some non-obvious explanation, or this was wrong. Modified: trunk/include/Rivet/Tools/ParticleIdUtils.hh Modified: trunk/include/Rivet/Tools/ParticleIdUtils.hh ============================================================================== --- trunk/include/Rivet/Tools/ParticleIdUtils.hh Wed Aug 18 17:37:15 2010 (r2665) +++ trunk/include/Rivet/Tools/ParticleIdUtils.hh Thu Aug 19 10:53:42 2010 (r2666) @@ -87,8 +87,8 @@ /// return 3 times the charge (3 x quark charge is an int) int threeCharge( const int & pid ); - /// return 3 times the charge (3 x quark charge is an int) - inline double charge( const int & pid ) { return 3.0 * threeCharge(pid); } + /// return the charge + inline double charge( const int & pid ) { return threeCharge(pid)/3.0; } //@} @@ -156,8 +156,8 @@ /// return 3 times the charge (3 x quark charge is an int) inline int threeCharge( const Particle& p ) { return threeCharge(p.pdgId()); } - /// return 3 times the charge (3 x quark charge is an int) - inline double charge( const Particle& p ) { return 3.0 * threeCharge(p); } + /// return the charge + inline double charge( const Particle& p ) { return threeCharge(p)/3.0; } //@}
More information about the Rivet-svn mailing list |