Package org.jlab.service.recoil.tof
Class RecoBankWriter
java.lang.Object
org.jlab.service.recoil.tof.RecoBankWriter
The
RecoBankWriter writes the banks needed for the recoil tof
reconstruction: hits and clusters info.- Author:
- pilleux, Nilanga Wickramaarachchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintappendRTOFBanks(DataEvent event, ArrayList<RTOFHit> rtofHits, ArrayList<RTOFCluster> clusterList) Appends the rtof banks to an event.static DataBankfillRTOFClusterBank(DataEvent event, ArrayList<RTOFCluster> clusterList) Writes the bank of rtof clusters.static DataBankfillRTOFRawHitBank(DataEvent event, ArrayList<RTOFHit> rtofHits) Writes the bank of recoil tof hits.
-
Constructor Details
-
RecoBankWriter
public RecoBankWriter()
-
-
Method Details
-
fillRTOFRawHitBank
Writes the bank of recoil tof hits. -
fillRTOFClusterBank
Writes the bank of rtof clusters.- Parameters:
event- theDataEventin which to add the bankclusterList- theArrayListofRTOFClustercontaining the clusters info to be added to the bank- Returns:
DataBankthe bank with all the clusters built in the event.
-
appendRTOFBanks
public int appendRTOFBanks(DataEvent event, ArrayList<RTOFHit> rtofHits, ArrayList<RTOFCluster> clusterList) Appends the rtof banks to an event.- Parameters:
event- theDataEventin which to append the banksrtofHits- theArrayListofRTOFHitcontaining the bar hits info to be addedclusterList- theArrayListofRTOFClustercontaining the clusters info to be added to the bank- Returns:
- 0 if it worked, 1 if it failed
-