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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintappendATOFBanks(DataEvent event, ArrayList<ATOFHit> wedgeHits, ArrayList<BarHit> barHits, ArrayList<ATOFCluster> clusterList) Appends the atof banks to an event.intappendMatchBanks(DataEvent event, ArrayList<TrackProjection> projections) Appends the alert match banks to an event.static DataBankfillATOFClusterBank(DataEvent event, ArrayList<ATOFCluster> clusterList) Writes the bank of atof clusters.static DataBankWrites the bank of atof hits.static DataBankfillProjectionsBank(DataEvent event, ArrayList<TrackProjection> projections) Writes the bank of track projections.static void
- 
Constructor Details- 
RecoBankWriterpublic RecoBankWriter()
 
- 
- 
Method Details- 
fillATOFHitBankpublic static DataBank fillATOFHitBank(DataEvent event, ArrayList<ATOFHit> wedgeHits, ArrayList<BarHit> barHits) Writes the bank of atof hits.
- 
fillATOFClusterBankWrites the bank of atof clusters.- Parameters:
- event- the- DataEventin which to add the bank
- clusterList- the- ArrayListof- ATOFClustercontaining the clusters info to be added to the bank
- Returns:
- DataBankthe bank with all the clusters built in the event.
 
- 
fillProjectionsBankWrites the bank of track projections.- Parameters:
- event- the- DataEventin which to add the bank
- projections- the- ArrayListof- TrackProjectioncontaining the track projection info to be added to the bank
- Returns:
- DataBankthe bank with all the projected tracks in the event.
 
- 
appendATOFBankspublic int appendATOFBanks(DataEvent event, ArrayList<ATOFHit> wedgeHits, ArrayList<BarHit> barHits, ArrayList<ATOFCluster> clusterList) Appends the atof banks to an event.- Parameters:
- event- the- DataEventin which to append the banks
- clusterList- the- ArrayListof- ATOFClustercontaining the clusters info to be added to the bank
- wedgeHits- the- ArrayListof- ATOFHitcontaining the wedge hits info to be added
- barHits- the- ArrayListof- BarHitcontaining the bar hits info to be added
- Returns:
- 0 if it worked, 1 if it failed
 
- 
appendMatchBanksAppends the alert match banks to an event.- Parameters:
- event- the- DataEventin which to append the banks
- projections- the- ArrayListof- TrackProjectioncontaining the track projections info to be added
- Returns:
- 0 if it worked, 1 if it failed
 
- 
main- Parameters:
- args- the command line arguments
 
 
-