CMS 3D CMS Logo

Functions
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

◆ operator<<()

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

Definition at line 81 of file LumiSummary.cc.

References nano_mu_digi_cff::float, mps_fire::i, bphysicsOniaDQM_cfi::lumiSummary, and alignCSCRings::s.

81  {
82  s << "\nDumping LumiSummary\n\n";
83  if (!lumiSummary.isValid()) {
84  s << " === Invalid Lumi values === \n";
85  }
86  s << " lumiVersion = " << lumiSummary.lumiVersion() << "\n";
87  s << " avgInsDelLumi = " << lumiSummary.avgInsDelLumi() << "\n";
88  s << " avgIntgDelLumi = " << lumiSummary.intgDelLumi() << "\n";
89  s << " avgInsDelLumiErr = " << lumiSummary.avgInsDelLumiErr() << "\n";
90  s << " lumiSecQual = " << lumiSummary.lumiSecQual() << "\n";
91  s << " deadCount = " << lumiSummary.deadcount() << "\n";
92  s << " bitZeroCount = " << lumiSummary.bitzerocount() << "\n";
93  s << " deadFrac = " << (float)lumiSummary.deadFrac() << "\n";
94  s << " liveFrac = " << (float)lumiSummary.liveFrac() << "\n";
95  s << " lsNumber = " << lumiSummary.lsNumber() << "\n";
96  s << " startOrbit = " << lumiSummary.startOrbit() << "\n";
97  s << " numOrbit = " << lumiSummary.numOrbit() << "\n";
98  s << " avgInsRecLumi = " << lumiSummary.avgInsRecLumi() << "\n";
99  s << " avgInsRecLumiErr = " << lumiSummary.avgInsRecLumiErr() << "\n\n";
100  s << std::setw(15) << "l1nameidx";
101  s << std::setw(15) << "l1prescale";
102  s << "\n";
103  size_t nTriggers = lumiSummary.nTriggerLine();
104  size_t nHLTPath = lumiSummary.nHLTPath();
105  for (unsigned int i = 0; i < nTriggers; ++i) {
106  s << std::setw(15);
107  s << lumiSummary.l1info(i).triggernameidx;
108  s << std::setw(15);
109  s << lumiSummary.l1info(i).prescale;
110  s << "\n";
111  }
112  s << std::setw(15) << "hltpathidx";
113  s << std::setw(15) << "hltprescale";
114  s << "\n";
115  for (unsigned int i = 0; i < nHLTPath; ++i) {
116  s << std::setw(15);
117  s << lumiSummary.hltinfo(i).pathnameidx;
118  s << std::setw(15);
119  s << lumiSummary.hltinfo(i).prescale;
120  s << "\n";
121  }
122  return s << "\n";
123 }