CMS 3D CMS Logo

Classes | Functions
LumiInfo.h File Reference
#include <vector>
#include <iosfwd>
#include <string>
#include "DataFormats/Luminosity/interface/LumiConstants.h"

Go to the source code of this file.

Classes

class  LumiInfo
 

Functions

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

Function Documentation

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

Definition at line 42 of file LumiInfo.cc.

References LumiInfo::deadFraction(), LumiInfo::getInstLumiAllBX(), i, LumiInfo::instLuminosity(), LumiInfo::integLuminosity(), and LumiInfo::recordedLuminosity().

42  {
43  s << "\nDumping LumiInfo\n\n";
44  s << " instLuminosity = " << lumiInfo.instLuminosity() << "\n";
45  s << " integLuminosity = " << lumiInfo.integLuminosity() << "\n";
46  s << " recordedLuminosity = " << lumiInfo.recordedLuminosity() << "\n";
47  s << " deadtimeFraction = " << lumiInfo.deadFraction() << "\n";
48  s << " instLumiByBX = ";
49  const std::vector<float>& lumiBX = lumiInfo.getInstLumiAllBX();
50  for (unsigned int i=0; i<10 && i<lumiBX.size(); ++i) {
51  s << lumiBX.at(i) << " ";
52  }
53  s << " ...\n";
54 
55  return s << "\n";
56 }
int i
Definition: DBlmapReader.cc:9
float recordedLuminosity() const
Definition: LumiInfo.cc:20
float deadFraction() const
Definition: LumiInfo.h:57
float integLuminosity() const
Definition: LumiInfo.cc:16
float instLuminosity() const
Definition: LumiInfo.cc:7
const std::vector< float > & getInstLumiAllBX() const
Definition: LumiInfo.h:65