22 namespace EMCalTriggerPtAnalysis {
27 fUseSmallerEqual(true),
36 fUseSmallerEqual(true),
47 fUseSmallerEqual(true),
64 if(fHasLimit[0] && fHasLimit[1]){
66 Bool_t withinUpper = fUseSmallerEqual ? (value <= fLimits[1]) : (value < fLimits[1]),
67 withinLower = fUseLargerEqual ? (value >= fLimits[0]) : (value > fLimits[0]);
68 result = withinLower && withinUpper;
71 }
else if(fHasLimit[1]) {
73 result = fUseSmallerEqual ? (value <= fLimits[1]) : (value < fLimits[1]);
76 }
else if(fHasLimit[0]){
78 result = fUseLargerEqual ? (value >= fLimits[0]) : (value > fLimits[0]);
87 stream <<
"[" << fLimits[0] <<
"|" << fLimits[1] <<
"]";
91 std::ostream &operator<<(std::ostream &stream, const AliCutValueRange<t> &val){
92 val.PrintStream(stream);
99 template class AliCutValueRange<int>;
100 template class AliCutValueRange<double>;
101 template class AliCutValueRange<float>;
102 template std::ostream &operator<<(std::ostream &stream, const AliCutValueRange<int> &val);
103 template std::ostream &operator<<(std::ostream &stream, const AliCutValueRange<double> &val);
104 template std::ostream &operator<<(std::ostream &stream, const AliCutValueRange<float> &val);
templateClassImp(AliTHnT) template< class TemplateArray
void PrintStream(std::ostream &stream) const
t fLimits[2]
Specifies the limit in either of the direction (not used unless fHasLimit of that direction is true) ...
Class containing a range for a value to cut on.
bool fHasLimit[2]
Specifies whether limit in any of the two directions is set.
bool IsInRange(t value) const