#include <DTOccupancyCluster.h>
Public Member Functions | |
bool | addPoint (const DTOccupancyPoint &anotherPoint) |
double | averageMean () const |
average cell occupancy of the layers in the cluster More... | |
double | averageRMS () const |
average RMS of the cell occpuancy distributions of the layers in the cluster More... | |
double | distance (const DTOccupancyPoint &point) const |
DTOccupancyCluster (const DTOccupancyPoint &firstPoint, const DTOccupancyPoint &secondPoint) | |
Constructor. More... | |
DTOccupancyCluster (const DTOccupancyPoint &singlePoint) | |
Constructor. More... | |
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 More... | |
std::set< DTLayerId > | getLayerIDs () const |
bool | isValid () const |
Check if the cluster candidate satisfies the quality requirements. More... | |
double | maxMean () const |
max average cell occupancy of the layers in the cluster More... | |
double | maxRMS () const |
max RMS of the cell occpuancy distributions of the layers in the cluster More... | |
int | nPoints () const |
of layers belonging to the clusterMore... | |
virtual | ~DTOccupancyCluster () |
Destructor. More... | |
Private Member Functions | |
void | computeRadius () |
bool | qualityCriterion (const DTOccupancyPoint &firstPoint, const DTOccupancyPoint &secondPoint) |
bool | qualityCriterion (const DTOccupancyPoint &anotherPoint) |
Private Attributes | |
double | radius |
double | theMaxMean |
double | theMaxRMS |
double | theMeanSum |
std::vector< DTOccupancyPoint > | thePoints |
double | theRMSSum |
bool | theValidity |
Cluster of DTOccupancyPoint used bt DTOccupancyTest to spot problematic layers. Layers are clusterized in the plane average cell occupancy - RMS of the cell occupancies.
Definition at line 20 of file DTOccupancyCluster.h.
DTOccupancyCluster::DTOccupancyCluster | ( | const DTOccupancyPoint & | firstPoint, |
const DTOccupancyPoint & | secondPoint | ||
) |
Constructor.
Definition at line 20 of file DTOccupancyCluster.cc.
References computeRadius(), DTOccupancyPoint::mean(), qualityCriterion(), DTOccupancyPoint::rms(), theMaxMean, theMaxRMS, theMeanSum, thePoints, theRMSSum, and theValidity.
DTOccupancyCluster::DTOccupancyCluster | ( | const DTOccupancyPoint & | singlePoint | ) |
Constructor.
Definition at line 50 of file DTOccupancyCluster.cc.
References thePoints, and theValidity.
|
virtual |
bool DTOccupancyCluster::addPoint | ( | const DTOccupancyPoint & | anotherPoint | ) |
Add a point to the cluster: returns false if the point does not satisfy the quality requirement
Definition at line 76 of file DTOccupancyCluster.cc.
References computeRadius(), LogTrace, DTOccupancyPoint::mean(), qualityCriterion(), DTOccupancyPoint::rms(), theMaxMean, theMaxRMS, theMeanSum, thePoints, and theRMSSum.
Referenced by DTOccupancyClusterBuilder::buildNewCluster().
double DTOccupancyCluster::averageMean | ( | ) | const |
average cell occupancy of the layers in the cluster
Definition at line 118 of file DTOccupancyCluster.cc.
References theMeanSum, and thePoints.
Referenced by DTOccupancyClusterBuilder::buildNewCluster(), clusterIsLessThan(), qualityCriterion(), and DTOccupancyTest::runOccupancyTest().
double DTOccupancyCluster::averageRMS | ( | ) | const |
average RMS of the cell occpuancy distributions of the layers in the cluster
Definition at line 124 of file DTOccupancyCluster.cc.
References thePoints, and theRMSSum.
Referenced by DTOccupancyClusterBuilder::buildNewCluster(), clusterIsLessThan(), qualityCriterion(), and DTOccupancyTest::runOccupancyTest().
|
private |
Definition at line 214 of file DTOccupancyCluster.cc.
References radius, mathSSE::sqrt(), and thePoints.
Referenced by addPoint(), and DTOccupancyCluster().
double DTOccupancyCluster::distance | ( | const DTOccupancyPoint & | point | ) | const |
Compute the distance of a single point from the cluster (minimum distance with respect to the cluster points)
Definition at line 103 of file DTOccupancyCluster.cc.
References DTOccupancyPoint::distance(), RecoTauCleanerPlugins::pt, and thePoints.
Referenced by DTOccupancyClusterBuilder::computeDistancesToCluster().
TH2F * DTOccupancyCluster::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
Definition at line 142 of file DTOccupancyCluster.cc.
References timingPdfMaker::histo, RecoTauCleanerPlugins::pt, and thePoints.
set< DTLayerId > DTOccupancyCluster::getLayerIDs | ( | ) | const |
Definition at line 235 of file DTOccupancyCluster.cc.
References point, run_regression::ret, and thePoints.
bool DTOccupancyCluster::isValid | ( | void | ) | const |
Check if the cluster candidate satisfies the quality requirements.
Definition at line 68 of file DTOccupancyCluster.cc.
References theValidity.
Referenced by DTOccupancyClusterBuilder::buildNewCluster().
double DTOccupancyCluster::maxMean | ( | ) | const |
max average cell occupancy of the layers in the cluster
Definition at line 130 of file DTOccupancyCluster.cc.
References theMaxMean.
Referenced by DTOccupancyClusterBuilder::buildClusters(), and DTOccupancyClusterBuilder::buildNewCluster().
double DTOccupancyCluster::maxRMS | ( | ) | const |
max RMS of the cell occpuancy distributions of the layers in the cluster
Definition at line 136 of file DTOccupancyCluster.cc.
References theMaxRMS.
Referenced by DTOccupancyClusterBuilder::buildClusters(), and DTOccupancyClusterBuilder::buildNewCluster().
int DTOccupancyCluster::nPoints | ( | ) | const |
Definition at line 230 of file DTOccupancyCluster.cc.
References thePoints.
Referenced by DTOccupancyClusterBuilder::buildNewCluster(), and clusterIsLessThan().
|
private |
Definition at line 156 of file DTOccupancyCluster.cc.
References computeAverageRMS(), computeMinRMS(), DTOccupancyPoint::deltaMean(), DTOccupancyPoint::deltaRMS(), and theValidity.
Referenced by addPoint(), and DTOccupancyCluster().
|
private |
Definition at line 177 of file DTOccupancyCluster.cc.
References averageMean(), averageRMS(), DTOccupancyPoint::mean(), DTOccupancyPoint::rms(), and theValidity.
|
private |
Definition at line 78 of file DTOccupancyCluster.h.
Referenced by computeRadius().
|
private |
Definition at line 81 of file DTOccupancyCluster.h.
Referenced by addPoint(), DTOccupancyCluster(), and maxMean().
|
private |
Definition at line 82 of file DTOccupancyCluster.h.
Referenced by addPoint(), DTOccupancyCluster(), and maxRMS().
|
private |
Definition at line 83 of file DTOccupancyCluster.h.
Referenced by addPoint(), averageMean(), and DTOccupancyCluster().
|
private |
Definition at line 79 of file DTOccupancyCluster.h.
Referenced by addPoint(), averageMean(), averageRMS(), computeRadius(), distance(), DTOccupancyCluster(), getHisto(), getLayerIDs(), and nPoints().
|
private |
Definition at line 84 of file DTOccupancyCluster.h.
Referenced by addPoint(), averageRMS(), and DTOccupancyCluster().
|
private |
Definition at line 77 of file DTOccupancyCluster.h.
Referenced by DTOccupancyCluster(), isValid(), and qualityCriterion().