30 static auto random3 = TRandom3{};
59 const auto& signals =
GetHits();
60 auto it = std::min_element(signals.begin(),
62 [](
const auto& left_v,
const auto& right_v) { return left_v.tdc < right_v.tdc; });
int signal_size_
Size of the signal inputs.
void Reset()
Reset the data in the Channel for the new event.
virtual void construct_hits(Hits &signals)=0
static auto GetDefaultRandomGen() -> TRandom3 &
virtual void extra_reset()
AbstractChannel(R3B::Side side, bool has_cal_output=false)
bool has_cal_output_
Flag of whether cal output is enabled.
auto GetHits() const -> const Hits &
virtual void pre_construct()
R3B::Side side_
side of the channel
CalSignals cal_signals_
output cal signals from the channel
void calculate_trig_time()
Hits hits_
output hits from the channel
double trig_time_
trigger time of the channel
virtual void construct_cal_signals(CalSignals &cal_signals) const