CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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  double theMean;
52  double theRMS;
54 
55  bool debug; // FIXME: to be removed
56 };
57 
58 // Compute the average RMS among two DTOccupancyPoints
59 double computeAverageRMS(const DTOccupancyPoint& onePoint, const DTOccupancyPoint& anotherPoint);
60 
61 // Compute the min RMS among two DTOccupancyPoints
62 double computeMinRMS(const DTOccupancyPoint& onePoint, const DTOccupancyPoint& anotherPoint);
63 
64 #endif
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