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

Comparing UserCode/MitHzz4l/LeptonSelection/src/MuonSelection.cc (file contents):
Revision 1.2 by khahn, Tue Feb 14 01:29:01 2012 UTC vs.
Revision 1.3 by anlevin, Wed Feb 29 10:10:18 2012 UTC

# Line 7 | Line 7
7   #include "ParseArgs.h"
8   #include "SelectionStatus.h"
9  
10 + SelectionStatus noPreSelection( ControlFlags &ctrl,  const mithep::TMuon * mu ) {
11 +        SelectionStatus status;
12 +        status.setStatus(SelectionStatus::PRESELECTION);
13 +        if(ctrl.debug) cout << "muon presel returning status : " << status.getStatus() << endl;
14 +        return status;
15 + }
16  
17   SelectionStatus muonPreSelection( ControlFlags &ctrl,  const mithep::TMuon * mu ) {
18    if(ctrl.debug) cout << "inside muonpresel ... " << endl;
# Line 160 | Line 166 | SelectionStatus passMuonSelection( Contr
166    int level=0;
167    unsigned failmask=0x0;
168  
169 +
170    // 0x1
171    if(mu->pt < 5) {
172      failmask |= (1<<level);
# Line 230 | Line 237 | SelectionStatus passMuonSelection( Contr
237  
238   };
239  
240 + SelectionStatus passMuonSelectionBackDoor( ControlFlags &ctrl, const mithep::TMuon * mu ) {
241 +  int level=0;
242 +  unsigned failmask=0x0;
243 +
244 +  if(mu->pt < 5) {
245 +    failmask |= (1<<level);
246 +  }
247 +
248 +  level++;
249 +  if(fabs(mu->eta) > 2.5) {
250 +    failmask |= (1<<level);
251 +  }
252 +
253 +  level++;
254 +  if(!(mu->typeBits & kGlobal) || !(mu->typeBits & kTracker)) {
255 +    failmask |= (1<<level);
256 +  }
257 +
258 +  level++;
259 +  if(mu->nTkHits          <= 10) {
260 +    failmask |= (1<<level);
261 +  }
262 +
263 +        level++;
264 +        if(mu->ip3dSig > 4) {
265 +                failmask |= (1<<level);
266 +        }
267 +        
268 +        level++;
269 +  if(mu->muNchi2          >= 10)  {
270 +                failmask |= (1<<level);
271 +        }
272 +                
273 +        level++;
274 +  if(mu->nValidHits       < 1)   {
275 +                failmask |= (1<<level);
276 +        }
277 +        
278 +        level++;
279 +  if(mu->nMatch   < 2)   {
280 +                failmask |= (1<<level);
281 +        }
282 +  
283 +  SelectionStatus status;
284 +        
285 +  if( !failmask ) status.setStatus(SelectionStatus::LOOSEID);
286 +  if( !failmask ) status.setStatus(SelectionStatus::TIGHTID);
287 +        
288 +        return status;
289 +
290 + };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines