ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FGolf/Tools/BabyDorkIdentifier.cc
(Generate patch)

Comparing UserCode/FGolf/Tools/BabyDorkIdentifier.cc (file contents):
Revision 1.1 by fgolf, Sun May 22 21:49:44 2011 UTC vs.
Revision 1.4 by fgolf, Wed Feb 8 05:44:52 2012 UTC

# Line 7 | Line 7
7   #include <math.h>
8  
9   struct BabyDorkIdentifier {
10 <    BabyDorkIdentifier (unsigned int run, unsigned int lumi, unsigned int event, float pt1, float pt2 = -999999., float pt3 = -999999.);
10 >    BabyDorkIdentifier (unsigned int run, unsigned int lumi, unsigned int event, float pt1 = -999999., float pt2 = -999999., float pt3 = -999999.);
11      unsigned int run_, lumi_, event_;
12      float pt1_, pt2_, pt3_;
13      bool operator < (const BabyDorkIdentifier &) const;
# Line 26 | Line 26 | bool BabyDorkIdentifier::operator < (con
26          return lumi_ < other.lumi_;
27      if (event_ != other.event_)
28          return event_ < other.event_;
29 < //    if (TMath::Abs(pt1_-other.pt1_) > 1e-6*fabs(pt1_))
30 < //      return pt1_ < other.pt1_;
31 < //    if (TMath::Abs(pt2_-other.pt2_) > 1e-6*fabs(pt2_))
32 < //      return pt2_ < other.pt2_;
33 < //    if (TMath::Abs(pt3_-other.pt3_) > 1e-6*fabs(pt3_))
34 < //      return pt3_ < other.pt3_;
29 >    if (TMath::Abs(pt1_-other.pt1_) > 1e-6*fabs(pt1_))
30 >      return pt1_ < other.pt1_;
31 >    if (TMath::Abs(pt2_-other.pt2_) > 1e-6*fabs(pt2_))
32 >      return pt2_ < other.pt2_;
33 >    if (TMath::Abs(pt3_-other.pt3_) > 1e-6*fabs(pt3_))
34 >      return pt3_ < other.pt3_;
35      return false;
36   }
37  
# Line 43 | Line 43 | bool BabyDorkIdentifier::operator == (co
43          return false;
44      if (event_ != other.event_)
45          return false;
46 < //    if (TMath::Abs(pt1_-other.pt1_) > 1e-6*fabs(pt1_))
47 < //        return false;
48 < //    if (TMath::Abs(pt2_-other.pt2_) > 1e-6*fabs(pt2_))
49 < //        return false;
50 < //    if (TMath::Abs(pt3_-other.pt3_) > 1e-6*fabs(pt3_))
51 < //        return false;
46 >    if (TMath::Abs(pt1_-other.pt1_) > 1e-6*fabs(pt1_))
47 >        return false;
48 >    if (TMath::Abs(pt2_-other.pt2_) > 1e-6*fabs(pt2_))
49 >        return false;
50 >    if (TMath::Abs(pt3_-other.pt3_) > 1e-6*fabs(pt3_))
51 >        return false;
52      return true;
53   }
54  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines