Class BarHit
java.lang.Object
org.jlab.rec.atof.hit.ATOFHit
org.jlab.rec.atof.hit.BarHit
Represents a hit in the atof bar. Extends class ATOFHit. Is further defined
by the two hits upstream and downstream composing a full bar hit. z position,
time and energy are defined from the up/down hits.
- Author:
- npilleux
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidComputes bar hit energy from up/downstream hits.final voidComputes bar hit time from up/downstream hit times.final voidcomputeZ()Computes bar hit z coordinate from up/downstream hit times.getHitUp()booleanisInTime()Computes bar time sum and check if it is around the value the hits were aligned to.static voidvoidsetHitDown(ATOFHit hit_down) voidMethods inherited from class ATOFHit
computeModuleIndex, convertSLCToXYZ, convertTdcToTime, convertTotToEnergy, getAssociatedClusterIndex, getComponent, getEnergy, getIdTDC, getIsInACluster, getLayer, getMeanTimeAligned, getOrder, getPhi, getSector, getStartTime, getTdc, getTime, getTot, getType, getX, getY, getZ, makeType, matchBar, setAssociatedClusterIndex, setComponent, setEnergy, setIdTDC, setIsInACluster, setLayer, setOrder, setSector, setTdc, setTime, setTot, setType, setX, setY, setZ
-
Constructor Details
-
BarHit
-
BarHit
public BarHit()
-
-
Method Details
-
getHitUp
-
isInTime
public boolean isInTime()Computes bar time sum and check if it is around the value the hits were aligned to. For now, 40ns cut. When calibrations are final, it should be refined to reflect the resolution. -
setHitUp
-
getHitDown
-
setHitDown
-
computeZ
public final void computeZ()Computes bar hit z coordinate from up/downstream hit times. -
computeTime
public final void computeTime()Computes bar hit time from up/downstream hit times. The time is set as the time of the most energetic hit. It is corrected for propagation time. -
computeEnergy
public final void computeEnergy()Computes bar hit energy from up/downstream hits. The energy of the up/downstream hits is corrected for attenuation now that z is known. The energy of the bar hit is the sum of the energy of the up/downstream hits. -
main
- Parameters:
args- the command line arguments
-