ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Selection/src/PassHLT.cc
Revision: 1.5
Committed: Thu Sep 15 20:44:10 2011 UTC (13 years, 8 months ago) by khahn
Content type: text/plain
Branch: MAIN
Changes since 1.4: +1 -5 lines
Log Message:
doublemu 17_8 -> 13_8

File Contents

# User Rev Content
1 khahn 1.1 #include "PassHLT.h"
2 dkralph 1.3 #include "HiggsAnaDefs.hh"
3 khahn 1.1
4     bool passHLT(uint64_t triggerBits, unsigned runNum, unsigned channel) {
5    
6     bool isMC = false;
7     bool pass = false;
8    
9     //
10     // Electrons
11     //
12     // if( channel == 0 || channel == 2 ) {
13 khahn 1.2 // if ( runNum >= 160404 && runNum <= 167151 ) { // may10 & PRv4
14     if(runNum < 160404) {
15     pass = true; //punt for now, Si doesn't have the needed triggers
16     }
17     if ( runNum >= 160404 && runNum <= 170826 ) { // may10 & PRv4
18     if ( triggerBits & kHLT_Ele17_CaloIdL_CaloIsoVL_Ele8_CaloIdL_CaloIsoVL)
19     pass = true;
20     }
21     if ( runNum > 170826 ) { // aug05 & PRv6
22     if ( triggerBits & kHLT_Ele17_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL_Ele8_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL )
23     pass = true;
24     }
25 khahn 1.4
26     // 58 pb-1 had a prescale issue, run range is 171050-171578
27     // they allow electron evts to pass kHLT_Ele17_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC8_Mass30 in this period
28     if (runNum >= 171050 && runNum <= 171578 ) {
29 khahn 1.2 if( triggerBits & kHLT_Ele17_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC8_Mass30 )
30     pass=true;
31     }
32 khahn 1.4
33 khahn 1.2
34 khahn 1.1 //
35     // Muons
36     //
37 khahn 1.2 // if( channel == 1 || channel == 2 ){
38     if(runNum < 160404) {
39     pass = true; //punt for now, Si doesn't have the needed triggers
40     }
41     if( runNum >= 136033 && runNum <= 149942 ) { // april11 (2010)
42     // don't have DoubleMu3 in the ntuple
43     // if( triggerBits & kHLT_DoubleMu3 ) pass = true;
44     }
45     if( runNum >= 160404 && runNum <= 163869 ) { // may10
46 khahn 1.1 if( triggerBits & kHLT_DoubleMu7 )
47     pass = true;
48 khahn 1.2 }
49     if( runNum >= 165088 ) { // PRv4 and on ....
50 khahn 1.5 if( triggerBits & kHLT_Mu13_Mu8 )
51 khahn 1.2 pass = true;
52     }
53     // }
54 khahn 1.1
55     return pass;
56     };
57    
58    
59    
60    
61     bool passHLTMC(uint64_t triggerBits) {
62    
63     bool pass=false;
64 dkralph 1.3 if( triggerBits & kHLT_DoubleMu7 // ||
65     // triggerBits & kHLT_DoubleMu6 ||
66     // triggerBits & kHLT_Mu5
67     ) {
68 khahn 1.1 pass = true;
69     } else if ( triggerBits & kHLT_Ele17_CaloIdL_CaloIsoVL_Ele8_CaloIdL_CaloIsoVL ||
70     triggerBits & kHLT_Ele27_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT ||
71     triggerBits & kHLT_Ele8 ||
72     triggerBits & kHLT_Ele8_CaloIdL_CaloIsoVL ||
73     triggerBits & kHLT_Ele17_CaloIdL_CaloIsoVL ||
74     triggerBits & kHLT_Ele8_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL ) {
75     pass = true;
76     }
77     return pass;
78     };
79    
80