CMS 3D CMS Logo

Classes | Functions
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().

50  {
51  os << "OVAL " << stat.name() << " entries:" << stat.nEntries();
52  if(stat.nEntries() > 0) {
53  os << " Mean: " << stat.mean()
54  << " (expect " << stat.expectedMean() << ")";
55  }
56  if(stat.nEntries() > 1) {
57  os << " RMS: " << stat.RMS()
58  << " (expect " << stat.expectedRMS() << ")";
59  }
60  return os;
61 }