|
[Rivet-svn] r2531 - trunk/src/Analysesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgFri Jun 25 20:39:46 BST 2010
Author: buckley Date: Fri Jun 25 20:39:57 2010 New Revision: 2531 Log: A couple of tweaks introduced when debugging H++ Modified: trunk/src/Analyses/DELPHI_1996_S3430090.cc Modified: trunk/src/Analyses/DELPHI_1996_S3430090.cc ============================================================================== --- trunk/src/Analyses/DELPHI_1996_S3430090.cc Fri Jun 25 20:38:58 2010 (r2530) +++ trunk/src/Analyses/DELPHI_1996_S3430090.cc Fri Jun 25 20:39:57 2010 (r2531) @@ -221,10 +221,10 @@ double Evis = 0.0; double Evis2 = 0.0; getLog() << Log::DEBUG << "About to iterate over charged FS particles" << endl; - for (ParticleVector::const_iterator p = fs.particles().begin(); p != fs.particles().end(); ++p) { + foreach (const Particle& p, fs.particles()) { // Get momentum and energy of each particle. - const Vector3 mom3 = p->momentum().vector3(); - const double energy = p->momentum().E(); + const Vector3 mom3 = p.momentum().vector3(); + const double energy = p.momentum().E(); Evis += energy; // Scaled momenta. @@ -254,6 +254,7 @@ const double rapidityS = 0.5 * std::log((energy + momS) / (energy - momS)); _histRapidityT->fill(rapidityT, weight); _histRapidityS->fill(rapidityS, weight); + //cerr << fabs(rapidityT) << " " << scaledMom/GeV << endl; } Evis2 = Evis*Evis;
More information about the Rivet-svn mailing list |