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

165  {
166  s << "\nDumping LumiSummary\n\n";
167  if(!lumiSummary.isValid()){
168  s << " === Invalid Lumi values === \n";
169  }
170  s << " lumiVersion = " << lumiSummary.lumiVersion() << "\n";
171  s << " avgInsDelLumi = " << lumiSummary.avgInsDelLumi() << "\n";
172  s << " avgIntgDelLumi = " << lumiSummary.intgDelLumi() <<"\n";
173  s << " avgInsDelLumiErr = " << lumiSummary.avgInsDelLumiErr() << "\n";
174  s << " lumiSecQual = " << lumiSummary.lumiSecQual() << "\n";
175  s << " deadCount = " << lumiSummary.deadcount() << "\n";
176  s << " bitZeroCount = " << lumiSummary.bitzerocount() << "\n";
177  s << " deadFrac = " << (float)lumiSummary.deadFrac() << "\n";
178  s << " liveFrac = " << (float)lumiSummary.liveFrac() << "\n";
179  s << " lsNumber = " << lumiSummary.lsNumber() << "\n";
180  s << " startOrbit = " << lumiSummary.startOrbit() <<"\n";
181  s << " numOrbit = " << lumiSummary.numOrbit() <<"\n";
182  s << " avgInsRecLumi = " << lumiSummary.avgInsRecLumi() << "\n";
183  s << " avgInsRecLumiErr = " << lumiSummary.avgInsRecLumiErr() << "\n\n";
184  s << std::setw(15) << "l1nameidx";
185  s << std::setw(15) << "l1prescale";
186  s << "\n";
187  size_t nTriggers=lumiSummary.nTriggerLine();
188  size_t nHLTPath=lumiSummary.nHLTPath();
189  for(unsigned int i = 0; i < nTriggers; ++i) {
190  s << std::setw(15);
191  s << lumiSummary.l1info(i).triggernameidx;
192  s << std::setw(15);
193  s << lumiSummary.l1info(i).prescale;
194  s<<"\n";
195  }
196  s << std::setw(15) << "hltpathidx";
197  s << std::setw(15) << "hltprescale";
198  s << "\n";
199  for(unsigned int i = 0; i < nHLTPath; ++i) {
200  s << std::setw(15);
201  s << lumiSummary.hltinfo(i).pathnameidx;
202  s << std::setw(15);
203  s << lumiSummary.hltinfo(i).prescale;
204  s << "\n";
205  }
206  return s << "\n";
207 }
int i
Definition: DBlmapReader.cc:9
unsigned int startOrbit() const
Definition: LumiSummary.cc:70
L1 l1info(unsigned int idx) const
Definition: LumiSummary.cc:82
unsigned long long deadcount() const
Definition: LumiSummary.cc:33
float avgInsRecLumi() const
Definition: LumiSummary.cc:98
unsigned int prescale
Definition: LumiSummary.h:26
float intgDelLumi() const
Definition: LumiSummary.cc:17
unsigned int lsNumber() const
Definition: LumiSummary.cc:66
unsigned int numOrbit() const
Definition: LumiSummary.cc:74
float avgInsRecLumiErr() const
Definition: LumiSummary.cc:102
float avgInsDelLumi() const
Definition: LumiSummary.cc:9
float avgInsDelLumiErr() const
Definition: LumiSummary.cc:21
float liveFrac() const
Definition: LumiSummary.cc:53
size_t nTriggerLine() const
Definition: LumiSummary.cc:90
HLT hltinfo(unsigned int idx) const
Definition: LumiSummary.cc:86
std::string lumiVersion() const
Definition: LumiSummary.cc:119
size_t nHLTPath() const
Definition: LumiSummary.cc:94
float deadFrac() const
Definition: LumiSummary.cc:41
bool isValid() const
Definition: LumiSummary.cc:78
unsigned long long bitzerocount() const
Definition: LumiSummary.cc:37
short lumiSecQual() const
Definition: LumiSummary.cc:29
unsigned int prescale
Definition: LumiSummary.h:32