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; |
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 |
|
|
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 |
|
|