Skip to content

Commit bd8228a

Browse files
committed
rename
1 parent 62fc090 commit bd8228a

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

reconstruction/eb/src/main/java/org/jlab/service/eb/EBEngine.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public boolean init() {
9191

9292
if (this.getEngineConfigString("eb-rich") != null) {
9393
rich = new RICHEBEngine();
94+
rich.disableDsts(true);
9495
rich.init();
9596
}
9697
return true;
@@ -290,9 +291,9 @@ public boolean processDataEventUser(DataEvent de,EBScalers ebs) {
290291
}
291292

292293
}
293-
294-
if (rich != null) rich.processDataEventUser(de);
295294

295+
if (rich != null) rich.processDataEventUser(de);
296+
296297
return true;
297298
}
298299

reconstruction/rich/src/main/java/org/jlab/rec/rich/RICHEBEngine.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class RICHEBEngine extends ReconstructionEngine {
99

1010
private int Ncalls = 0;
1111
private RICHGeoFactory richgeo;
12-
boolean ebRich = false;
12+
boolean disableDsts = false;
1313

1414
public RICHEBEngine() {
1515
super("RICHEB", "mcontalb", "3.0");
@@ -64,10 +64,12 @@ public boolean init() {
6464
String v = Optional.ofNullable(getEngineConfigString("variation")).orElse("default");
6565
getConstantsManager().setVariation(v);
6666

67-
ebRich = getEngineConfigString("eb-rich") != null;
68-
6967
return true;
7068
}
69+
70+
public void disableDsts(boolean value) {
71+
disableDsts = value;
72+
}
7173

7274
@Override
7375
public void detectorChanged(int runNumber) {
@@ -83,7 +85,7 @@ public boolean processDataEventUser(DataEvent event) {
8385
RICHCalibration richcal = new RICHCalibration();
8486
RICHParameters richpar = new RICHParameters();
8587
RICHPMTReconstruction rpmt = new RICHPMTReconstruction(richevent, richgeo, richio);
86-
RICHEventBuilder reb = new RICHEventBuilder(event, richevent, richgeo, ebRich?null:richio);
88+
RICHEventBuilder reb = new RICHEventBuilder(event, richevent, richgeo, disableDsts?null:richio);
8789
RICHRayTrace richtrace = new RICHRayTrace(richgeo, richpar);
8890

8991
// Initialize the CCDB information

0 commit comments

Comments
 (0)