|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef ANALYSISUTILS_PHIFILTERRANGE_H
12 #define ANALYSISUTILS_PHIFILTERRANGE_H
78 bool isInRange(
const double point )
const;
100 void include(
const double xMin,
const double xMax);
113 void addRange(
double xMin,
double xMax);
157 std::string
err =
"ERROR : PhiFilterRange is ACTIVE (Should NOT BE !!)";
224 #endif //> ANALYSISUTILS_PhiFILTERRANGE_H
PhiFilterRange()
Default constructor: it sets the minimum value to -infinity and the maximum value to +infinity.
bool operator>=(const PhiFilterRange &r1, const PhiFilterRange &r2)
bool operator>(const PhiFilterRange &r1, const PhiFilterRange &r2)
PhiFilterRange & operator=(const PhiFilterRange &obj)
Assignment operator:
std::optional< interval_t > m_range
The boost interval wrapped by a boost optional.
#define maxValue(current, test)
Scalar phi() const
phi method
void include(const double xMin, const double xMax)
Add [xMin, xMax] interval to existing set of valid ranges.
void setMax(const double maxValue)
FilterRange implements the range (ie: [min, max]) the filters will use to take their filtering decisi...
void setMin(const double minValue)
PhiFilterRange implements the range (ie: [min, max]) the filters will use to take their filtering dec...
double getMax() const
Return the maximum value of the range.
virtual ~PhiFilterRange()
Destructor:
bool operator<=(const PhiFilterRange &r1, const PhiFilterRange &r2)
bool isInRange(const double point) const
Const methods:
double getMin() const
Return the minimum value of the range.
double upper() const
Return the maximum value of the range.
void includeAll()
Set full range (from MINUS_INF to PLUS_INF ).
double atlasPhi(const double phi) const
Convert a phi angle in the ATLAS conventional range -PI->PI inspired from FourMom package (could also...
void setRange(const double lower, const double upper)
Non-const methods:
double lower() const
Return the minimum value of the range.
bool operator!=(const PhiFilterRange &r1, const PhiFilterRange &r2)
bool operator<(const PhiFilterRange &r1, const PhiFilterRange &r2)
void addRange(double xMin, double xMax)
add a new range [xmin,xmax] deleting previous ranges full contained
#define minValue(current, test)
bool operator==(const PhiFilterRange &r1, const PhiFilterRange &r2)
bool isActive() const
return Return true if the range is active (optimize parsing of multiple ranges and returning the fina...