23 std::map<unsigned int, bool> events;
25 cout <<
"Scanning ntuple..." << endl;
26 for (
unsigned int i = 0; i <
m_interface->nChannels(); i++) {
28 if (!history)
continue;
29 for (
unsigned int k = 0; k < history->
nData(); k++)
33 cout <<
"Found " << events.size() <<
" events";
34 if (events.size() >
max) {
35 cout <<
", greater than specified maximum (" <<
max <<
"), aborting..." << endl;
38 cout <<
", will now split the ntuple" << endl;
41 for (std::map<unsigned int, bool>::const_iterator event = events.begin();
42 event != events.end(); ++event, ++i) {
43 cout <<
"Processing event " <<
event->first <<
" (" << i <<
" of " << events.size() <<
")" << endl;
45 f.addEvent(event->first);
const Data * data(unsigned int i) const
unsigned int nData() const