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

Comparing UserCode/MitHzz4l/Selection/src/ReferenceSelection.cc (file contents):
Revision 1.10 by khahn, Wed Jun 20 17:40:22 2012 UTC vs.
Revision 1.11 by khahn, Fri Jun 22 16:39:00 2012 UTC

# Line 48 | Line 48 | void fillVetoArrays( ControlFlags & ctrl
48                       const mithep::Vertex * vtx ) ;
49   //--------------------------------------------------------------------------------------------------
50  
51 // TMPTMPTMP -- global for FSR study
52 // std::vector< std::vector<int> > gammaMatches;
53 // TMPTMPTMP -- global for FSR study
54
51   //--------------------------------------------------------------------------------------------------
52   EventData apply_HZZ4L_reference_selection(ControlFlags &ctrl,           // input control
53                                             const mithep::EventHeader *info,     // input event info
# Line 100 | Line 96 | EventData apply_HZZ4L_reference_selectio
96    failingLeptons.clear();
97    passingLeptons.clear();
98  
103  /*
104  // TMPTMPTMP -- global for FSR study
105  gammaMatches.clear();
106  for( int i=0; i<pfCandidates->GetEntries(); i++ ) {
107    gammaMatches.push_back(std::vector<int> ());
108  }
109  // TMPTMPTMP -- global for FSR study
110  */
111
99    mithep::MuonTools::EMuonEffectiveAreaTarget eraMu;
100    mithep::ElectronTools::EElectronEffectiveAreaTarget eraEle;
101    getEATargets(ctrl,eraMu,eraEle);
# Line 212 | Line 199 | EventData apply_HZZ4L_reference_selectio
199      cerr.flush();
200    }
201  
215  // TMPTMPTMP
216  if( ctrl.mc ) {
202    //***********************************************************
203 <  // Trigger Selection  -- get rid of this here, it's for sync
203 >  // Trigger Selection  
204    //***********************************************************
205 <  if( passes_HLT_MC ) {
206 <    ret.status.selectionBits.flip(PASS_TRIGGER);
207 <    cutvec[PASS_TRIGGER] +=1;
208 <  } else {
209 <    ret.status.setStatus(SelectionStatus::FAIL);
210 <    return ret;
211 <  }
205 >  if( ctrl.mc ) {
206 >    if( passes_HLT_MC ) {
207 >      ret.status.selectionBits.flip(PASS_TRIGGER);
208 >      cutvec[PASS_TRIGGER] +=1;
209 >    } else {
210 >      ret.status.setStatus(SelectionStatus::FAIL);
211 >      return ret;
212 >    }
213    } else {
214      ret.status.selectionBits.flip(PASS_TRIGGER);
215      cutvec[PASS_TRIGGER] +=1;
216    }
217 <
217 >  
218    //***********************************************************
219    // Lepton Selection
220    //***********************************************************

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines