CMS 3D CMS Logo

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 
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 deltaRMS(const DTOccupancyPoint &anotherPoint) const
double mean() const
average cell occupancy in the layer
bool operator!=(const DTOccupancyPoint &other) const
DTOccupancyPoint()
Constructor.
bool operator<(const DTOccupancyPoint &other) const
double rms() const
RMS of the distribution of the cell occupancies in the layer.
virtual ~DTOccupancyPoint()
Destructor.
double computeMinRMS(const DTOccupancyPoint &onePoint, const DTOccupancyPoint &anotherPoint)
double deltaMean(const DTOccupancyPoint &anotherPoint) const
double distance(const DTOccupancyPoint &anotherPoint) const
distance from another point in the 2D plane
DTLayerId layerId() const
double computeAverageRMS(const DTOccupancyPoint &onePoint, const DTOccupancyPoint &anotherPoint)
void setLayerId(DTLayerId layerId)
bool operator==(const DTOccupancyPoint &other) const