Hits

The hit type hierarchy is currently being redesigned!

NeRCA.jl has three main types of hits: AbstractDAQHit, AbstractMCHit and CalibratedHit.

hit typesupertypeguaranteed attributes
Hit (in future SnapshotHit)AbstractDAQHitchannel_id, dom_id, t, tot
TriggeredHitAbstractDAQHitchannel_id, dom_id, t, tot, trigger_mask
MCHitAbstractMCHita, origin, pmt_id, t
NeRCA.combineMethod
combine(snapshot_hits, triggered_hits)

Combine snapshot and triggered hits to a single hits-vector.

This should be used to transfer the trigger information to the snapshot hits from a DAQEvent. The triggered hits are a subset of the snapshot hits.

source
NeRCA.count_multiplicities!Function
count_multiplicities!(hits)
count_multiplicities!(hits, tmax)

Counts the multiplicities and modifies the .multiplicity field of the hits. Important: the hits have to be sorted by time and then by DOM ID first.

source
NeRCA.count_multiplicitiesMethod
count_multiplicities(hits)
count_multiplicities(hits, tmax)

Calculate the multiplicities for a given time window. Two arrays are are returned, one contains the multiplicities, the second one the IDs of the coincidence groups. The hits should be sorted by time and then by dom_id.

source
NeRCA.domhitsMethod
domhits(hits)

Categorise hits by DOM ID and put them into a dictionary of DOM ID=>Vector{Hit}.

source
NeRCA.duhitsMethod
duhits(hits)

Categorise hits by DU and put them into a dictionary of DU=>Vector{Hit}.

source
NeRCA.nfoldhitsMethod
nfoldhits(hits, Δt, n)

Create a Vector with hits contributing to n-fold coincidences within a time window of Δt.

source
NeRCA.nphesMethod
nphes(tot)

Returns the estimated number of photoelectrons for a given ToT.

source