#include <DTOccupancyClusterBuilder.h>
Public Member Functions | |
void | addPoint (const DTOccupancyPoint &point) |
Add an occupancy point for a given layer. More... | |
void | buildClusters () |
build the clusters More... | |
void | drawClusters (std::string canvasName) |
draw a TH2F histograms showing the clusters More... | |
DTOccupancyClusterBuilder () | |
Constructor. More... | |
DTOccupancyCluster | getBestCluster () const |
get the cluster correspondig to "normal" cell occupancy. More... | |
bool | isProblematic (DTLayerId layerId) const |
virtual | ~DTOccupancyClusterBuilder () |
Destructor. More... | |
Private Member Functions | |
bool | buildNewCluster () |
void | computeDistancesToCluster (const DTOccupancyCluster &cluster) |
void | computePointToPointDistances () |
std::pair< DTOccupancyPoint, DTOccupancyPoint > | getInitialPair () |
void | sortClusters () |
Private Attributes | |
double | maxMean |
double | maxRMS |
std::vector< DTOccupancyCluster > | theClusters |
std::map< double, std::pair < DTOccupancyPoint, DTOccupancyPoint > > | theDistances |
std::map< double, DTOccupancyPoint > | theDistancesFromTheCluster |
std::set< DTOccupancyPoint > | thePoints |
std::set< DTLayerId > | theProblematicLayers |
Build clusters of layer occupancies (DTOccupancyCluster) to spot problematic layers. It's used by DTOccupancyTest.
Definition at line 20 of file DTOccupancyClusterBuilder.h.
DTOccupancyClusterBuilder::DTOccupancyClusterBuilder | ( | ) |
|
virtual |
void DTOccupancyClusterBuilder::addPoint | ( | const DTOccupancyPoint & | point | ) |
Add an occupancy point for a given layer.
Definition at line 29 of file DTOccupancyClusterBuilder.cc.
References EnergyCorrector::pt, theDistances, and thePoints.
Referenced by DTOccupancyTest::runOccupancyTest().
void DTOccupancyClusterBuilder::buildClusters | ( | ) |
build the clusters
Definition at line 40 of file DTOccupancyClusterBuilder.cc.
References buildNewCluster(), LogTrace, DTOccupancyCluster::maxMean(), maxMean, DTOccupancyCluster::maxRMS(), maxRMS, EnergyCorrector::pt, sortClusters(), theClusters, and thePoints.
Referenced by DTOccupancyTest::runOccupancyTest().
|
private |
Definition at line 116 of file DTOccupancyClusterBuilder.cc.
References DTOccupancyCluster::addPoint(), DTOccupancyCluster::averageMean(), DTOccupancyCluster::averageRMS(), computeDistancesToCluster(), computePointToPointDistances(), getInitialPair(), DTOccupancyCluster::isValid(), LogTrace, DTOccupancyCluster::maxMean(), maxMean, DTOccupancyCluster::maxRMS(), maxRMS, DTOccupancyCluster::nPoints(), theClusters, theDistancesFromTheCluster, and thePoints.
Referenced by buildClusters().
|
private |
Definition at line 108 of file DTOccupancyClusterBuilder.cc.
References DTOccupancyCluster::distance(), EnergyCorrector::pt, theDistancesFromTheCluster, and thePoints.
Referenced by buildNewCluster().
|
private |
Definition at line 93 of file DTOccupancyClusterBuilder.cc.
References theDistances, and thePoints.
Referenced by buildNewCluster().
void DTOccupancyClusterBuilder::drawClusters | ( | std::string | canvasName | ) |
draw a TH2F histograms showing the clusters
Definition at line 64 of file DTOccupancyClusterBuilder.cc.
References svgfig::canvas(), timingPdfMaker::histo, hltbtagharvestinganalyzer_cfi::histoName, maxMean, maxRMS, edmStreamStallGrapher::stream, and theClusters.
DTOccupancyCluster DTOccupancyClusterBuilder::getBestCluster | ( | ) | const |
get the cluster correspondig to "normal" cell occupancy.
Definition at line 172 of file DTOccupancyClusterBuilder.cc.
References theClusters.
Referenced by DTOccupancyTest::runOccupancyTest().
|
private |
Definition at line 89 of file DTOccupancyClusterBuilder.cc.
References theDistances.
Referenced by buildNewCluster().
bool DTOccupancyClusterBuilder::isProblematic | ( | DTLayerId | layerId | ) | const |
Definition at line 176 of file DTOccupancyClusterBuilder.cc.
References theProblematicLayers.
Referenced by DTOccupancyTest::runOccupancyTest().
|
private |
Definition at line 156 of file DTOccupancyClusterBuilder.cc.
References clusterIsLessThan(), LogTrace, python.multivaluedict::sort(), theClusters, and theProblematicLayers.
Referenced by buildClusters().
|
private |
Definition at line 62 of file DTOccupancyClusterBuilder.h.
Referenced by buildClusters(), buildNewCluster(), and drawClusters().
|
private |
Definition at line 63 of file DTOccupancyClusterBuilder.h.
Referenced by buildClusters(), buildNewCluster(), and drawClusters().
|
private |
Definition at line 59 of file DTOccupancyClusterBuilder.h.
Referenced by buildClusters(), buildNewCluster(), drawClusters(), getBestCluster(), and sortClusters().
|
private |
Definition at line 57 of file DTOccupancyClusterBuilder.h.
Referenced by addPoint(), computePointToPointDistances(), and getInitialPair().
|
private |
Definition at line 58 of file DTOccupancyClusterBuilder.h.
Referenced by buildNewCluster(), and computeDistancesToCluster().
|
private |
Definition at line 56 of file DTOccupancyClusterBuilder.h.
Referenced by addPoint(), buildClusters(), buildNewCluster(), computeDistancesToCluster(), and computePointToPointDistances().
|
private |
Definition at line 60 of file DTOccupancyClusterBuilder.h.
Referenced by isProblematic(), and sortClusters().