ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Selection/src/PassHLT.cc
Revision: 1.6
Committed: Mon Oct 17 16:23:43 2011 UTC (13 years, 7 months ago) by khahn
Content type: text/plain
Branch: MAIN
CVS Tags: synched, AN490
Changes since 1.5: +10 -0 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 khahn 1.1 #include "PassHLT.h"
2 dkralph 1.3 #include "HiggsAnaDefs.hh"
3 khahn 1.1
4 khahn 1.6 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 khahn 1.1 bool passHLT(uint64_t triggerBits, unsigned runNum, unsigned channel) {
15    
16     bool isMC = false;
17     bool pass = false;
18    
19     //
20     // Electrons
21     //
22     // if( channel == 0 || channel == 2 ) {
23 khahn 1.2 // if ( runNum >= 160404 && runNum <= 167151 ) { // may10 & PRv4
24     if(runNum < 160404) {
25     pass = true; //punt for now, Si doesn't have the needed triggers
26     }
27     if ( runNum >= 160404 && runNum <= 170826 ) { // may10 & PRv4
28     if ( triggerBits & kHLT_Ele17_CaloIdL_CaloIsoVL_Ele8_CaloIdL_CaloIsoVL)
29     pass = true;
30     }
31     if ( runNum > 170826 ) { // aug05 & PRv6
32     if ( triggerBits & kHLT_Ele17_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL_Ele8_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL )
33     pass = true;
34     }
35 khahn 1.4
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 khahn 1.2 if( triggerBits & kHLT_Ele17_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC8_Mass30 )
40     pass=true;
41     }
42 khahn 1.4
43 khahn 1.2
44 khahn 1.1 //
45     // Muons
46     //
47 khahn 1.2 // if( channel == 1 || channel == 2 ){
48     if(runNum < 160404) {
49     pass = true; //punt for now, Si doesn't have the needed triggers
50     }
51     if( runNum >= 136033 && runNum <= 149942 ) { // april11 (2010)
52     // don't have DoubleMu3 in the ntuple
53     // if( triggerBits & kHLT_DoubleMu3 ) pass = true;
54     }
55     if( runNum >= 160404 && runNum <= 163869 ) { // may10
56 khahn 1.1 if( triggerBits & kHLT_DoubleMu7 )
57     pass = true;
58 khahn 1.2 }
59     if( runNum >= 165088 ) { // PRv4 and on ....
60 khahn 1.5 if( triggerBits & kHLT_Mu13_Mu8 )
61 khahn 1.2 pass = true;
62     }
63     // }
64 khahn 1.1
65     return pass;
66     };
67    
68    
69    
70    
71     bool passHLTMC(uint64_t triggerBits) {
72    
73     bool pass=false;
74 dkralph 1.3 if( triggerBits & kHLT_DoubleMu7 // ||
75     // triggerBits & kHLT_DoubleMu6 ||
76     // triggerBits & kHLT_Mu5
77     ) {
78 khahn 1.1 pass = true;
79     } else if ( triggerBits & kHLT_Ele17_CaloIdL_CaloIsoVL_Ele8_CaloIdL_CaloIsoVL ||
80     triggerBits & kHLT_Ele27_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT ||
81     triggerBits & kHLT_Ele8 ||
82     triggerBits & kHLT_Ele8_CaloIdL_CaloIsoVL ||
83     triggerBits & kHLT_Ele17_CaloIdL_CaloIsoVL ||
84     triggerBits & kHLT_Ele8_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL ) {
85     pass = true;
86     }
87     return pass;
88     };
89    
90