Skip to content

Commit 8f68e2b

Browse files
committed
remove flag to perform proj based atof prediction
1 parent e961e48 commit 8f68e2b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

reconstruction/alert/src/main/java/org/jlab/rec/ahdc/KalmanFilter/KalmanFilter.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public class KalmanFilter {
3838
private int Niter = 40; // number of iterations for the Kalman Filter
3939
private double vz_constraint = 0;
4040
private boolean IsVtxDefined = false; // implemented but not used yet
41-
private boolean projBasedAtofPrediction = false; // flag to do or not a projection based prediction of the ATOF hits
4241

4342
// mm, they are the misalignement with respect to the AHDC: the are defined in ALERTEngine
4443
private double atof_alignement = 0;
@@ -161,9 +160,9 @@ public void propagation(ArrayList<Track> tracks, final double magfield, boolean
161160
track.set_p_drift(p_drift);
162161
track.set_path(s);
163162

164-
/// At the end of the PostFit porpagation to the last layer of the AHDC
163+
/// At the end of the PostFit propagation towards the last layer of the AHDC
165164
/// we project the track on the ATOF surface without any AI ATOF hit indication
166-
if (projBasedAtofPrediction && ATOFdet != null) {
165+
if (ATOFdet != null) {
167166
// Projection towards the ATOF surfaces
168167
// R1 : radius of the lower surface of an ATOF bar
169168
// R2 : radius of the upper surface of an ATOF bar = lower surface of an ATOF wedge
@@ -408,5 +407,4 @@ else if (layer == 3) {
408407
public void set_atof_alignement(double _shift) {this.atof_alignement = _shift;}
409408
public void set_vz_constraint(double _vz) {this.vz_constraint = _vz;}
410409
public void set_vertex_flag(boolean _flag) {this.IsVtxDefined = _flag;}
411-
public void set_atofPrediction_flag(boolean _flag) {this.projBasedAtofPrediction = _flag;}
412410
}

reconstruction/alert/src/main/java/org/jlab/service/alert/ALERTEngine.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,6 @@ public boolean processDataEvent(DataEvent event) {
477477
KF.set_vertex_flag(IsVertexDefined);
478478

479479
/// Do a first propagation
480-
KF.set_atofPrediction_flag(true);
481480
KF.propagation(AHDC_tracks, magfield, IsMC);
482481

483482
/// Look at the new ATOF hits predicted after projection of the track on the lower surface of the ATOF wedges
@@ -546,7 +545,6 @@ public boolean processDataEvent(DataEvent event) {
546545

547546
/// Second propagation : each AHDC_tracks will be fitted
548547
KF.set_Niter(15);
549-
KF.set_atofPrediction_flag(false);
550548
KF.propagation(AHDC_tracks, magfield, IsMC);
551549

552550
/// write the AHDC::kftrack bank in the event

0 commit comments

Comments
 (0)