Skip to content

Commit

Permalink
initialize outside event loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Baltzell authored and baltzell committed Sep 24, 2024
1 parent 044d5d9 commit b2e9389
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,12 @@ public static DaqScalersSequence readSequence(List<String> filenames) {
}

SchemaFactory schema = reader.getSchemaFactory();

Event event=new Event();
Bank scalerBank=new Bank(schema.getSchema("RUN::scaler"));
Bank configBank=new Bank(schema.getSchema("RUN::config"));

while (reader.hasNext()) {

Event event=new Event();
Bank scalerBank=new Bank(schema.getSchema("RUN::scaler"));
Bank configBank=new Bank(schema.getSchema("RUN::config"));

reader.nextEvent(event);
event.read(scalerBank);
event.read(configBank);
Expand Down Expand Up @@ -325,4 +324,4 @@ public static void main(String[] args) {

}
}
}
}

0 comments on commit b2e9389

Please sign in to comment.