Package org.jlab.rec.atof.banks
Class RecoBankWriter
java.lang.Object
org.jlab.rec.atof.banks.RecoBankWriter
The
RecoBankWriter
writes the banks needed for the atof
reconstruction: track projections, hits and clusters info.- Author:
- pilleux
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
appendATOFBanks
(org.jlab.io.base.DataEvent event, ArrayList<ATOFHit> wedgeHits, ArrayList<BarHit> barHits, ArrayList<ATOFCluster> clusterList) Appends the atof banks to an event.int
appendMatchBanks
(org.jlab.io.base.DataEvent event, ArrayList<TrackProjection> projections) Appends the alert match banks to an event.static org.jlab.io.base.DataBank
fillATOFClusterBank
(org.jlab.io.base.DataEvent event, ArrayList<ATOFCluster> clusterList) Writes the bank of atof clusters.static org.jlab.io.base.DataBank
fillATOFHitBank
(org.jlab.io.base.DataEvent event, ArrayList<ATOFHit> wedgeHits, ArrayList<BarHit> barHits) Writes the bank of atof hits.static org.jlab.io.base.DataBank
fillProjectionsBank
(org.jlab.io.base.DataEvent event, ArrayList<TrackProjection> projections) Writes the bank of track projections.static void
-
Constructor Details
-
RecoBankWriter
public RecoBankWriter()
-
-
Method Details
-
fillATOFHitBank
public static org.jlab.io.base.DataBank fillATOFHitBank(org.jlab.io.base.DataEvent event, ArrayList<ATOFHit> wedgeHits, ArrayList<BarHit> barHits) Writes the bank of atof hits. -
fillATOFClusterBank
public static org.jlab.io.base.DataBank fillATOFClusterBank(org.jlab.io.base.DataEvent event, ArrayList<ATOFCluster> clusterList) Writes the bank of atof clusters.- Parameters:
event
- theDataEvent
in which to add the bankclusterList
- theArrayList
ofATOFCluster
containing the clusters info to be added to the bank- Returns:
DataBank
the bank with all the clusters built in the event.
-
fillProjectionsBank
public static org.jlab.io.base.DataBank fillProjectionsBank(org.jlab.io.base.DataEvent event, ArrayList<TrackProjection> projections) Writes the bank of track projections.- Parameters:
event
- theDataEvent
in which to add the bankprojections
- theArrayList
ofTrackProjection
containing the track projection info to be added to the bank- Returns:
DataBank
the bank with all the projected tracks in the event.
-
appendATOFBanks
public int appendATOFBanks(org.jlab.io.base.DataEvent event, ArrayList<ATOFHit> wedgeHits, ArrayList<BarHit> barHits, ArrayList<ATOFCluster> clusterList) Appends the atof banks to an event.- Parameters:
event
- theDataEvent
in which to append the banksclusterList
- theArrayList
ofATOFCluster
containing the clusters info to be added to the bankwedgeHits
- theArrayList
ofATOFHit
containing the wedge hits info to be addedbarHits
- theArrayList
ofBarHit
containing the bar hits info to be added- Returns:
- 0 if it worked, 1 if it failed
-
appendMatchBanks
public int appendMatchBanks(org.jlab.io.base.DataEvent event, ArrayList<TrackProjection> projections) Appends the alert match banks to an event.- Parameters:
event
- theDataEvent
in which to append the banksprojections
- theArrayList
ofTrackProjection
containing the track projections info to be added- Returns:
- 0 if it worked, 1 if it failed
-
main
- Parameters:
args
- the command line arguments
-