[Rivet-svn] r2493 - trunk/src/Projections

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Jun 21 17:37:37 BST 2010


Author: hoeth
Date: Mon Jun 21 17:37:46 2010
New Revision: 2493

Log:
hopefully fixing #390

Modified:
   trunk/src/Projections/VetoedFinalState.cc

Modified: trunk/src/Projections/VetoedFinalState.cc
==============================================================================
--- trunk/src/Projections/VetoedFinalState.cc	Mon Jun 21 16:32:41 2010	(r2492)
+++ trunk/src/Projections/VetoedFinalState.cc	Mon Jun 21 17:37:46 2010	(r2493)
@@ -11,19 +11,8 @@
   int VetoedFinalState::compare(const Projection& p) const {
     const PCmp fscmp = mkNamedPCmp(p, "FS");
     if (fscmp != EQUIVALENT) return fscmp;
+    if (_vetofsnames.size() != 0) return UNDEFINED;
     const VetoedFinalState& other = dynamic_cast<const VetoedFinalState&>(p);
-    int vfssize = cmp(_vetofsnames.size(), other._vetofsnames.size());
-    if (vfssize != EQUIVALENT) return vfssize;
-    //if the size is the same retrieve the FS projections, store them in two ordered set,
-    //compare the sets element by element
-    set<const Projection*> vfs;
-    set<const Projection*> other_vfs;
-    foreach (const string& ifs, _vetofsnames) {
-      vfs.insert(&(getProjection(ifs)));
-      other_vfs.insert(&(other.getProjection(ifs)));
-    }
-    int isetcmp = cmp(vfs, other_vfs);
-    if (isetcmp != EQUIVALENT) return isetcmp;
     return \
       cmp(_vetoCodes, other._vetoCodes) ||
       cmp(_compositeVetoes, other._compositeVetoes) ||


More information about the Rivet-svn mailing list