Skip to content
Merged
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 @@ -46,6 +46,8 @@ public class ALERTEngine extends ReconstructionEngine {
*/
private RecoBankWriter rbc;

Detector ATOF; // ALERT ATOF detector

/**
* Current run number being processed.
* TODO: why atomic here and nowhere else?
Expand Down Expand Up @@ -82,6 +84,10 @@ public boolean init() {

modelTrackMatching = new ModelTrackMatching();

AlertTOFFactory factory = new AlertTOFFactory();
DatabaseConstantProvider cp = new DatabaseConstantProvider(11, "default");
ATOF = factory.createDetectorCLAS(cp);

if(this.getEngineConfigString("Mode")!=null) {
//if (Objects.equals(this.getEngineConfigString("Mode"), Mode.AI_Track_Finding.name()))
// mode = Mode.AI_Track_Finding;
Expand Down Expand Up @@ -160,11 +166,9 @@ public boolean processDataEvent(DataEvent event) {
interClusters.add(new Pair<>(x, y));
}
}
if (interClusters.size() != 5) continue;

try {
AlertTOFFactory factory = new AlertTOFFactory();
DatabaseConstantProvider cp = new DatabaseConstantProvider(11, "default");
Detector ATOF = factory.createDetectorCLAS(cp);

float[] pred = modelTrackMatching.prediction(interClusters);
int sector_pred = (int) pred[0];
Expand Down