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.7 by khahn, Tue May 1 23:39:16 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 12 | Line 14 | bool passHLTSingleMuon(std::bitset<TRIGG
14    return false;
15   }
16  
17 < bool passHLT(std::bitset<TRIGGER_BIG_NUMBER> triggerBits, unsigned runNum, unsigned channel) {
17 > //--------------------------------------------------------------------------
18 > // for sync ...
19 > bool passHLTMC(std::bitset<TRIGGER_BIG_NUMBER> triggerBits,
20 >               unsigned runNum,
21 >               unsigned channel,
22 >                                 EMCYear mc_year)
23 > //--------------------------------------------------------------------------
24 > {
25 >
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 >
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 >
63 >
64 > //--------------------------------------------------------------------------
65 > bool passHLT(std::bitset<TRIGGER_BIG_NUMBER> triggerBits,
66 >             unsigned runNum,
67 >             unsigned channel)
68 > //--------------------------------------------------------------------------
69 > {
70  
71    bool isMC = false;
72    bool pass = false;  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines