CMS 3D CMS Logo

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 DTOccupancyPoint::rms().

Referenced by DTOccupancyCluster::qualityCriterion().

00112                                                                                                  {
00113   double ret = (onePoint.rms() + anotherPoint.rms())/2.;
00114   return ret;
00115 }

double computeMinRMS ( const DTOccupancyPoint onePoint,
const DTOccupancyPoint anotherPoint 
)

Definition at line 119 of file DTOccupancyPoint.cc.

References DTOccupancyPoint::rms().

Referenced by DTOccupancyCluster::qualityCriterion().

00119                                                                                              {
00120   double ret = -1;
00121   if(onePoint.rms() > anotherPoint.rms()) {
00122     ret =  anotherPoint.rms();
00123   } else {
00124     ret = onePoint.rms();
00125   }
00126   return ret;
00127 }


Generated on Tue Jun 9 17:52:38 2009 for CMSSW by  doxygen 1.5.4