ParticleFinder.cc
Go to the documentation of this file.
00001 // -*- C++ -*- 00002 #include "Rivet/Projections/ParticleFinder.hh" 00003 00004 namespace Rivet { 00005 00006 /// @todo HOW DO WE COMPARE CUTS OBJECTS? 00007 int ParticleFinder::compare(const Projection& p) const { 00008 const ParticleFinder& other = dynamic_cast<const ParticleFinder&>(p); 00009 00010 //MSG_TRACE("FS::compare: " << 1 << " " << this << " " << &p); 00011 // std::vector<std::pair<double, double> > eta1(_etaRanges); 00012 //std::vector<std::pair<double, double> > eta2(other._etaRanges); 00013 //std::sort(eta1.begin(), eta1.end()); 00014 //std::sort(eta2.begin(), eta2.end()); 00015 00016 //MSG_TRACE("FS::compare: " << 2 << " " << this << " " << &p); 00017 //if (eta1 < eta2) return ORDERED; 00018 //else if (eta2 < eta1) return UNORDERED; 00019 00020 //MSG_TRACE("FS::compare: " << 3 << " " << this << " " << &p); 00021 //return cmp(_ptmin, other._ptmin); 00022 return _cuts == other._cuts ? EQUIVALENT : UNDEFINED; 00023 } 00024 00025 // void ParticleFinder::project(const Event& e) { 00026 // _theParticles.clear(); 00027 // } 00028 00029 00030 } Generated on Thu Mar 10 2016 08:29:52 for The Rivet MC analysis system by ![]() |