CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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

Definition at line 166 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(), LumiSummary::HLT::pathnameidx, LumiSummary::L1::prescale, LumiSummary::HLT::prescale, LumiSummary::startOrbit(), and LumiSummary::L1::triggernameidx.

166  {
167  s << "\nDumping LumiSummary\n\n";
168  if(!lumiSummary.isValid()){
169  s << " === Invalid Lumi values === \n";
170  }
171  s << " lumiVersion = " << lumiSummary.lumiVersion() << "\n";
172  s << " avgInsDelLumi = " << lumiSummary.avgInsDelLumi() << "\n";
173  s << " avgIntgDelLumi = " << lumiSummary.intgDelLumi() <<"\n";
174  s << " avgInsDelLumiErr = " << lumiSummary.avgInsDelLumiErr() << "\n";
175  s << " lumiSecQual = " << lumiSummary.lumiSecQual() << "\n";
176  s << " deadCount = " << lumiSummary.deadcount() << "\n";
177  s << " bitZeroCount = " << lumiSummary.bitzerocount() << "\n";
178  s << " deadFrac = " << (float)lumiSummary.deadFrac() << "\n";
179  s << " liveFrac = " << (float)lumiSummary.liveFrac() << "\n";
180  s << " lsNumber = " << lumiSummary.lsNumber() << "\n";
181  s << " startOrbit = " << lumiSummary.startOrbit() <<"\n";
182  s << " numOrbit = " << lumiSummary.numOrbit() <<"\n";
183  s << " avgInsRecLumi = " << lumiSummary.avgInsRecLumi() << "\n";
184  s << " avgInsRecLumiErr = " << lumiSummary.avgInsRecLumiErr() << "\n\n";
185  s << std::setw(15) << "l1nameidx";
186  s << std::setw(15) << "l1prescale";
187  s << "\n";
188  size_t nTriggers=lumiSummary.nTriggerLine();
189  size_t nHLTPath=lumiSummary.nHLTPath();
190  for(unsigned int i = 0; i < nTriggers; ++i) {
191  s << std::setw(15);
192  s << lumiSummary.l1info(i).triggernameidx;
193  s << std::setw(15);
194  s << lumiSummary.l1info(i).prescale;
195  s<<"\n";
196  }
197  s << std::setw(15) << "hltpathidx";
198  s << std::setw(15) << "hltprescale";
199  s << "\n";
200  for(unsigned int i = 0; i < nHLTPath; ++i) {
201  s << std::setw(15);
202  s << lumiSummary.hltinfo(i).pathnameidx;
203  s << std::setw(15);
204  s << lumiSummary.hltinfo(i).prescale;
205  s << "\n";
206  }
207  return s << "\n";
208 }
int i
Definition: DBlmapReader.cc:9
unsigned int startOrbit() const
Definition: LumiSummary.cc:71
L1 l1info(unsigned int idx) const
Definition: LumiSummary.cc:83
unsigned long long deadcount() const
Definition: LumiSummary.cc:34
float avgInsRecLumi() const
Definition: LumiSummary.cc:99
unsigned int prescale
Definition: LumiSummary.h:27
float intgDelLumi() const
Definition: LumiSummary.cc:18
unsigned int lsNumber() const
Definition: LumiSummary.cc:67
unsigned int numOrbit() const
Definition: LumiSummary.cc:75
float avgInsRecLumiErr() const
Definition: LumiSummary.cc:103
float avgInsDelLumi() const
Definition: LumiSummary.cc:10
float avgInsDelLumiErr() const
Definition: LumiSummary.cc:22
float liveFrac() const
Definition: LumiSummary.cc:54
size_t nTriggerLine() const
Definition: LumiSummary.cc:91
HLT hltinfo(unsigned int idx) const
Definition: LumiSummary.cc:87
std::string lumiVersion() const
Definition: LumiSummary.cc:120
size_t nHLTPath() const
Definition: LumiSummary.cc:95
float deadFrac() const
Definition: LumiSummary.cc:42
bool isValid() const
Definition: LumiSummary.cc:79
unsigned long long bitzerocount() const
Definition: LumiSummary.cc:38
short lumiSecQual() const
Definition: LumiSummary.cc:30
unsigned int prescale
Definition: LumiSummary.h:33