ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Selection/src/PassHLT.cc
(Generate patch)

Comparing UserCode/MitHzz4l/Selection/src/PassHLT.cc (file contents):
Revision 1.6 by khahn, Mon Oct 17 16:23:43 2011 UTC vs.
Revision 1.15 by dkralph, Mon Dec 17 12:33:53 2012 UTC

# Line 1 | Line 1
1 + #include "TriggerUtilsBits.h"
2   #include "PassHLT.h"
3 < #include "HiggsAnaDefs.hh"
4 <
5 < 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;
17 <  bool pass = false;  
18 <
19 <  //
20 <  // Electrons
21 <  //  
22 <  //  if( channel == 0 || channel == 2  ) {
23 <  //    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 <
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 <
43 <  
44 <  //
45 <  // Muons
46 <  //
47 <  //  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 <      if( triggerBits & kHLT_DoubleMu7 )    
57 <        pass = true;
58 <  }
59 <  if( runNum >= 165088  ) {  // PRv4 and on ....
60 <    if( triggerBits & kHLT_Mu13_Mu8 )    
61 <      pass = true;
62 <  }
63 <  //  }
64 <  
65 <  return pass;
66 < };
67 <
68 <
69 <
70 <
71 < bool passHLTMC(uint64_t triggerBits) {
72 <
73 <  bool pass=false;
74 <  if( triggerBits & kHLT_DoubleMu7 // ||
75 <      // triggerBits & kHLT_DoubleMu6 ||
76 <      // triggerBits & kHLT_Mu5
77 <      ) {
78 <    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 <
3 > #include <assert.h>
4 > #include <bitset>
5 > #include <iostream>
6  
7 + using namespace std;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines