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 !!!!!!!!! |
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 |
|
|