18 __attribute__((deprecated))
20 std::vector<int> PMTid,
21 std::vector<TimeDelta::short_time_t> time,
22 std::vector<float> charge = std::vector<float>(),
37 bool Append(
const std::vector<int> PMTid,
const std::vector<TimeDelta::short_time_t> time,
const std::vector<float> charge,
const TimeDelta timestamp);
42 std::vector<TimeDelta::short_time_t>
m_time;
unsigned int m_first_unique
Position of the first hit that isn't overlapping with the previous SubSample.
void SortByTime()
Sort all digits in the SubSample by their time.
std::vector< SubSample > Split(TimeDelta target_width, TimeDelta target_overlap) const
bool Append(const SubSample &sub)
std::vector< int > m_PMTid
Vector of PMT IDs for all hits in SubSample.
int m_start_trigger
Which trigger are we starting from in TellMeAboutTheTriggers()?
std::vector< float > m_charge
Vector of charges for all hits in SubSample. Unit: photoelectrons (MC), calibrated photoelectrons (da...
TimeDelta m_timestamp
Timestamp of the whole SubSample.
TimeDelta AbsoluteDigitTime(int index) const
Return the absolute time (timestamp + digit time) of a digit.
std::vector< std::vector< int > > m_trigger_readout_windows
Stores the trigger readout windows each hit is associated with.
bool IsSortedByTime() const
Check whether all hits are in time order.
std::vector< TimeDelta::short_time_t > m_time
Vector of hit times relative to timestamp for all hits in SubSample. Unit: ns.
std::vector< bool > m_masked
Is each hit masked from future trigger decisions?
void TellMeAboutTheTriggers(const TriggerInfo &triggers, const int verbose)