CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonEtaRange.h
Go to the documentation of this file.
1 #ifndef Navigation_MuonEtaRange_H
2 #define Navigation_MuonEtaRange_H
3 
15 class MuonEtaRange {
16 
17  public:
18 
19  MuonEtaRange();
20  MuonEtaRange(float max, float min);
21  MuonEtaRange(const MuonEtaRange&);
24  inline float min() const { return theMin; }
25  inline float max() const { return theMax; }
26  bool isInside(float eta, float error=0.) const;
27  bool isInside(const MuonEtaRange& range) const;
28  bool isCompatible(const MuonEtaRange& range) const;
29  MuonEtaRange add(const MuonEtaRange&) const;
30  MuonEtaRange minRange(const MuonEtaRange&) const;
31  MuonEtaRange subtract(const MuonEtaRange&) const;
32  private:
33 
34  float theMin;
35  float theMax;
36 };
37 #include <iostream>
38 inline std::ostream& operator<<(std::ostream& os, const MuonEtaRange& range)
39 {
40  os << "(" << range.min() << " : " << range.max() << ")" ;
41  return os;
42 }
43 
44 #endif
MuonEtaRange add(const MuonEtaRange &) const
create maximum of ranges
Definition: MuonEtaRange.cc:59
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
float min() const
Definition: MuonEtaRange.h:24
bool isInside(float eta, float error=0.) const
Definition: MuonEtaRange.cc:43
MuonEtaRange & operator=(const MuonEtaRange &)
Assignment operator.
Definition: MuonEtaRange.cc:34
bool isCompatible(const MuonEtaRange &range) const
true if this overlaps with range
Definition: MuonEtaRange.cc:54
MuonEtaRange subtract(const MuonEtaRange &) const
create new range of size this minus range
Definition: MuonEtaRange.cc:65
float max() const
Definition: MuonEtaRange.h:25
MuonEtaRange minRange(const MuonEtaRange &) const