NuRadioReco.modules.channelLengthAdjuster module

class NuRadioReco.modules.channelLengthAdjuster.channelLengthAdjuster[source]

Bases: object

cuts the trace to detector specifications, uses a simple algorithm to determine the location of the pulse

Methods

begin([number_of_samples, offset])

Defines number of samples to cut the data to and how many samples before maximum in trace

run(evt, station[, det, channel_ids])

Run method for the channelLengthAdjuster

end

begin(number_of_samples=256, offset=50)[source]

Defines number of samples to cut the data to and how many samples before maximum in trace

Parameters:
number_of_samples: int

Number of samples desired in signal

offset: int

(roughly) How many samples before pulse

run(evt, station, det=None, channel_ids=None)[source]

Run method for the channelLengthAdjuster

Parameters:
evt: Event object

The event containing the station whose channels should be cut

station: Station object

The station whose channels should be cut

det: Detector object

The detector description. It is not actually needed and just kept as a parameter to comply with the module template

channel_ids: List of ints

Can be used to specify, which channels shall be cut. If it is None, all channels are cut.

end()[source]