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

Comparing UserCode/MitHzz4l/Selection/src/MuonSelection.cc (file contents):
Revision 1.2 by dkralph, Wed Sep 14 12:11:57 2011 UTC vs.
Revision 1.3 by khahn, Sat Oct 1 13:00:23 2011 UTC

# Line 3 | Line 3
3   #include "TMuon.hh"
4   #include "MuonSelection.h"
5  
6 + unsigned passSoftMuonSelection( const mithep::TMuon * mu ) {
7  
8 +  int level=0;
9 +  unsigned failmask=0x0;
10 +  
11 +  if(mu->nTkHits < 11 )  
12 +    failmask |= (1<<level);
13 +  level++;
14 +
15 +  if(fabs(mu->d0) > 0.2)
16 +    failmask |= (1<<level);
17 +  level++;
18 +
19 +  if(fabs(mu->dz) > 0.1)
20 +    failmask |= (1<<level);
21 +  level++;
22 +
23 +  if(!(mu->typeBits & kTracker))
24 +    failmask |= (1<<level);
25 +  level++;
26 +
27 +  if(!(mu->qualityBits & kTMLastStationAngTight))
28 +    failmask |= (1<<level);      
29 +  level++;
30 +
31 +  Double_t iso = (mu->trkIso03 + mu->emIso03 + mu->hadIso03)/mu->pt;
32 +  if(mu->pt>20 && iso<0.1)
33 +    failmask |= (1<<level);
34 + }
35 +
36 +
37   unsigned passMuonSelectionZZ( const mithep::TMuon * mu ) {
38    int level=0;
39    unsigned failmask=0x0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines