CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_3/src/DataFormats/Luminosity/src/LumiSummary.cc File Reference

#include "DataFormats/Luminosity/interface/LumiSummary.h"
#include <iomanip>
#include <ostream>
#include <iostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const LumiSummary &lumiSummary)

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const LumiSummary lumiSummary 
)

Definition at line 165 of file LumiSummary.cc.

References LumiSummary::avgInsDelLumi(), LumiSummary::avgInsDelLumiErr(), LumiSummary::avgInsRecLumi(), LumiSummary::avgInsRecLumiErr(), LumiSummary::bitzerocount(), LumiSummary::deadcount(), LumiSummary::deadFrac(), LumiSummary::hltinfo(), i, LumiSummary::intgDelLumi(), LumiSummary::isValid(), LumiSummary::l1info(), LumiSummary::liveFrac(), LumiSummary::lsNumber(), LumiSummary::lumiSecQual(), LumiSummary::lumiVersion(), LumiSummary::nHLTPath(), LumiSummary::nTriggerLine(), LumiSummary::numOrbit(), and LumiSummary::startOrbit().

                                                                      {
  s << "\nDumping LumiSummary\n\n";
  if(!lumiSummary.isValid()){
    s << " === Invalid Lumi values === \n";
  }
  s << "  lumiVersion = " << lumiSummary.lumiVersion()  << "\n";
  s << "  avgInsDelLumi = " << lumiSummary.avgInsDelLumi() << "\n";
  s << "  avgIntgDelLumi = " << lumiSummary.intgDelLumi() <<"\n";
  s << "  avgInsDelLumiErr = " << lumiSummary.avgInsDelLumiErr() << "\n";
  s << "  lumiSecQual = " << lumiSummary.lumiSecQual() << "\n";
  s << "  deadCount = " << lumiSummary.deadcount() << "\n";
  s << "  bitZeroCount = " << lumiSummary.bitzerocount() << "\n";
  s << "  deadFrac = " << (float)lumiSummary.deadFrac() << "\n";
  s << "  liveFrac = " << (float)lumiSummary.liveFrac() << "\n";
  s << "  lsNumber = " << lumiSummary.lsNumber() << "\n";
  s << "  startOrbit = " << lumiSummary.startOrbit() <<"\n";
  s << "  numOrbit = " << lumiSummary.numOrbit() <<"\n";
  s << "  avgInsRecLumi = " << lumiSummary.avgInsRecLumi() << "\n";
  s << "  avgInsRecLumiErr = "  << lumiSummary.avgInsRecLumiErr() << "\n\n";
  s << std::setw(15) << "l1nameidx";
  s << std::setw(15) << "l1prescale";
  s << "\n";
  size_t nTriggers=lumiSummary.nTriggerLine();
  size_t nHLTPath=lumiSummary.nHLTPath();
  for(unsigned int i = 0; i < nTriggers; ++i) {
    s << std::setw(15);
    s << lumiSummary.l1info(i).triggernameidx;
    s << std::setw(15);
    s << lumiSummary.l1info(i).prescale;
    s<<"\n";
  }
  s << std::setw(15) << "hltpathidx";
  s << std::setw(15) << "hltprescale";
  s << "\n";
  for(unsigned int i = 0; i < nHLTPath; ++i) {
    s << std::setw(15);
    s << lumiSummary.hltinfo(i).pathnameidx;
    s << std::setw(15);
    s << lumiSummary.hltinfo(i).prescale;
    s << "\n";
  }
  return s << "\n";
}