File indexing completed on 2024-04-06 12:07:05
0001 #ifndef DTOccupancyPoint_H
0002 #define DTOccupancyPoint_H
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include "DataFormats/MuonDetId/interface/DTLayerId.h"
0012
0013 class DTOccupancyPoint {
0014 public:
0015
0016 DTOccupancyPoint();
0017
0018 DTOccupancyPoint(double mean, double rms);
0019
0020 DTOccupancyPoint(double mean, double rms, DTLayerId layerId);
0021
0022
0023 virtual ~DTOccupancyPoint();
0024
0025
0026
0027
0028 double mean() const;
0029
0030
0031 double rms() const;
0032
0033
0034 double distance(const DTOccupancyPoint& anotherPoint) const;
0035
0036 double deltaMean(const DTOccupancyPoint& anotherPoint) const;
0037
0038 double deltaRMS(const DTOccupancyPoint& anotherPoint) const;
0039
0040 bool operator==(const DTOccupancyPoint& other) const;
0041
0042 bool operator!=(const DTOccupancyPoint& other) const;
0043
0044 bool operator<(const DTOccupancyPoint& other) const;
0045
0046 void setLayerId(DTLayerId layerId);
0047
0048 DTLayerId layerId() const;
0049
0050 private:
0051 double theMean;
0052 double theRMS;
0053 DTLayerId theLayerId;
0054
0055 bool debug;
0056 };
0057
0058
0059 double computeAverageRMS(const DTOccupancyPoint& onePoint, const DTOccupancyPoint& anotherPoint);
0060
0061
0062 double computeMinRMS(const DTOccupancyPoint& onePoint, const DTOccupancyPoint& anotherPoint);
0063
0064 #endif