|
|
Go to the documentation of this file.
20 :
radius(0), theMaxMean(-1.), theMaxRMS(-1.), theMeanSum(0.), theRMSSum(0.) {
27 if (firstPoint.
mean() > secondPoint.
mean())
32 if (firstPoint.
rms() > secondPoint.
rms())
48 theMaxMean(singlePoint.
mean()),
49 theMaxRMS(singlePoint.
rms()),
50 theMeanSum(singlePoint.
mean()),
51 theRMSSum(singlePoint.
rms()) {
66 LogTrace(
"DTDQM|DTMonitorClient|DTOccupancyTest|DTOccupancyCluster")
67 <<
" Add a point to the cluster: mean: " << anotherPoint.
mean() <<
" rms: " << anotherPoint.
rms() << endl;
69 LogTrace(
"DTDQM|DTMonitorClient|DTOccupancyTest|DTOccupancyCluster") <<
" point is valid" << endl;
90 double dist = 99999999;
120 histo->Fill((*pt).mean(), (*pt).rms());
140 minrms = anotherPoint.
rms();
154 double radius_squared = 0;
155 for (vector<DTOccupancyPoint>::const_iterator pt_i =
thePoints.begin(); pt_i !=
thePoints.end(); ++pt_i) {
156 for (vector<DTOccupancyPoint>::const_iterator pt_j =
thePoints.begin(); pt_j !=
thePoints.end(); ++pt_j) {
157 radius_squared += TMath::Power(pt_i->distance(*pt_j), 2);
160 radius_squared = radius_squared / (2 * TMath::Power(
thePoints.size() + 1, 2));
169 ret.insert((*point).layerId());
ret
prodAgent to be discontinued
TH2F * getHisto(std::string histoName, int nBinsX, double minX, double maxX, int nBinsY, double minY, double maxY, int fillColor) const
get a TH2F displaying the cluster
bool addPoint(const DTOccupancyPoint &anotherPoint)
bool clusterIsLessThan(const DTOccupancyCluster &clusterOne, const DTOccupancyCluster &clusterTwo)
for DTOccupancyCluster sorting
double maxMean() const
max average cell occupancy of the layers in the cluster
double deltaMean(const DTOccupancyPoint &anotherPoint) const
std::vector< DTOccupancyPoint > thePoints
double deltaRMS(const DTOccupancyPoint &anotherPoint) const
double maxRMS() const
max RMS of the cell occpuancy distributions of the layers in the cluster
double distance(const DTOccupancyPoint &point) const
bool qualityCriterion(const DTOccupancyPoint &firstPoint, const DTOccupancyPoint &secondPoint)
double computeAverageRMS(const DTOccupancyPoint &onePoint, const DTOccupancyPoint &anotherPoint)
std::set< DTLayerId > getLayerIDs() const
double mean() const
average cell occupancy in the layer
virtual ~DTOccupancyCluster()
Destructor.
DTOccupancyCluster(const DTOccupancyPoint &firstPoint, const DTOccupancyPoint &secondPoint)
Constructor.
double computeMinRMS(const DTOccupancyPoint &onePoint, const DTOccupancyPoint &anotherPoint)
double averageRMS() const
average RMS of the cell occpuancy distributions of the layers in the cluster
bool isValid() const
Check if the cluster candidate satisfies the quality requirements.
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
double averageMean() const
average cell occupancy of the layers in the cluster
double rms() const
RMS of the distribution of the cell occupancies in the layer.