CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/DQM/DTMonitorClient/src/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 runTheMatrix::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 runTheMatrix::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;
}