CMS 3D CMS Logo

Functions
CaloValidationStatistics.cc File Reference
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "SimCalorimetry/CaloSimAlgos/interface/CaloValidationStatistics.h"
#include <cmath>
#include <iostream>

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 36 of file CaloValidationStatistics.cc.

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 }