HadronicFinalState.cc
Go to the documentation of this file.
00001 // -*- C++ -*- 00002 #include "Rivet/Projections/HadronicFinalState.hh" 00003 00004 namespace Rivet { 00005 00006 00007 int HadronicFinalState::compare(const Projection& p) const { 00008 return FinalState::compare(p); 00009 } 00010 00011 00012 bool hadronFilter(const Particle& p) { 00013 return ! PID::isHadron(p.pdgId()); 00014 } 00015 00016 00017 void HadronicFinalState::project(const Event& e) { 00018 const FinalState& fs = applyProjection<FinalState>(e, "FS"); 00019 _theParticles.clear(); 00020 std::remove_copy_if(fs.particles().begin(), fs.particles().end(), 00021 std::back_inserter(_theParticles), hadronFilter); 00022 MSG_DEBUG("Number of hadronic final-state particles = " 00023 << _theParticles.size()); 00024 } 00025 00026 } Generated on Thu Feb 6 2014 17:38:44 for The Rivet MC analysis system by ![]() |