ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Selection/src/MuonSelection.cc
Revision: 1.1.1.1 (vendor branch)
Committed: Thu Sep 8 13:33:18 2011 UTC (13 years, 8 months ago) by khahn
Content type: text/plain
Branch: kh
CVS Tags: v1
Changes since 1.1: +0 -0 lines
Log Message:

File Contents

# Content
1 #include <math.h>
2 #include "EWKAnaDefs.hh"
3 #include "TMuon.hh"
4 #include "MuonSelection.h"
5
6
7 unsigned passMuonSelectionZZ( const mithep::TMuon * mu ) {
8 int level=0;
9 unsigned failmask=0x0;
10
11 if(mu->pt < 5) {
12 failmask |= (1<<level);
13 }
14
15 level++;
16 if(fabs(mu->eta) > 2.4) {
17 failmask |= (1<<level);
18 }
19
20 level++;
21 if(!(mu->typeBits & kGlobal)) {
22 failmask |= (1<<level);
23 }
24
25 level++;
26 if(mu->nTkHits < 10) {
27 failmask |= (1<<level);
28 }
29
30
31 level++;
32 if( (mu->trkIso03/mu->pt) > 0.7 ) {
33 failmask |= (1<<level);
34 }
35
36 // if(muon->nPixHits < 1) return false;
37 // if(muon->muNchi2 > 10) return false;
38 // if(muon->nMatch < 2) return false;
39 // if(muon->nValidHits < 1) return false;
40 // if(muon->pterr/muon->pt > 0.1) return false;
41 // if(fabs(muon->dz) > 0.1) return false;
42
43
44 return failmask;
45
46 };