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 
17 class MuonEtaRange {
18 
19  public:
20 
21  MuonEtaRange();
22  MuonEtaRange(float max, float min);
23  MuonEtaRange(const MuonEtaRange&);
26  inline float min() const { return theMin; }
27  inline float max() const { return theMax; }
28  bool isInside(float eta, float error=0.) const;
29  bool isInside(const MuonEtaRange& range) const;
30  bool isCompatible(const MuonEtaRange& range) const;
31  MuonEtaRange add(const MuonEtaRange&) const;
32  MuonEtaRange minRange(const MuonEtaRange&) const;
33  MuonEtaRange subtract(const MuonEtaRange&) const;
34  private:
35 
36  float theMin;
37  float theMax;
38 };
39 #include <iostream>
40 inline std::ostream& operator<<(std::ostream& os, const MuonEtaRange& range)
41 {
42  os << "(" << range.min() << " : " << range.max() << ")" ;
43  return os;
44 }
45 
46 #endif
MuonEtaRange add(const MuonEtaRange &) const
create maximum of ranges
Definition: MuonEtaRange.cc:61
T eta() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
float min() const
Definition: MuonEtaRange.h:26
bool isInside(float eta, float error=0.) const
Definition: MuonEtaRange.cc:45
MuonEtaRange & operator=(const MuonEtaRange &)
Assignment operator.
Definition: MuonEtaRange.cc:36
bool isCompatible(const MuonEtaRange &range) const
true if this overlaps with range
Definition: MuonEtaRange.cc:56
MuonEtaRange subtract(const MuonEtaRange &) const
create new range of size this minus range
Definition: MuonEtaRange.cc:67
float max() const
Definition: MuonEtaRange.h:27
MuonEtaRange minRange(const MuonEtaRange &) const