CMS 3D CMS Logo

Functions
LumiInfo.cc File Reference
#include "DataFormats/Luminosity/interface/LumiInfo.h"
#include <vector>
#include <iomanip>
#include <ostream>
#include <iostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const LumiInfo &lumiInfo)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const LumiInfo lumiInfo 
)

Definition at line 39 of file LumiInfo.cc.

References LumiInfo::getDeadFraction(), LumiInfo::getInstLumiAllBX(), LumiInfo::getTotalInstLumi(), mps_fire::i, LumiInfo::integLuminosity(), and LumiInfo::recordedLuminosity().

39  {
40  s << "\nDumping LumiInfo\n\n";
41  s << " getTotalInstLumi = " << lumiInfo.getTotalInstLumi() << "\n";
42  s << " integLuminosity = " << lumiInfo.integLuminosity() << "\n";
43  s << " recordedLuminosity = " << lumiInfo.recordedLuminosity() << "\n";
44  s << " deadtimeFraction = " << lumiInfo.getDeadFraction() << "\n";
45  s << " instLumiByBX = ";
46  const std::vector<float>& lumiBX = lumiInfo.getInstLumiAllBX();
47  for (unsigned int i = 0; i < 10 && i < lumiBX.size(); ++i) {
48  s << lumiBX.at(i) << " ";
49  }
50  s << " ...\n";
51 
52  return s << "\n";
53 }
float getTotalInstLumi() const
Definition: LumiInfo.h:85
float recordedLuminosity() const
Definition: LumiInfo.cc:20
float integLuminosity() const
Definition: LumiInfo.cc:16
const std::vector< float > & getInstLumiAllBX() const
Definition: LumiInfo.h:93
float getDeadFraction() const
Definition: LumiInfo.h:105