18 theMin(0), theMax(0) {}
22 edm::LogWarning (
"MTDEtaRange") <<
"Warning MTDEtaRange:: 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 (
"MTDEtaRange") <<
"MTDEtaRange: range is inside!" << std::endl;
72 edm::LogInfo (
"MTDEtaRange") <<
"MTDEtaRange: no overlap between ranges" << std::endl;
MTDEtaRange add(const MTDEtaRange &) const
create maximum of ranges
MTDEtaRange & operator=(const MTDEtaRange &)
Assignment operator.
bool isInside(float eta, float error=0.) const
std::vector< std::vector< double > > tmp
MTDEtaRange subtract(const MTDEtaRange &) const
create new range of size this minus range
bool isCompatible(const MTDEtaRange &range) const
true if this overlaps with range