58 return (_segment < other._segment) || ((_segment == other._segment) && (_timing_pos < other._timing_pos));
64 return (_segment == other._segment) && (_timing_pos == other._timing_pos);
70 return !(*
this == other);
A very simple class to store segment numbers and any other indices that define a segment.
Definition SegmentIndices.h:34
int segment_num() const
get segment number for const objects
Definition SegmentIndices.inl:32
bool operator<(const SegmentIndices &other) const
comparison operator, only useful for sorting
Definition SegmentIndices.inl:56
SegmentIndices(const int segment_num=0, const int timing_pos_num=0)
constructor segment number as arguments
Definition SegmentIndices.inl:26
bool operator==(const SegmentIndices &other) const
test for equality
Definition SegmentIndices.inl:62
int timing_pos_num() const
get TOF index for const objects
Definition SegmentIndices.inl:44