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

◆ computeAverageRMS()

double computeAverageRMS ( const DTOccupancyPoint onePoint,
const DTOccupancyPoint anotherPoint 
)

Definition at line 74 of file DTOccupancyPoint.cc.

74  {
75  double ret = (onePoint.rms() + anotherPoint.rms()) / 2.;
76  return ret;
77 }

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

Referenced by DTOccupancyCluster::qualityCriterion().

◆ computeMinRMS()

double computeMinRMS ( const DTOccupancyPoint onePoint,
const DTOccupancyPoint anotherPoint 
)

Definition at line 79 of file DTOccupancyPoint.cc.

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 }

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

Referenced by DTOccupancyCluster::qualityCriterion().

runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:355
DTOccupancyPoint::rms
double rms() const
RMS of the distribution of the cell occupancies in the layer.
Definition: DTOccupancyPoint.cc:29