CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
DTOccupancyPoint.h File Reference
#include <DataFormats/MuonDetId/interface/DTLayerId.h>

Go to the source code of this file.

Classes

class  DTOccupancyPoint
 

Functions

double computeAverageRMS (const DTOccupancyPoint &onePoint, const DTOccupancyPoint &anotherPoint)
 
double computeMinRMS (const DTOccupancyPoint &onePoint, const DTOccupancyPoint &anotherPoint)
 

Function Documentation

double computeAverageRMS ( const DTOccupancyPoint onePoint,
const DTOccupancyPoint anotherPoint 
)

Definition at line 112 of file DTOccupancyPoint.cc.

References run_regression::ret, and DTOccupancyPoint::rms().

Referenced by DTOccupancyCluster::qualityCriterion().

112  {
113  double ret = (onePoint.rms() + anotherPoint.rms())/2.;
114  return ret;
115 }
double rms() const
RMS of the distribution of the cell occupancies in the layer.
double computeMinRMS ( const DTOccupancyPoint onePoint,
const DTOccupancyPoint anotherPoint 
)

Definition at line 119 of file DTOccupancyPoint.cc.

References run_regression::ret, and DTOccupancyPoint::rms().

Referenced by DTOccupancyCluster::qualityCriterion().

119  {
120  double ret = -1;
121  if(onePoint.rms() > anotherPoint.rms()) {
122  ret = anotherPoint.rms();
123  } else {
124  ret = onePoint.rms();
125  }
126  return ret;
127 }
double rms() const
RMS of the distribution of the cell occupancies in the layer.