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.10 by anlevin, Wed May 23 22:06:40 2012 UTC vs.
Revision 1.12 by dkralph, Tue Jun 19 17:11:28 2012 UTC

# Line 2 | Line 2
2   #include "PassHLT.h"
3   #include <assert.h>
4   #include <bitset>
5 + #include <iostream>
6 + using namespace std;
7  
8  
9   bool passHLTSingleMuon(std::bitset<TRIGGER_BIG_NUMBER> triggerBits) {
# Line 119 | Line 121 | bool passHLT(std::bitset<TRIGGER_BIG_NUM
121    
122    return pass;
123   };
124 + //----------------------------------------------------------------------------------------
125 + bool passHLTEMU(ControlFlags &ctrl, std::bitset<TRIGGER_BIG_NUMBER> triggerBits)
126 + //--------------------------------------------------------------------------
127 + {
128 +  if(ctrl.debug) cout << "testing bits for emu..." << endl;
129 +  bool pass = false;  
130 +  // double electron dset
131 +  if( triggerBits.test(kHLT_Ele17_CaloIdL_CaloIsoVL) )                  { if(ctrl.debug) cout << "\tpasses kHLT_Ele17_CaloIdL_CaloIsoVL" << endl;                pass = true; }
132 +  if( triggerBits.test(kHLT_Ele17_CaloIdT_CaloIsoVL_TrkIdVL_TrkIsoVL) ) { if(ctrl.debug) cout << "\tpasses kHLT_Ele17_CaloIdT_CaloIsoVL_TrkIdVL_TrkIsoVL" << endl;pass = true; }  
133 +  // single electron dset                                                
134 +  if( triggerBits.test(kHLT_Ele22_CaloIdL_CaloIsoVL) )                  { if(ctrl.debug) cout << "\tpasses kHLT_Ele22_CaloIdL_CaloIsoVL" << endl;                pass = true; }
135 +  if( triggerBits.test(kHLT_Ele27_WP80_PFMET_MT50) )                    { if(ctrl.debug) cout << "\tpasses kHLT_Ele27_WP80_PFMET_MT50" << endl;                  pass = true; }
136 +  if( triggerBits.test(kHLT_Ele27_WP80) )                               { if(ctrl.debug) cout << "\tpasses kHLT_Ele27_WP80" << endl;                             pass = true; }
137 +  // single mudset                                                        
138 +  if( triggerBits.test(kHLT_Mu12) )                                     { if(ctrl.debug) cout << "\tpasses kHLT_Mu12" << endl;                                   pass = true; }
139 +  if( triggerBits.test(kHLT_Mu15_eta2p1) )                              { if(ctrl.debug) cout << "\tpasses kHLT_Mu15_eta2p1" << endl;                            pass = true; }
140 +  if( triggerBits.test(kHLT_Mu24_eta2p1) )                              { if(ctrl.debug) cout << "\tpasses kHLT_Mu24_eta2p1" << endl;                            pass = true; }
141 +  if( triggerBits.test(kHLT_Mu24) )                                     { if(ctrl.debug) cout << "\tpasses kHLT_Mu24" << endl;                                   pass = true; }
142 +  // double mu dset                                                      
143 +  if( triggerBits.test(kHLT_Mu17) )                                     { if(ctrl.debug) cout << "\tpasses kHLT_Mu17" << endl;                                   pass = true; }
144  
145 <
146 <
125 <
145 >  return pass;
146 > }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines