Skip to content

Commit 8492640

Browse files
raffaelladevitabaltzell
authored andcommitted
propagate detectorChanged and method renaming to new UberEngine
1 parent f680248 commit 8492640

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

common-tools/clas-reco/src/main/java/org/jlab/clas/reco/ReconstructionEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public synchronized boolean checkRunNumber(DataEvent event) {
361361
return !this.ignoreInvalidRunNumbers || r>0;
362362
}
363363

364-
public final void processDataEvent(DataEvent dataEvent) {
364+
public void processDataEvent(DataEvent dataEvent) {
365365
if (!this.wroteConfig) {
366366
this.wroteConfig = true;
367367
JsonUtils.extend(dataEvent, CONFIG_BANK_NAME, "json", this.generateConfig());

common-tools/clas-reco/src/main/java/org/jlab/clas/reco/UberEngine.java

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected void add(ReconstructionEngine... e) {
3030
}
3131

3232
@Override
33-
public boolean processDataEvent(DataEvent event) {
33+
public boolean processDataEventUser(DataEvent event) {
3434
throw new RuntimeException("UberEngine does not implement processDataEvent.");
3535
}
3636

@@ -39,9 +39,9 @@ public boolean processDataEvent(DataEvent event) {
3939
* @param event
4040
*/
4141
@Override
42-
public final void filterEvent(DataEvent event) {
42+
public final void processDataEvent(DataEvent event) {
4343
for (ReconstructionEngine e : engines)
44-
e.filterEvent(event);
44+
e.processDataEvent(event);
4545
}
4646

4747
/**
@@ -55,6 +55,16 @@ public final boolean init() {
5555
if (!e.init()) ret = false;
5656
return ret;
5757
}
58+
59+
/**
60+
* Run all engines' dettectorChanged methods.
61+
* @param runNumber
62+
*/
63+
@Override
64+
public final void detectorChanged(int runNumber) {
65+
for (ReconstructionEngine e : engines)
66+
e.detectorChanged(runNumber);
67+
}
5868

5969
/**
6070
* Run all engines' configure methods.

0 commit comments

Comments
 (0)