CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 81 of file LumiSummary.cc.

References LumiSummary::avgInsDelLumi(), LumiSummary::avgInsDelLumiErr(), LumiSummary::avgInsRecLumi(), LumiSummary::avgInsRecLumiErr(), LumiSummary::bitzerocount(), LumiSummary::deadcount(), LumiSummary::deadFrac(), LumiSummary::hltinfo(), mps_fire::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.

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 }
unsigned int startOrbit() const
Definition: LumiSummary.cc:48
L1 l1info(unsigned int idx) const
Definition: LumiSummary.cc:51
unsigned long long deadcount() const
Definition: LumiSummary.cc:20
float avgInsRecLumi() const
Definition: LumiSummary.cc:55
unsigned int prescale
Definition: LumiSummary.h:26
float intgDelLumi() const
Definition: LumiSummary.cc:16
unsigned int lsNumber() const
Definition: LumiSummary.cc:47
unsigned int numOrbit() const
Definition: LumiSummary.cc:49
float avgInsRecLumiErr() const
Definition: LumiSummary.cc:56
float avgInsDelLumi() const
Definition: LumiSummary.cc:8
float avgInsDelLumiErr() const
Definition: LumiSummary.cc:17
float liveFrac() const
Definition: LumiSummary.cc:35
size_t nTriggerLine() const
Definition: LumiSummary.cc:53
HLT hltinfo(unsigned int idx) const
Definition: LumiSummary.cc:52
std::string lumiVersion() const
Definition: LumiSummary.cc:63
size_t nHLTPath() const
Definition: LumiSummary.cc:54
float deadFrac() const
Definition: LumiSummary.cc:22
bool isValid() const
Definition: LumiSummary.cc:50
unsigned long long bitzerocount() const
Definition: LumiSummary.cc:21
short lumiSecQual() const
Definition: LumiSummary.cc:19
unsigned int prescale
Definition: LumiSummary.h:32