CMS 3D CMS Logo

Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DQM/DTMonitorClient/src/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 112 of file DTOccupancyPoint.cc.

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

Referenced by DTOccupancyCluster::qualityCriterion().

                                                                                                 {
  double ret = (onePoint.rms() + anotherPoint.rms())/2.;
  return ret;
}
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().

                                                                                             {
  double ret = -1;
  if(onePoint.rms() > anotherPoint.rms()) {
    ret =  anotherPoint.rms();
  } else {
    ret = onePoint.rms();
  }
  return ret;
}