#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 22 of file DTOccupancyClusterBuilder.h.
DTOccupancyClusterBuilder::DTOccupancyClusterBuilder | ( | ) |
|
virtual |
void DTOccupancyClusterBuilder::addPoint | ( | const DTOccupancyPoint & | point | ) |
Add an occupancy point for a given layer.
Definition at line 31 of file DTOccupancyClusterBuilder.cc.
References ExpressReco_HICollisions_FallBack::pt, theDistances, and thePoints.
Referenced by DTOccupancyTest::runOccupancyTest().
void DTOccupancyClusterBuilder::buildClusters | ( | ) |
build the clusters
Definition at line 42 of file DTOccupancyClusterBuilder.cc.
References buildNewCluster(), LogTrace, DTOccupancyCluster::maxMean(), maxMean, DTOccupancyCluster::maxRMS(), maxRMS, ExpressReco_HICollisions_FallBack::pt, sortClusters(), theClusters, and thePoints.
Referenced by DTOccupancyTest::runOccupancyTest().
|
private |
Definition at line 118 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 110 of file DTOccupancyClusterBuilder.cc.
References DTOccupancyCluster::distance(), ExpressReco_HICollisions_FallBack::pt, theDistancesFromTheCluster, and thePoints.
Referenced by buildNewCluster().
|
private |
Definition at line 95 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 66 of file DTOccupancyClusterBuilder.cc.
References svgfig::canvas(), trackerHits::histo, maxMean, maxRMS, and theClusters.
DTOccupancyCluster DTOccupancyClusterBuilder::getBestCluster | ( | ) | const |
get the cluster correspondig to "normal" cell occupancy.
Definition at line 174 of file DTOccupancyClusterBuilder.cc.
References theClusters.
Referenced by DTOccupancyTest::runOccupancyTest().
|
private |
Definition at line 91 of file DTOccupancyClusterBuilder.cc.
References theDistances.
Referenced by buildNewCluster().
bool DTOccupancyClusterBuilder::isProblematic | ( | DTLayerId | layerId | ) | const |
Definition at line 178 of file DTOccupancyClusterBuilder.cc.
References theProblematicLayers.
Referenced by DTOccupancyTest::runOccupancyTest().
|
private |
Definition at line 158 of file DTOccupancyClusterBuilder.cc.
References clusterIsLessThan(), LogTrace, python.multivaluedict::sort(), theClusters, and theProblematicLayers.
Referenced by buildClusters().
|
private |
Definition at line 64 of file DTOccupancyClusterBuilder.h.
Referenced by buildClusters(), buildNewCluster(), and drawClusters().
|
private |
Definition at line 65 of file DTOccupancyClusterBuilder.h.
Referenced by buildClusters(), buildNewCluster(), and drawClusters().
|
private |
Definition at line 61 of file DTOccupancyClusterBuilder.h.
Referenced by buildClusters(), buildNewCluster(), drawClusters(), getBestCluster(), and sortClusters().
|
private |
Definition at line 59 of file DTOccupancyClusterBuilder.h.
Referenced by addPoint(), computePointToPointDistances(), and getInitialPair().
|
private |
Definition at line 60 of file DTOccupancyClusterBuilder.h.
Referenced by buildNewCluster(), and computeDistancesToCluster().
|
private |
Definition at line 58 of file DTOccupancyClusterBuilder.h.
Referenced by addPoint(), buildClusters(), buildNewCluster(), computeDistancesToCluster(), and computePointToPointDistances().
|
private |
Definition at line 62 of file DTOccupancyClusterBuilder.h.
Referenced by isProblematic(), and sortClusters().