|
[Rivet-svn] r3607 - in trunk: . src/Analysesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Mar 15 11:21:42 GMT 2012
Author: hoeth Date: Thu Mar 15 11:21:42 2012 New Revision: 3607 Log: Fix compiler warnings in ATLAS_2011_I944826. PDG IDs usually aren't doubles. Modified: trunk/ChangeLog trunk/src/Analyses/ATLAS_2011_I944826.cc Modified: trunk/ChangeLog ============================================================================== --- trunk/ChangeLog Thu Mar 15 11:15:46 2012 (r3606) +++ trunk/ChangeLog Thu Mar 15 11:21:42 2012 (r3607) @@ -4,6 +4,7 @@ cleanup of that analysis. * New-style plugin hook in ATLAS_2011_I926145, ATLAS_2011_I944826 and ATLAS_2012_I1084540 + * Fix compiler warnings in ATLAS_2011_I944826 2012-03-07 Andy Buckley <andy.buckley at cern.ch> Modified: trunk/src/Analyses/ATLAS_2011_I944826.cc ============================================================================== --- trunk/src/Analyses/ATLAS_2011_I944826.cc Thu Mar 15 11:15:46 2012 (r3606) +++ trunk/src/Analyses/ATLAS_2011_I944826.cc Thu Mar 15 11:21:42 2012 (r3607) @@ -144,7 +144,7 @@ // Veto event also when we find less than 2 particles in the acceptance region of type 211,2212,11,13,321 int n_stable = 0; foreach (const Particle& p, cfs.particles()) { - const PdgId pid = fabs(p.pdgId()); + const PdgId pid = abs(p.pdgId()); if (pid == 11 || pid == 13 || pid == 211 || pid == 321 || pid == 2212) n_stable++; } @@ -167,7 +167,7 @@ // General particle quantities const double pT = p.momentum().pT()*GeV; const double y = p.momentum().rapidity(); - const PdgId pid = fabs(p.pdgId()); + const PdgId pid = abs(p.pdgId()); double flightd = 0.0;
More information about the Rivet-svn mailing list |