CMS 3D CMS Logo

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

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

References DTOccupancyPoint::rms().

Referenced by DTOccupancyCluster::qualityCriterion().

110  {
111  double ret = (onePoint.rms() + anotherPoint.rms())/2.;
112  return ret;
113 }
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 117 of file DTOccupancyPoint.cc.

References DTOccupancyPoint::rms().

Referenced by DTOccupancyCluster::qualityCriterion().

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