Skip to content

Commit 3f00dfa

Browse files
mathieuouillonbaltzell
authored andcommitted
Update AHDCEngine to initialize model conditionally and adjust prediction threshold
1 parent a107bc3 commit 3f00dfa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reconstruction/alert/src/main/java/org/jlab/rec/service/AHDCEngine.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ public boolean init() {
5757

5858
}
5959

60-
model = new Model();
60+
if (mode == Mode.AI_Track_Finding) {
61+
model = new Model();
62+
}
6163

6264
return true;
6365
}
@@ -155,7 +157,7 @@ public int compare(Hit a1, Hit a2) {
155157
}
156158

157159
for (TrackPrediction t : predictions) {
158-
if (t.getPrediction() > 0.5)
160+
if (t.getPrediction() > 0.2)
159161
AHDC_Tracks.add(new Track(t.getClusters()));
160162
}
161163
}

0 commit comments

Comments
 (0)