Skip to content

Commit

Permalink
fix: some build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Feb 16, 2024
1 parent b8bbbc6 commit 9c4b215
Showing 1 changed file with 13 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Collections;

import org.jlab.detector.base.DetectorType;
import org.jlab.geom.prim.Line3D;
Expand All @@ -25,16 +26,11 @@
*/
public class AlignmentBankReader {

private List<Cross> _SVTcrosses;
private List<Cluster> _SVTclusters;
private List<Cross> _BMTcrosses;
private List<Cluster> _BMTclusters;

public List<StraightTrack> getCosmics(DataEvent event) {


SVThits = RecoBankReader.readBSTHitBank(event, "BST::Hits");
BMThits = RecoBankReader.readBMTHitBank(event, "BMT::Hits");
var SVThits = RecoBankReader.readBSTHitBank(event, "BST::Hits");
var BMThits = RecoBankReader.readBMTHitBank(event, "BMT::Hits");
if(SVThits!= null) {
Collections.sort(SVThits);
}
Expand All @@ -45,12 +41,12 @@ public List<StraightTrack> getCosmics(DataEvent event) {
Collections.sort(BMThits);
}

_SVTclusters = RecoBankReader.readBSTClusterBank(event, SVThits, "BSTRec::Clusters");
_BMTclusters = RecoBankReader.readBMTClusterBank(event, BMThits, "BMTRec::Clusters");
var _SVTclusters = RecoBankReader.readBSTClusterBank(event, SVThits, "BSTRec::Clusters");
var _BMTclusters = RecoBankReader.readBMTClusterBank(event, BMThits, "BMTRec::Clusters");


_SVTcrosses = RecoBankReader.readBSTCrossBank(event, _SVTclusters, "BSTRec::Crosses");
_BMTcrosses = RecoBankReader.readBMTCrossBank(event, _BMTclusters, "BMTRec::Crosses");
var _SVTcrosses = RecoBankReader.readBSTCrossBank(event, _SVTclusters, "BSTRec::Crosses");
var _BMTcrosses = RecoBankReader.readBMTCrossBank(event, _BMTclusters, "BMTRec::Crosses");
if(_SVTcrosses!=null) {
for(Cross cross : _SVTcrosses) {
cross.setCluster1(_SVTclusters.get(cross.getCluster1().getId()-1));
Expand Down Expand Up @@ -94,8 +90,8 @@ public List<StraightTrack> getCosmics(DataEvent event) {
public List<Track> getTracks(DataEvent event) {


SVThits = RecoBankReader.readBSTHitBank(event, "BST::Hits");
BMThits = RecoBankReader.readBMTHitBank(event, "BMT::Hits");
var SVThits = RecoBankReader.readBSTHitBank(event, "BST::Hits");
var BMThits = RecoBankReader.readBMTHitBank(event, "BMT::Hits");
if(SVThits!= null) {
Collections.sort(SVThits);
}
Expand All @@ -106,12 +102,12 @@ public List<Track> getTracks(DataEvent event) {
Collections.sort(BMThits);
}

_SVTclusters = RecoBankReader.readBSTClusterBank(event, SVThits, "BSTRec::Clusters");
_BMTclusters = RecoBankReader.readBMTClusterBank(event, BMThits, "BMT::Clusters");
var _SVTclusters = RecoBankReader.readBSTClusterBank(event, SVThits, "BSTRec::Clusters");
var _BMTclusters = RecoBankReader.readBMTClusterBank(event, BMThits, "BMT::Clusters");


_SVTcrosses = RecoBankReader.readBSTCrossBank(event, _SVTclusters, "BSTRec::Crosses");
_BMTcrosses = RecoBankReader.readBMTCrossBank(event, _BMTclusters, "BMTRec::Crosses");
var _SVTcrosses = RecoBankReader.readBSTCrossBank(event, _SVTclusters, "BSTRec::Crosses");
var _BMTcrosses = RecoBankReader.readBMTCrossBank(event, _BMTclusters, "BMTRec::Crosses");
if(_SVTcrosses!=null) {
for(Cross cross : _SVTcrosses) {
cross.setCluster1(_SVTclusters.get(cross.getCluster1().getId()-1));
Expand Down Expand Up @@ -157,20 +153,4 @@ public List<Track> getTracks(DataEvent event) {
}


public List<Cluster> get_ClustersSVT() {
return _SVTclusters;
}

public List<Cluster> get_ClustersBMT() {
return _BMTclusters;
}

public List<Cross> get_CrossesSVT() {
return _SVTcrosses;
}

public List<Cross> get_CrossesBMT() {
return _BMTcrosses;
}

}

0 comments on commit 9c4b215

Please sign in to comment.