ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1RpcTriggerAnalysis/src/GoldenPattern.cc
(Generate patch)

Comparing UserCode/L1RpcTriggerAnalysis/src/GoldenPattern.cc (file contents):
Revision 1.1 by konec, Fri May 17 13:04:54 2013 UTC vs.
Revision 1.2 by konec, Mon May 20 23:27:11 2013 UTC

# Line 44 | Line 44 | double GoldenPattern::Result::norm(Golde
44   }
45  
46   bool GoldenPattern::Result::operator < (const GoldenPattern::Result &o) const {
47 <  return (value() < o.value() );
47 >  if ( *this && o) {
48 >    if (nMatchedTot() < o.nMatchedTot()) return true;
49 >    else if (nMatchedTot() == o.nMatchedTot() && value() < o.value()) return true;
50 >    else return false;
51 >  }
52 >  else if (o) {return true; }
53 >  else if (*this) { return false; }
54 >  else return false;
55 >
56 > //  return (value() < o.value() );
57 > //  return false;
58   }
59  
60   GoldenPattern::Result::operator bool() const {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines