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

Comparing UserCode/MitHzz4l/Selection/src/applySelection.cc (file contents):
Revision 1.33 by khahn, Sun Jun 3 15:59:56 2012 UTC vs.
Revision 1.35 by khahn, Tue Jun 5 19:35:48 2012 UTC

# Line 225 | Line 225 | int main(int argc, char** argv)
225    TH1F * h_wf11_hpt;
226    if(ctrl.mc) {
227      nt.makeWeightBranch(weights);
228 <    //    nt.makeGenInfoBranch(geninfo);
228 >    if(ctrl.fillGen ) nt.makeGenInfoBranch(geninfo);
229      initEfficiencyWeights();
230      initPUWeights();
231  
# Line 328 | Line 328 | int main(int argc, char** argv)
328        chain->GetEntry(ientry);
329        if(!(ientry%1000)) cerr << "entry: " << ientry << endl;
330  
331 < #ifdef HACKED_RHOS
332 <      float rho = evtrhoMap[info->EvtNum()];
333 < #endif
331 >      //if( info->EvtNum() != 217998 ) continue;
332 >      //      if( info->EvtNum() != 238893 ) continue;
333 >      //      if( info->EvtNum() != 289066 ) continue;
334 >
335        string fname = string(chain->GetFile()->GetEndpointUrl()->GetFile());
336        setEra( fname, ctrl );
337  
# Line 389 | Line 390 | int main(int argc, char** argv)
390            fillTriggerNames(hltTable, hltTableStrings );
391          }
392          if( ctrl.debug ) cout << "file is : " << currentFile  << endl;
393 <        fillTriggerNames( hltTable, trigMask, triggerBits );
393 >        fillTriggerBits( hltTable, trigMask, triggerBits );
394          passes_HLT_MC = true; // passed to apply as extern global, just for sync
395          if( !passHLTMC(triggerBits, info->RunNum(), info->EvtNum(), k2012_MC ) ) {
396            passes_HLT_MC = false;
# Line 417 | Line 418 | int main(int argc, char** argv)
418          }
419          if( ctrl.debug ) cout << "file is : " << currentFile  << endl;
420          /*
421 <        fillTriggerNames( hltTable, trigMask, triggerBits );
421 >        fillTriggerBits( hltTable, trigMask, triggerBits );
422          if( !passHLT(triggerBits, info->RunNum(), info->EvtNum() ) ) {
423            if( ctrl.debug ) cout << "\tfails trigger ... " << endl;
424            continue;
# Line 437 | Line 438 | int main(int argc, char** argv)
438          apply_HZZ4L_reference_selection(ctrl, info,
439                                          vtxArr,
440                                          pfArr,
440 #ifdef HACKED_RHOS
441                                        rho,
442 #else
441                                          puDArr,
444 #endif
442                                          electronArr,
443                                          &electronReferencePreSelection,
444                                          &electronReferenceIDMVASelectionV1,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines