20 theMin(0), theMax(0) {}
24 edm::LogWarning (
"MuonEtaRange") <<
"Warning MuonEtaRange:: max < min!! correcting" <<std::endl;
34 theMin(range.theMin), theMax(range.theMax) {}
38 if (
this != &range ) {
47 if ( (eta+error) >
max() || (eta-error) <
min() )
return false;
52 if (
min() > range.
min() &&
max() < range.
max() )
return true;
57 if ( range.
min() >
max() || range.
max() <
min() )
return false;
70 edm::LogInfo (
"MuonEtaRange") <<
"MuonEtaRange: range is inside!" << std::endl;
74 edm::LogInfo (
"MuonEtaRange") <<
"MuonEtaRange: no overlap between ranges" << std::endl;
MuonEtaRange add(const MuonEtaRange &) const
create maximum of ranges
const T & max(const T &a, const T &b)
bool isInside(float eta, float error=0.) const
MuonEtaRange & operator=(const MuonEtaRange &)
Assignment operator.
std::vector< std::vector< double > > tmp
bool isCompatible(const MuonEtaRange &range) const
true if this overlaps with range
MuonEtaRange subtract(const MuonEtaRange &) const
create new range of size this minus range