CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
DTOccupancyClusterBuilder Class Reference

#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< DTOccupancyClustertheClusters
 
std::map< double, std::pair
< DTOccupancyPoint,
DTOccupancyPoint > > 
theDistances
 
std::map< double,
DTOccupancyPoint
theDistancesFromTheCluster
 
std::set< DTOccupancyPointthePoints
 
std::set< DTLayerIdtheProblematicLayers
 

Detailed Description

Build clusters of layer occupancies (DTOccupancyCluster) to spot problematic layers. It's used by DTOccupancyTest.

Author
G. Cerminara - INFN Torino

Definition at line 20 of file DTOccupancyClusterBuilder.h.

Constructor & Destructor Documentation

DTOccupancyClusterBuilder::DTOccupancyClusterBuilder ( )

Constructor.

Definition at line 21 of file DTOccupancyClusterBuilder.cc.

DTOccupancyClusterBuilder::~DTOccupancyClusterBuilder ( )
virtual

Destructor.

Definition at line 25 of file DTOccupancyClusterBuilder.cc.

Member Function Documentation

void DTOccupancyClusterBuilder::addPoint ( const DTOccupancyPoint point)

Add an occupancy point for a given layer.

Definition at line 29 of file DTOccupancyClusterBuilder.cc.

void DTOccupancyClusterBuilder::buildClusters ( )

build the clusters

Definition at line 38 of file DTOccupancyClusterBuilder.cc.

bool DTOccupancyClusterBuilder::buildNewCluster ( )
private

Definition at line 108 of file DTOccupancyClusterBuilder.cc.

void DTOccupancyClusterBuilder::computeDistancesToCluster ( const DTOccupancyCluster cluster)
private

Definition at line 100 of file DTOccupancyClusterBuilder.cc.

void DTOccupancyClusterBuilder::computePointToPointDistances ( )
private

Definition at line 85 of file DTOccupancyClusterBuilder.cc.

void DTOccupancyClusterBuilder::drawClusters ( std::string  canvasName)

draw a TH2F histograms showing the clusters

Definition at line 59 of file DTOccupancyClusterBuilder.cc.

DTOccupancyCluster DTOccupancyClusterBuilder::getBestCluster ( ) const

get the cluster correspondig to "normal" cell occupancy.

Definition at line 163 of file DTOccupancyClusterBuilder.cc.

std::pair< DTOccupancyPoint, DTOccupancyPoint > DTOccupancyClusterBuilder::getInitialPair ( )
private

Definition at line 81 of file DTOccupancyClusterBuilder.cc.

bool DTOccupancyClusterBuilder::isProblematic ( DTLayerId  layerId) const

Definition at line 167 of file DTOccupancyClusterBuilder.cc.

void DTOccupancyClusterBuilder::sortClusters ( )
private

Definition at line 147 of file DTOccupancyClusterBuilder.cc.

Member Data Documentation

double DTOccupancyClusterBuilder::maxMean
private

Definition at line 62 of file DTOccupancyClusterBuilder.h.

double DTOccupancyClusterBuilder::maxRMS
private

Definition at line 63 of file DTOccupancyClusterBuilder.h.

std::vector<DTOccupancyCluster> DTOccupancyClusterBuilder::theClusters
private

Definition at line 59 of file DTOccupancyClusterBuilder.h.

std::map<double, std::pair<DTOccupancyPoint, DTOccupancyPoint> > DTOccupancyClusterBuilder::theDistances
private

Definition at line 57 of file DTOccupancyClusterBuilder.h.

std::map<double, DTOccupancyPoint> DTOccupancyClusterBuilder::theDistancesFromTheCluster
private

Definition at line 58 of file DTOccupancyClusterBuilder.h.

std::set<DTOccupancyPoint> DTOccupancyClusterBuilder::thePoints
private

Definition at line 56 of file DTOccupancyClusterBuilder.h.

std::set<DTLayerId> DTOccupancyClusterBuilder::theProblematicLayers
private

Definition at line 60 of file DTOccupancyClusterBuilder.h.