CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTOccupancyPoint.h
Go to the documentation of this file.
1 #ifndef DTOccupancyPoint_H
2 #define DTOccupancyPoint_H
3 
12 
14 public:
17 
18  DTOccupancyPoint(double mean, double rms);
19 
20  DTOccupancyPoint(double mean, double rms, DTLayerId layerId);
21 
23  virtual ~DTOccupancyPoint();
24 
25  // Operations
26 
28  double mean() const;
29 
31  double rms() const;
32 
34  double distance(const DTOccupancyPoint& anotherPoint) const;
35 
36  double deltaMean(const DTOccupancyPoint& anotherPoint) const;
37 
38  double deltaRMS(const DTOccupancyPoint& anotherPoint) const;
39 
40  bool operator==(const DTOccupancyPoint& other) const;
41 
42  bool operator!=(const DTOccupancyPoint& other) const;
43 
44  bool operator<(const DTOccupancyPoint& other) const;
45 
46  void setLayerId(DTLayerId layerId);
47 
48  DTLayerId layerId() const;
49 
50 private:
51 
52  double theMean;
53  double theRMS;
55 
56  bool debug; // FIXME: to be removed
57 
58 };
59 
60 // Compute the average RMS among two DTOccupancyPoints
61 double computeAverageRMS(const DTOccupancyPoint& onePoint, const DTOccupancyPoint& anotherPoint);
62 
63 // Compute the min RMS among two DTOccupancyPoints
64 double computeMinRMS(const DTOccupancyPoint& onePoint, const DTOccupancyPoint& anotherPoint);
65 
66 #endif
67 
double mean() const
average cell occupancy in the layer
double deltaMean(const DTOccupancyPoint &anotherPoint) const
double computeAverageRMS(const DTOccupancyPoint &onePoint, const DTOccupancyPoint &anotherPoint)
double deltaRMS(const DTOccupancyPoint &anotherPoint) const
double rms() const
RMS of the distribution of the cell occupancies in the layer.
double computeMinRMS(const DTOccupancyPoint &onePoint, const DTOccupancyPoint &anotherPoint)
DTOccupancyPoint()
Constructor.
bool operator==(const DTOccupancyPoint &other) const
bool operator!=(const DTOccupancyPoint &other) const
bool operator<(const DTOccupancyPoint &other) const
virtual ~DTOccupancyPoint()
Destructor.
double distance(const DTOccupancyPoint &anotherPoint) const
distance from another point in the 2D plane
void setLayerId(DTLayerId layerId)
DTLayerId layerId() const