#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 |
virtual | ~DTOccupancyCluster () |
Destructor. More... | |
Private Member Functions | |
void | computeRadius () |
bool | qualityCriterion (const DTOccupancyPoint &anotherPoint) |
bool | qualityCriterion (const DTOccupancyPoint &firstPoint, const DTOccupancyPoint &secondPoint) |
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 19 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 46 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 65 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 101 of file DTOccupancyCluster.cc.
References theMeanSum, and thePoints.
Referenced by DTOccupancyClusterBuilder::buildNewCluster(), clusterIsLessThan(), and qualityCriterion().
double DTOccupancyCluster::averageRMS | ( | ) | const |
average RMS of the cell occpuancy distributions of the layers in the cluster
Definition at line 103 of file DTOccupancyCluster.cc.
References thePoints, and theRMSSum.
Referenced by DTOccupancyClusterBuilder::buildNewCluster(), clusterIsLessThan(), and qualityCriterion().
|
private |
Definition at line 153 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 89 of file DTOccupancyCluster.cc.
References point, DiDispStaMuonMonitor_cfi::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 109 of file DTOccupancyCluster.cc.
References RecoTauValidation_cfi::fillColor, timingPdfMaker::histo, HltBtagPostValidation_cff::histoName, HGVHistoProducerAlgoBlock_cfi::maxX, HGVHistoProducerAlgoBlock_cfi::maxY, HGVHistoProducerAlgoBlock_cfi::minX, HGVHistoProducerAlgoBlock_cfi::minY, DiDispStaMuonMonitor_cfi::pt, and thePoints.
set< DTLayerId > DTOccupancyCluster::getLayerIDs | ( | ) | const |
Definition at line 166 of file DTOccupancyCluster.cc.
References point, runTheMatrix::ret, and thePoints.
bool DTOccupancyCluster::isValid | ( | void | ) | const |
Check if the cluster candidate satisfies the quality requirements.
Definition at line 61 of file DTOccupancyCluster.cc.
References theValidity.
Referenced by ntupleDataFormat._Object::_checkIsValid(), DTOccupancyClusterBuilder::buildNewCluster(), and core.AutoHandle.AutoHandle::ReallyLoad().
double DTOccupancyCluster::maxMean | ( | ) | const |
max average cell occupancy of the layers in the cluster
Definition at line 105 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 107 of file DTOccupancyCluster.cc.
References theMaxRMS.
Referenced by DTOccupancyClusterBuilder::buildClusters(), and DTOccupancyClusterBuilder::buildNewCluster().
int DTOccupancyCluster::nPoints | ( | ) | const |
Definition at line 164 of file DTOccupancyCluster.cc.
References thePoints.
Referenced by DTOccupancyClusterBuilder::buildNewCluster(), and clusterIsLessThan().
|
private |
Definition at line 137 of file DTOccupancyCluster.cc.
References averageMean(), averageRMS(), DTOccupancyPoint::mean(), DTOccupancyPoint::rms(), and theValidity.
|
private |
Definition at line 125 of file DTOccupancyCluster.cc.
References computeAverageRMS(), computeMinRMS(), DTOccupancyPoint::deltaMean(), DTOccupancyPoint::deltaRMS(), and theValidity.
Referenced by addPoint(), and DTOccupancyCluster().
|
private |
Definition at line 82 of file DTOccupancyCluster.h.
Referenced by computeRadius().
|
private |
Definition at line 85 of file DTOccupancyCluster.h.
Referenced by addPoint(), DTOccupancyCluster(), and maxMean().
|
private |
Definition at line 86 of file DTOccupancyCluster.h.
Referenced by addPoint(), DTOccupancyCluster(), and maxRMS().
|
private |
Definition at line 87 of file DTOccupancyCluster.h.
Referenced by addPoint(), averageMean(), and DTOccupancyCluster().
|
private |
Definition at line 83 of file DTOccupancyCluster.h.
Referenced by addPoint(), averageMean(), averageRMS(), computeRadius(), distance(), DTOccupancyCluster(), getHisto(), getLayerIDs(), and nPoints().
|
private |
Definition at line 88 of file DTOccupancyCluster.h.
Referenced by addPoint(), averageRMS(), and DTOccupancyCluster().
|
private |
Definition at line 81 of file DTOccupancyCluster.h.
Referenced by DTOccupancyCluster(), isValid(), and qualityCriterion().