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.3 by khahn, Sat Oct 1 13:00:23 2011 UTC vs.
Revision 1.5 by khahn, Wed Oct 19 15:15:37 2011 UTC

# Line 1 | Line 1
1   #include <math.h>
2   #include "HiggsAnaDefs.hh"
3 #include "TMuon.hh"
3   #include "MuonSelection.h"
4  
5   unsigned passSoftMuonSelection( const mithep::TMuon * mu ) {
# Line 74 | Line 73 | unsigned passMuonSelectionZZ( const mith
73    return failmask;
74  
75   };
76 +
77 +
78 + //
79 + // Kevin's WW selection
80 + //
81 + unsigned passMuonSelection( const mithep::TMuon * mu ) {
82 +  int level=0;
83 +  unsigned failmask=0x0;
84 +
85 +  if(mu->pt < 5) {
86 +    failmask |= (1<<level);
87 +  }
88 +
89 +  level++;
90 +  if(fabs(mu->eta) > 2.4) {
91 +    failmask |= (1<<level);
92 +  }
93 +
94 +  level++;
95 +  if(mu->nTkHits          < 11) {
96 +    failmask |= (1<<level);
97 +  }
98 +
99 +  level++;
100 +  if(mu->nPixHits         < 1) {
101 +    failmask |= (1<<level);
102 +  }
103 +
104 +  level++;
105 +  if(mu->ptErr/mu->pt > 0.1)   {
106 +    failmask |= (1<<level);
107 +  }
108 +
109 +  level++;
110 +  if( fabs(mu->dz) > 0.1 )   {
111 +    failmask |= (1<<level);
112 +  }
113 +
114 +
115 +  Bool_t isGlobal  = (mu->typeBits & kGlobal) && (mu->muNchi2 < 10) && (mu->nMatch > 1) && (mu->nValidHits > 0);
116 +  Bool_t isTracker = (mu->typeBits & kTracker) && (mu->qualityBits & kTMLastStationTight);
117 +  
118 +  level++;
119 +  if(!isGlobal && !isTracker) {
120 +    failmask |= (1<<level);
121 +  }
122 +
123 +  level++;
124 +  if(fabs(mu->d0)>0.02)   {
125 +    failmask |= (1<<level);
126 +  }
127 +  /*
128 +  if(mu->pt>20) {
129 +    if(fabs(mu->d0)>0.02)   {
130 +      failmask |= (1<<level);
131 +    }
132 +  } else {
133 +    if(fabs(mu->d0)>0.01)  {
134 +    failmask |= (1<<level);
135 +    }
136 +  }
137 +  */
138 +  return failmask;
139 +
140 + };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines