#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 19 of file DTOccupancyClusterBuilder.h.
DTOccupancyClusterBuilder::DTOccupancyClusterBuilder | ( | ) |
Constructor.
Definition at line 21 of file DTOccupancyClusterBuilder.cc.
|
virtual |
void DTOccupancyClusterBuilder::addPoint | ( | const DTOccupancyPoint & | point | ) |
Add an occupancy point for a given layer.
Definition at line 25 of file DTOccupancyClusterBuilder.cc.
References point, DiDispStaMuonMonitor_cfi::pt, theDistances, and thePoints.
void DTOccupancyClusterBuilder::buildClusters | ( | ) |
build the clusters
Definition at line 33 of file DTOccupancyClusterBuilder.cc.
References buildNewCluster(), LogTrace, DTOccupancyCluster::maxMean(), maxMean, DTOccupancyCluster::maxRMS(), maxRMS, DiDispStaMuonMonitor_cfi::pt, sortClusters(), theClusters, and thePoints.
|
private |
Definition at line 103 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 96 of file DTOccupancyClusterBuilder.cc.
References DTOccupancyCluster::distance(), DiDispStaMuonMonitor_cfi::pt, theDistancesFromTheCluster, and thePoints.
Referenced by buildNewCluster().
|
private |
Definition at line 85 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 54 of file DTOccupancyClusterBuilder.cc.
References svgfig::canvas(), timingPdfMaker::histo, HltBtagPostValidation_cff::histoName, maxMean, maxRMS, cms::cuda::stream, and theClusters.
DTOccupancyCluster DTOccupancyClusterBuilder::getBestCluster | ( | ) | const |
get the cluster correspondig to "normal" cell occupancy.
Definition at line 156 of file DTOccupancyClusterBuilder.cc.
References theClusters.
|
private |
Definition at line 81 of file DTOccupancyClusterBuilder.cc.
References theDistances.
Referenced by buildNewCluster().
bool DTOccupancyClusterBuilder::isProblematic | ( | DTLayerId | layerId | ) | const |
|
private |
Definition at line 141 of file DTOccupancyClusterBuilder.cc.
References clusterIsLessThan(), LogTrace, theClusters, and theProblematicLayers.
Referenced by buildClusters().
|
private |
Definition at line 60 of file DTOccupancyClusterBuilder.h.
Referenced by buildClusters(), buildNewCluster(), and drawClusters().
|
private |
Definition at line 61 of file DTOccupancyClusterBuilder.h.
Referenced by buildClusters(), buildNewCluster(), and drawClusters().
|
private |
Definition at line 57 of file DTOccupancyClusterBuilder.h.
Referenced by buildClusters(), buildNewCluster(), drawClusters(), getBestCluster(), and sortClusters().
|
private |
Definition at line 55 of file DTOccupancyClusterBuilder.h.
Referenced by addPoint(), computePointToPointDistances(), and getInitialPair().
|
private |
Definition at line 56 of file DTOccupancyClusterBuilder.h.
Referenced by buildNewCluster(), and computeDistancesToCluster().
|
private |
Definition at line 54 of file DTOccupancyClusterBuilder.h.
Referenced by addPoint(), buildClusters(), buildNewCluster(), computeDistancesToCluster(), and computePointToPointDistances().
|
private |
Definition at line 58 of file DTOccupancyClusterBuilder.h.
Referenced by isProblematic(), and sortClusters().