#include <MuonEtaRange.h>
Public Member Functions | |
MuonEtaRange | add (const MuonEtaRange &) const |
create maximum of ranges | |
bool | isCompatible (const MuonEtaRange &range) const |
true if this overlaps with range | |
bool | isInside (float eta, float error=0.) const |
bool | isInside (const MuonEtaRange &range) const |
true if this is completely inside range | |
float | max () const |
float | min () const |
MuonEtaRange | minRange (const MuonEtaRange &) const |
MuonEtaRange (float max, float min) | |
MuonEtaRange (const MuonEtaRange &) | |
MuonEtaRange () | |
MuonEtaRange & | operator= (const MuonEtaRange &) |
Assignment operator. | |
MuonEtaRange | subtract (const MuonEtaRange &) const |
create new range of size this minus range | |
~MuonEtaRange () | |
Private Attributes | |
float | theMax |
float | theMin |
a class to define eta range used in Muon Navigation
Modification:
a class to define eta range used in Muon Navigation
Modification:
Definition at line 17 of file MuonEtaRange.h.
MuonEtaRange::MuonEtaRange | ( | ) |
Definition at line 19 of file MuonEtaRange.cc.
Referenced by add(), and subtract().
MuonEtaRange::MuonEtaRange | ( | float | max, |
float | min | ||
) |
MuonEtaRange::MuonEtaRange | ( | const MuonEtaRange & | range | ) |
MuonEtaRange::~MuonEtaRange | ( | ) | [inline] |
Definition at line 24 of file MuonEtaRange.h.
{}
MuonEtaRange MuonEtaRange::add | ( | const MuonEtaRange & | range | ) | const |
create maximum of ranges
Definition at line 61 of file MuonEtaRange.cc.
References max(), min(), MuonEtaRange(), theMax, and theMin.
Referenced by MuonNavigationSchool::linkEndcapLayers().
bool MuonEtaRange::isCompatible | ( | const MuonEtaRange & | range | ) | const |
true if this overlaps with range
Definition at line 56 of file MuonEtaRange.cc.
Referenced by MuonNavigationSchool::linkEndcapLayers(), and subtract().
bool MuonEtaRange::isInside | ( | const MuonEtaRange & | range | ) | const |
bool MuonEtaRange::isInside | ( | float | eta, |
float | error = 0. |
||
) | const |
Definition at line 45 of file MuonEtaRange.cc.
Referenced by MuonTkNavigationSchool::linkBarrelLayers(), MuonNavigationSchool::linkEndcapLayers(), MuonTkNavigationSchool::linkEndcapLayers(), and subtract().
float MuonEtaRange::max | ( | ) | const [inline] |
Definition at line 27 of file MuonEtaRange.h.
References theMax.
Referenced by add(), isCompatible(), isInside(), MuonTkNavigationSchool::linkBarrelLayers(), MuonTkNavigationSchool::linkEndcapLayers(), MuonEtaRange(), operator<<(), and subtract().
{ return theMax; }
float MuonEtaRange::min | ( | ) | const [inline] |
Definition at line 26 of file MuonEtaRange.h.
References theMin.
Referenced by add(), isCompatible(), isInside(), MuonTkNavigationSchool::linkBarrelLayers(), MuonTkNavigationSchool::linkEndcapLayers(), MuonEtaRange(), operator<<(), and subtract().
{ return theMin; }
MuonEtaRange MuonEtaRange::minRange | ( | const MuonEtaRange & | ) | const |
MuonEtaRange & MuonEtaRange::operator= | ( | const MuonEtaRange & | range | ) |
MuonEtaRange MuonEtaRange::subtract | ( | const MuonEtaRange & | range | ) | const |
create new range of size this minus range
Definition at line 67 of file MuonEtaRange.cc.
References isCompatible(), isInside(), max(), min(), MuonEtaRange(), theMax, and theMin.
Referenced by MuonNavigationSchool::linkEndcapLayers(), and MuonTkNavigationSchool::linkEndcapLayers().
{ if ( range.isInside(*this) ) { edm::LogInfo ("MuonEtaRange") << "MuonEtaRange: range is inside!" << std::endl; return *this; } if ( !range.isCompatible(*this) ) { edm::LogInfo ("MuonEtaRange") << "MuonEtaRange: no overlap between ranges" << std::endl; return *this; } float max = isInside(range.theMin) ? range.theMin : theMax; float min = isInside(range.theMax) ? range.theMax : theMin; return MuonEtaRange(max,min); }
float MuonEtaRange::theMax [private] |
Definition at line 37 of file MuonEtaRange.h.
Referenced by add(), max(), MuonEtaRange(), operator=(), and subtract().
float MuonEtaRange::theMin [private] |
Definition at line 36 of file MuonEtaRange.h.
Referenced by add(), min(), MuonEtaRange(), operator=(), and subtract().