18 theMin(0), theMax(0) {}
22 edm::LogWarning (
"MuonEtaRange") <<
"Warning MuonEtaRange:: max < min!! correcting" <<std::endl;
36 if (
this != &range ) {
45 if ( (eta+error) >
max() || (eta-error) <
min() )
return false;
50 if (
min() > range.
min() &&
max() < range.
max() )
return true;
55 if ( range.
min() >
max() || range.
max() <
min() )
return false;
68 edm::LogInfo (
"MuonEtaRange") <<
"MuonEtaRange: range is inside!" << std::endl;
72 edm::LogInfo (
"MuonEtaRange") <<
"MuonEtaRange: no overlap between ranges" << std::endl;
MuonEtaRange add(const MuonEtaRange &) const
create maximum of ranges
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