CMS 3D CMS Logo

Classes | Functions
CaloValidationStatistics.h File Reference
#include <iosfwd>
#include <string>

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 36 of file CaloValidationStatistics.cc.

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

36  {
37  os << "OVAL " << stat.name() << " entries:" << stat.nEntries();
38  if (stat.nEntries() > 0) {
39  os << " Mean: " << stat.mean() << " (expect " << stat.expectedMean() << ")";
40  }
41  if (stat.nEntries() > 1) {
42  os << " RMS: " << stat.RMS() << " (expect " << stat.expectedRMS() << ")";
43  }
44  return os;
45 }