CMS 3D CMS Logo

Functions
DTOccupancyPoint.cc File Reference
#include "DTOccupancyPoint.h"
#include <cmath>

Go to the source code of this file.

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 74 of file DTOccupancyPoint.cc.

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

Referenced by DTOccupancyCluster::qualityCriterion().

74  {
75  double ret = (onePoint.rms() + anotherPoint.rms()) / 2.;
76  return ret;
77 }
ret
prodAgent to be discontinued
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 79 of file DTOccupancyPoint.cc.

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

Referenced by DTOccupancyCluster::qualityCriterion().

79  {
80  double ret = -1;
81  if (onePoint.rms() > anotherPoint.rms()) {
82  ret = anotherPoint.rms();
83  } else {
84  ret = onePoint.rms();
85  }
86  return ret;
87 }
ret
prodAgent to be discontinued
double rms() const
RMS of the distribution of the cell occupancies in the layer.