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.53 by dkralph, Tue Jul 24 11:54:17 2012 UTC vs.
Revision 1.54 by anlevin, Wed Jul 25 13:29:14 2012 UTC

# Line 350 | Line 350 | int main(int argc, char** argv)
350    // only 1 HLT table / file ???
351    hltchain->GetEntry(0);
352  
353 <  int imax = chain->GetEntries();
354 <  cout << "nEntries: " << imax << endl;
353 >  int imax;
354 >  //-1 means process all of the events
355 >  if(ctrl.n_events_to_process != -2 && ctrl.n_events_to_process != -1){
356 >    if(ctrl.n_events_to_process > chain->GetEntries()){
357 >      cerr << "error: n_events_to_process is larger than chain->GetEntries()" << endl;
358 >      return 1;
359 >    }
360 >    imax = ctrl.n_events_to_process;
361 >  }
362 >  else
363 >    imax = chain->GetEntries();
364 >
365 >  cout << "number of events to process: " << imax << endl;
366  
367    //
368    // Loop !!!!!!!!!
# Line 461 | Line 472 | int main(int argc, char** argv)
472          
473          // trigger
474          passes_HLT = true;
475 <        if( !passHLT(ctrl, triggerBits,ti,info->RunNum()) ) {
476 <          passes_HLT = false;
477 <        }
475 >        //if( !passHLT(ctrl, triggerBits,ti,info->RunNum()) ) {
476 >        //  passes_HLT = false;
477 >        //}
478  
479        }
480  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines