|
[Rivet-svn] r2065 - trunk/src/Analysesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Nov 17 10:04:45 GMT 2009
Author: hoeth Date: Tue Nov 17 10:04:45 2009 New Revision: 2065 Log: cosmetic changes Modified: trunk/src/Analyses/STAR_2006_S6500200.cc Modified: trunk/src/Analyses/STAR_2006_S6500200.cc ============================================================================== --- trunk/src/Analyses/STAR_2006_S6500200.cc Tue Nov 17 09:59:51 2009 (r2064) +++ trunk/src/Analyses/STAR_2006_S6500200.cc Tue Nov 17 10:04:45 2009 (r2065) @@ -25,6 +25,7 @@ ChargedFinalState bbc2( 3.3, 5.0, 0.0*GeV); // beam-beam-counter trigger addProjection(bbc1, "BBC1"); addProjection(bbc2, "BBC2"); + IdentifiedFinalState pionfs(-2.5, 2.5, 0.3*GeV); IdentifiedFinalState protonfs(-2.5, 2.5, 0.4*GeV); pionfs.acceptIdPair(PIPLUS); @@ -41,8 +42,6 @@ /// Do the analysis void analyze(const Event& event) { - const double weight = event.weight(); - const ChargedFinalState& bbc1 = applyProjection<ChargedFinalState>(event, "BBC1"); const ChargedFinalState& bbc2 = applyProjection<ChargedFinalState>(event, "BBC2"); if (bbc1.size()<1 || bbc2.size()<1) { @@ -50,8 +49,9 @@ vetoEvent; } + const double weight = event.weight(); + const IdentifiedFinalState& pionfs = applyProjection<IdentifiedFinalState>(event, "PIONFS"); - const IdentifiedFinalState& protonfs = applyProjection<IdentifiedFinalState>(event, "PROTONFS"); foreach (const Particle& p, pionfs.particles()) { if (fabs(p.momentum().rapidity()) < 0.5) { const double pT = p.momentum().pT() / GeV; @@ -63,6 +63,8 @@ } } } + + const IdentifiedFinalState& protonfs = applyProjection<IdentifiedFinalState>(event, "PROTONFS"); foreach (const Particle& p, protonfs.particles()) { if (fabs(p.momentum().rapidity()) < 0.5) { const double pT = p.momentum().pT() / GeV;
More information about the Rivet-svn mailing list |