CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_6_1_1/src/SimCalorimetry/CaloSimAlgos/interface/CaloValidationStatistics.h File Reference

#include <string>
#include <iosfwd>

Go to the source code of this file.

Classes

class  CaloValidationStatistics

Functions

std::ostream & operator<< (std::ostream &os, const CaloValidationStatistics &stat)

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CaloValidationStatistics stat 
)

Definition at line 50 of file CaloValidationStatistics.cc.

References CaloValidationStatistics::expectedMean(), CaloValidationStatistics::expectedRMS(), CaloValidationStatistics::mean(), CaloValidationStatistics::name(), CaloValidationStatistics::nEntries(), and CaloValidationStatistics::RMS().

                                                                              {
  os << "OVAL " << stat.name() << " entries:" << stat.nEntries();
  if(stat.nEntries() > 0) {
     os << " Mean: " << stat.mean() 
        << " (expect " << stat.expectedMean() << ")";
  }
  if(stat.nEntries() > 1) {      
                 os << "  RMS: " << stat.RMS()
        << " (expect " << stat.expectedRMS() << ")";
  }
  return os;
}