Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import org.jlab.detector.calib.utils.DatabaseConstantProvider;
import org.jlab.geom.detector.alert.AHDC.AlertDCDetector;
import org.jlab.geom.detector.alert.AHDC.AlertDCFactory;
import org.jlab.rec.alert.constants.CalibrationConstantsLoader;
import org.jlab.detector.pulse.ModeAHDC;

/** AHDCEngine reconstruction service.
Expand Down Expand Up @@ -83,23 +82,6 @@ else if (Objects.equals(this.getEngineConfigString("Mode"), ModeTrackFinding.CV_
if (modeTrackFinding == ModeTrackFinding.AI_Track_Finding) {
modelTrackFinding = new ModelTrackFinding();
}

// Requires calibration constants
String[] alertTables = new String[] {
"/calibration/alert/ahdc/time_offsets",
"/calibration/alert/ahdc/time_to_distance",
"/calibration/alert/ahdc/raw_hit_cuts",
"/calibration/alert/atof/effective_velocity",
"/calibration/alert/atof/time_walk",
"/calibration/alert/atof/attenuation",
"/calibration/alert/atof/time_offsets",
"/calibration/alert/ahdc/gains",
"/calibration/alert/ahdc/time_over_threshold"

};
requireConstants(Arrays.asList(alertTables));

this.getConstantsManager().setVariation("default");

this.registerOutputBank("AHDC::hits","AHDC::preclusters","AHDC::clusters","AHDC::track","AHDC::mc","AHDC::ai:prediction");

Expand All @@ -122,12 +104,6 @@ public boolean processDataEvent(DataEvent event) {
LOGGER.warning("AHDCEngine: got run <= 0 in RUN::config, skipping event.");
return false;
}
// Load the constants
//-------------------
if(Run != newRun) {
CalibrationConstantsLoader.Load(newRun, this.getConstantsManager());
Run = newRun;
}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ public boolean init() {
"/calibration/alert/atof/effective_velocity",
"/calibration/alert/atof/time_walk",
"/calibration/alert/atof/attenuation",
"/calibration/alert/atof/time_offsets"
"/calibration/alert/atof/time_offsets",
"/calibration/alert/ahdc/gains",
"/calibration/alert/ahdc/time_over_threshold"
};

Map<String, Integer> tableMap = new HashMap<>();
Expand Down
Loading