ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Selection/src/PassHLT.cc
Revision: 1.7
Committed: Tue May 1 23:39:16 2012 UTC (13 years ago) by khahn
Content type: text/plain
Branch: MAIN
Changes since 1.6: +15 -34 lines
Log Message:
porting trigger stuff

File Contents

# Content
1 #include "TriggerUtilsBits.h"
2 #include <bitset>
3
4
5 bool passHLTSingleMuon(std::bitset<TRIGGER_BIG_NUMBER> triggerBits) {
6 if ( triggerBits.test(kHLT_Mu8) ||
7 triggerBits.test(kHLT_Mu12) ||
8 triggerBits.test(kHLT_Mu15) ||
9 triggerBits.test(kHLT_Mu24) ||
10 triggerBits.test(kHLT_Mu30) )
11 return true;
12 return false;
13 }
14
15 bool passHLT(std::bitset<TRIGGER_BIG_NUMBER> triggerBits, unsigned runNum, unsigned channel) {
16
17 bool isMC = false;
18 bool pass = false;
19
20 //
21 // Electrons
22 //
23 // if( channel == 0 || channel == 2 ) {
24 // if ( runNum >= 160404 && runNum <= 167151 ) { // may10 & PRv4
25 if(runNum < 160404) {
26 pass = true; //punt for now, Si doesn't have the needed triggers
27 }
28 if ( runNum >= 160404 && runNum <= 170826 ) { // may10 & PRv4
29 if ( triggerBits.test(kHLT_Ele17_CaloIdL_CaloIsoVL_Ele8_CaloIdL_CaloIsoVL))
30 pass = true;
31 }
32 if ( runNum > 170826 ) { // aug05 & PRv6
33 if ( triggerBits.test(kHLT_Ele17_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL_Ele8_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL) )
34 pass = true;
35 }
36
37 // 58 pb-1 had a prescale issue, run range is 171050-171578
38 // they allow electron evts to pass kHLT_Ele17_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC8_Mass30 in this period
39 if (runNum >= 171050 && runNum <= 171578 ) {
40 if( triggerBits.test(kHLT_Ele17_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC8_Mass30) )
41 pass=true;
42 }
43
44
45 //
46 // Muons
47 //
48 // if( channel == 1 || channel == 2 ){
49 if(runNum < 160404) {
50 pass = true; //punt for now, Si doesn't have the needed triggers
51 }
52 if( runNum >= 136033 && runNum <= 149942 ) { // april11 (2010)
53 // don't have DoubleMu3 in the ntuple
54 // if( triggerBits & kHLT_DoubleMu3 ) pass = true;
55 }
56 if( runNum >= 160404 && runNum <= 163869 ) { // may10
57 if( triggerBits.test(kHLT_DoubleMu7) )
58 pass = true;
59 }
60 if( runNum >= 165088 ) { // PRv4 and on ....
61 if( triggerBits.test(kHLT_Mu13_Mu8) )
62 pass = true;
63 }
64 // }
65
66 return pass;
67 };
68
69
70
71