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.8 by khahn, Sat May 12 03:00:15 2012 UTC vs.
Revision 1.10 by anlevin, Wed May 23 22:06:40 2012 UTC

# Line 1 | Line 1
1   #include "TriggerUtilsBits.h"
2 + #include "PassHLT.h"
3 + #include <assert.h>
4   #include <bitset>
5  
6  
# Line 16 | Line 18 | bool passHLTSingleMuon(std::bitset<TRIGG
18   // for sync ...
19   bool passHLTMC(std::bitset<TRIGGER_BIG_NUMBER> triggerBits,
20                 unsigned runNum,
21 <               unsigned channel)
21 >               unsigned channel,
22 >                                 EMCYear mc_year)
23   //--------------------------------------------------------------------------
24   {
22  bool isMC = false;
23  bool pass = false;  
25  
26 <  //
26 <  // Electrons
27 <  //  
28 <  if ( triggerBits.test(kHLT_Ele17_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL_Ele8_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL) )
29 <    pass = true;
26 >        assert(mc_year == k2011_MC || mc_year == k2012_MC);
27  
28 +  bool pass = false;  
29 +
30 +        if(mc_year == k2011_MC){
31 +                
32 +                //electron trigger
33 +        if ( triggerBits.test(kHLT_Ele17_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL_Ele8_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL) )
34 +        pass = true;
35 +
36 +        //muon trigger
37 +        if( triggerBits.test(kHLT_Mu17_Mu8) )    
38 +        pass = true;
39 +                        
40 +                //cross triggers        
41    
42 <  //
43 <  // Muons
44 <  //
45 <  if( triggerBits.test(kHLT_Mu13_Mu8) || triggerBits.test(kHLT_Mu17_Mu8) )    
46 <    pass = true;
47 <  
42 >        }
43 >
44 >        if(mc_year == k2012_MC){
45 >                
46 >                //electron trigger
47 >        if ( triggerBits.test(kHLT_Ele17_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL_Ele8_CaloIdT_TrkIdVL_CaloIsoVL_TrkIsoVL) )
48 >        pass = true;
49 >
50 >        //muon trigger
51 >        if( triggerBits.test(kHLT_Mu17_Mu8) || triggerBits.test(kHLT_Mu17_TkMu8))    
52 >        pass = true;
53 >                        
54 >                //cross triggers        
55 >        if( triggerBits.test(kHLT_Mu8_Ele17_CaloIdT_CaloIsoVL_TrkIdVL_TrkIsoVL) || triggerBits.test(kHLT_Mu17_Ele8_CaloIdT_CaloIsoVL_TrkIdVL_TrkIsoVL))    
56 >        pass = true;
57 >        
58 >        }
59 >        
60    return pass;
61   }
62  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines