1 |
|
#include "PassHLT.h" |
2 |
|
#include "HiggsAnaDefs.hh" |
3 |
|
|
4 |
+ |
bool passHLTSingleMuon(uint64_t triggerBits) { |
5 |
+ |
if ( triggerBits & kHLT_Mu8 || |
6 |
+ |
triggerBits & kHLT_Mu12 || |
7 |
+ |
triggerBits & kHLT_Mu15 || |
8 |
+ |
triggerBits & kHLT_Mu24 || |
9 |
+ |
triggerBits & kHLT_Mu30 ) |
10 |
+ |
return true; |
11 |
+ |
return false; |
12 |
+ |
} |
13 |
+ |
|
14 |
|
bool passHLT(uint64_t triggerBits, unsigned runNum, unsigned channel) { |
15 |
|
|
16 |
|
bool isMC = false; |
32 |
|
if ( triggerBits & kHLT_Ele17_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL_Ele8_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL ) |
33 |
|
pass = true; |
34 |
|
} |
35 |
< |
if (runNum >= 172799 ) { // there's 58 pb-1 that had a prescale issue, need to check the actual run range |
35 |
> |
|
36 |
> |
// 58 pb-1 had a prescale issue, run range is 171050-171578 |
37 |
> |
// they allow electron evts to pass kHLT_Ele17_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC8_Mass30 in this period |
38 |
> |
if (runNum >= 171050 && runNum <= 171578 ) { |
39 |
|
if( triggerBits & kHLT_Ele17_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC8_Mass30 ) |
40 |
|
pass=true; |
41 |
|
} |
42 |
< |
// } |
42 |
> |
|
43 |
|
|
44 |
|
// |
45 |
|
// Muons |
57 |
|
pass = true; |
58 |
|
} |
59 |
|
if( runNum >= 165088 ) { // PRv4 and on .... |
60 |
< |
if( triggerBits & kHLT_Mu17_Mu8 ) |
60 |
> |
if( triggerBits & kHLT_Mu13_Mu8 ) |
61 |
|
pass = true; |
62 |
|
} |
63 |
|
// } |