Simple 1D gate object for the continous range [low,high[.
More...
#include <Gate1D.hpp>
|
|
bool | operator() (const DetectorEvent &det) const noexcept |
| | Tests gate with detector energy. DEPRECATED!
|
| |
|
bool | operator() (T e) const noexcept |
| |
| int | cmp (T e) const noexcept |
| | Compares with three results, smaller, ingate, bigger. More...
|
| |
|
bool | isInside (T value) const noexcept |
| |
| T | width () const noexcept |
| | Returns the width of the gate. More...
|
| |
template<class T = double>
struct pottu::Gate1D< T >
Simple 1D gate object for the continous range [low,high[.
◆ cmp()
template<class T = double>
Compares with three results, smaller, ingate, bigger.
- Returns
- -1 if e < low, 0 if e >= low && e < high, +1 if e >= high
◆ width()
template<class T = double>
Returns the width of the gate.
- Returns
- Width of the gate.
The documentation for this struct was generated from the following file: