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
DTOccupancyPoint::operator==
bool operator==(const DTOccupancyPoint &other) const
Definition: DTOccupancyPoint.cc:43
DTOccupancyPoint::debug
bool debug
Definition: DTOccupancyPoint.h:55
DTLayerId.h
DTOccupancyPoint
Definition: DTOccupancyPoint.h:13
DTOccupancyPoint::deltaMean
double deltaMean(const DTOccupancyPoint &anotherPoint) const
Definition: DTOccupancyPoint.cc:35
DTOccupancyPoint::layerId
DTLayerId layerId() const
Definition: DTOccupancyPoint.cc:91
DTOccupancyPoint::operator!=
bool operator!=(const DTOccupancyPoint &other) const
Definition: DTOccupancyPoint.cc:50
DTOccupancyPoint::deltaRMS
double deltaRMS(const DTOccupancyPoint &anotherPoint) const
Definition: DTOccupancyPoint.cc:39
DTOccupancyPoint::DTOccupancyPoint
DTOccupancyPoint()
Constructor.
Definition: DTOccupancyPoint.cc:12
trackingPlots.other
other
Definition: trackingPlots.py:1464
DTOccupancyPoint::theRMS
double theRMS
Definition: DTOccupancyPoint.h:52
DTLayerId
Definition: DTLayerId.h:12
DTOccupancyPoint::theLayerId
DTLayerId theLayerId
Definition: DTOccupancyPoint.h:53
DTOccupancyPoint::mean
double mean() const
average cell occupancy in the layer
Definition: DTOccupancyPoint.cc:27
DTOccupancyPoint::operator<
bool operator<(const DTOccupancyPoint &other) const
Definition: DTOccupancyPoint.cc:56
computeMinRMS
double computeMinRMS(const DTOccupancyPoint &onePoint, const DTOccupancyPoint &anotherPoint)
Definition: DTOccupancyPoint.cc:79
computeAverageRMS
double computeAverageRMS(const DTOccupancyPoint &onePoint, const DTOccupancyPoint &anotherPoint)
Definition: DTOccupancyPoint.cc:74
DTOccupancyPoint::theMean
double theMean
Definition: DTOccupancyPoint.h:51
DTOccupancyPoint::setLayerId
void setLayerId(DTLayerId layerId)
Definition: DTOccupancyPoint.cc:89
DTOccupancyPoint::~DTOccupancyPoint
virtual ~DTOccupancyPoint()
Destructor.
Definition: DTOccupancyPoint.cc:25
DTOccupancyPoint::distance
double distance(const DTOccupancyPoint &anotherPoint) const
distance from another point in the 2D plane
Definition: DTOccupancyPoint.cc:31
DTOccupancyPoint::rms
double rms() const
RMS of the distribution of the cell occupancies in the layer.
Definition: DTOccupancyPoint.cc:29