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
DTOccupancyCluster Class Reference

#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< DTLayerIdgetLayerIDs () 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
 

of layers belonging to the cluster

More...
 
virtual ~DTOccupancyCluster ()
 Destructor. More...
 

Private Member Functions

void computeRadius ()
 
bool qualityCriterion (const DTOccupancyPoint &firstPoint, const DTOccupancyPoint &secondPoint)
 
bool qualityCriterion (const DTOccupancyPoint &anotherPoint)
 

Private Attributes

double radius
 
double theMaxMean
 
double theMaxRMS
 
double theMeanSum
 
std::vector< DTOccupancyPointthePoints
 
double theRMSSum
 
bool theValidity
 

Detailed Description

Cluster of DTOccupancyPoint used bt DTOccupancyTest to spot problematic layers. Layers are clusterized in the plane average cell occupancy - RMS of the cell occupancies.

Author
G. Cerminara - INFN Torino

Definition at line 20 of file DTOccupancyCluster.h.

Constructor & Destructor Documentation

DTOccupancyCluster::DTOccupancyCluster ( const DTOccupancyPoint firstPoint,
const DTOccupancyPoint secondPoint 
)

Constructor.

Definition at line 20 of file DTOccupancyCluster.cc.

DTOccupancyCluster::DTOccupancyCluster ( const DTOccupancyPoint singlePoint)

Constructor.

Definition at line 50 of file DTOccupancyCluster.cc.

DTOccupancyCluster::~DTOccupancyCluster ( )
virtual

Destructor.

Definition at line 61 of file DTOccupancyCluster.cc.

Member Function Documentation

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 70 of file DTOccupancyCluster.cc.

double DTOccupancyCluster::averageMean ( ) const

average cell occupancy of the layers in the cluster

Definition at line 112 of file DTOccupancyCluster.cc.

double DTOccupancyCluster::averageRMS ( ) const

average RMS of the cell occpuancy distributions of the layers in the cluster

Definition at line 118 of file DTOccupancyCluster.cc.

void DTOccupancyCluster::computeRadius ( )
private

Definition at line 179 of file DTOccupancyCluster.cc.

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 97 of file DTOccupancyCluster.cc.

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 136 of file DTOccupancyCluster.cc.

set< DTLayerId > DTOccupancyCluster::getLayerIDs ( ) const

Definition at line 199 of file DTOccupancyCluster.cc.

bool DTOccupancyCluster::isValid ( void  ) const

Check if the cluster candidate satisfies the quality requirements.

Definition at line 64 of file DTOccupancyCluster.cc.

Referenced by core.AutoHandle.AutoHandle::ReallyLoad().

double DTOccupancyCluster::maxMean ( ) const

max average cell occupancy of the layers in the cluster

Definition at line 124 of file DTOccupancyCluster.cc.

double DTOccupancyCluster::maxRMS ( ) const

max RMS of the cell occpuancy distributions of the layers in the cluster

Definition at line 130 of file DTOccupancyCluster.cc.

int DTOccupancyCluster::nPoints ( ) const

of layers belonging to the cluster

Definition at line 194 of file DTOccupancyCluster.cc.

bool DTOccupancyCluster::qualityCriterion ( const DTOccupancyPoint firstPoint,
const DTOccupancyPoint secondPoint 
)
private

Definition at line 150 of file DTOccupancyCluster.cc.

bool DTOccupancyCluster::qualityCriterion ( const DTOccupancyPoint anotherPoint)
private

Definition at line 164 of file DTOccupancyCluster.cc.

Member Data Documentation

double DTOccupancyCluster::radius
private

Definition at line 78 of file DTOccupancyCluster.h.

double DTOccupancyCluster::theMaxMean
private

Definition at line 81 of file DTOccupancyCluster.h.

double DTOccupancyCluster::theMaxRMS
private

Definition at line 82 of file DTOccupancyCluster.h.

double DTOccupancyCluster::theMeanSum
private

Definition at line 83 of file DTOccupancyCluster.h.

std::vector<DTOccupancyPoint> DTOccupancyCluster::thePoints
private

Definition at line 79 of file DTOccupancyCluster.h.

double DTOccupancyCluster::theRMSSum
private

Definition at line 84 of file DTOccupancyCluster.h.

bool DTOccupancyCluster::theValidity
private

Definition at line 77 of file DTOccupancyCluster.h.