Skip to content
Snippets Groups Projects
Commit b4f9ce75 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Added scandalizer working with analyzer modifications

parent ec942943
No related branches found
No related tags found
No related merge requests found
#include "Scandalizer.h"
#include "THaRun.h"
using namespace std;
......@@ -18,6 +19,18 @@ Int_t Scandalizer::ReadOneEvent()
// Find next event buffer in CODA file. Quit if error.
Int_t status = THaRunBase::READ_OK;
while(_skip_events > 0 ) {
std::cout << _skip_events << " skipping\n";
int skipped = 0;
auto run = dynamic_cast<THaRun*>(fRun);
if( run ) {
skipped = run->SkipToEndOfFile(_skip_events);
}
_skip_events = 0;
std::cout << skipped << " skipped\n";
continue;
}
if (to_read_file)
status = fRun->ReadEvent();
......@@ -190,10 +203,6 @@ Int_t Scandalizer::Process( THaRunBase* run )
fOutput->GetTree()->AutoSave("SaveSelf");
}
if(_skip_events > 0 ) {
_skip_events--;
continue;
}
//--- Update run parameters with current event
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment