2 #ifndef MCHITCOLLECTION_H 3 #define MCHITCOLLECTION_H 42 bool sort = (!
empty() && hit < (*rbegin()));
44 std::vector<sim::MCHit>::push_back(hit);
58 return (*lhs) < (*rhs);
void push_back(const MCHit &hit)
wrapper for push_back
void Reset()
Method to reset.
bool operator()(const sim::MCHitCollection *lhs, const sim::MCHitCollection *rhs)
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
unsigned int fChannel
Channel number.
Detector simulation of raw signals on wires.
unsigned int Channel() const
Getter for channel number.
const unsigned int kINVALID_UINT
bool operator<(const MCHitCollection &rhs) const
For sorting.
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
MCHitCollection(const unsigned int ch=::sim::kINVALID_UINT)
Default ctor.
decltype(auto) constexpr empty(T &&obj)
ADL-aware version of std::empty.