24 for(
unsigned int iCell=0; iCell<nCells; ++iCell){
26 etaSum2 +=
eta[iCell]*
eta[iCell];
28 phiSum += thisCellPhi;
29 phiSum2 += thisCellPhi*thisCellPhi;
33 m_etaMean = etaSum/
static_cast<double>(nCells);
34 m_phiMean = phiSum/
static_cast<double>(nCells);
36 double varianceCorrection = (double)nCells / (
double)(nCells-1);
40 return std::make_pair(etaVariance,phiVariance);