Skip to content

Commit

Permalink
fix:but writing output banks
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Plx committed Feb 6, 2025
1 parent 436e21c commit 08fe9f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.jlab.io.base.DataBank;
import org.jlab.io.base.DataEvent;
import org.jlab.io.hipo.HipoDataSource;
import static org.jlab.rec.atof.banks.RecoBankWriter.fillAtofClusterBank;
import org.jlab.rec.atof.constants.Parameters;
import org.jlab.rec.atof.hit.AtofHit;
import org.jlab.rec.atof.hit.BarHit;
Expand Down Expand Up @@ -174,8 +173,8 @@ public void makeClusters(DataEvent event, HitFinder hitfinder) {
AtofCluster cluster = new AtofCluster(this_cluster_bar_hits, this_cluster_wedge_hits);
clusters.add(cluster);
}
DataBank clusterbank = fillAtofClusterBank(event, clusters);
event.appendBank(clusterbank);
//DataBank clusterbank = fillAtofClusterBank(event, clusters);
//event.appendBank(clusterbank);
}

public ClusterFinder() {
Expand All @@ -187,5 +186,4 @@ public ClusterFinder() {
*/
public static void main(String[] args) {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.jlab.io.base.DataBank;
import org.jlab.io.base.DataEvent;
import org.jlab.io.hipo.HipoDataSource;
import static org.jlab.rec.atof.banks.RecoBankWriter.fillAtofHitBank;
import org.jlab.rec.atof.trackMatch.TrackProjector;
import org.jlab.utils.CLASResources;

Expand Down Expand Up @@ -178,16 +177,12 @@ public void FindHits(DataEvent event, Detector atof) {
//Once all has been listed, hits are sorted by energy
Collections.sort(this.bar_hits, (hit1, hit2) -> Double.compare(hit2.getEnergy(), hit1.getEnergy()));
Collections.sort(this.wedge_hits, (hit1, hit2) -> Double.compare(hit2.getEnergy(), hit1.getEnergy()));
ArrayList<AtofHit> allhits = new ArrayList<>();
allhits.addAll(this.wedge_hits);
allhits.addAll(this.bar_hits);
DataBank hitbank = fillAtofHitBank(event, allhits);
event.appendBank(hitbank);
}

/**
* @param args the command line arguments
*/
public static void main(String[] args) {

}
}

0 comments on commit 08fe9f4

Please sign in to comment.