19 template <
class T =
double>
27 return det.e >= low && det.e < high;
31 return e >= low && e < high;
38 int cmp( T e )
const noexcept {
46 bool isInside( T value )
const noexcept {
47 return value >= low && value < high;
Event containing event information of one daq channel.
Definition: DetectorEvent.hpp:47
Definition: mainpage.dox:6
Simple 1D gate object for the continous range [low,high[.
Definition: Gate1D.hpp:20
bool operator()(const DetectorEvent &det) const noexcept
Tests gate with detector energy. DEPRECATED!
Definition: Gate1D.hpp:26
int cmp(T e) const noexcept
Compares with three results, smaller, ingate, bigger.
Definition: Gate1D.hpp:38
T width() const noexcept
Returns the width of the gate.
Definition: Gate1D.hpp:54