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 47 of file LumiInfo.cc.

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

47  {
48  s << "\nDumping LumiInfo\n\n";
49  s << " getTotalInstLumi = " << lumiInfo.getTotalInstLumi() << "\n";
50  s << " integLuminosity = " << lumiInfo.integLuminosity() << "\n";
51  s << " recordedLuminosity = " << lumiInfo.recordedLuminosity() << "\n";
52  s << " deadtimeFraction = " << lumiInfo.getDeadFraction() << "\n";
53  s << " instLumiByBX = ";
54  const std::vector<float>& lumiBX = lumiInfo.getInstLumiAllBX();
55  for (unsigned int i=0; i<10 && i<lumiBX.size(); ++i) {
56  s << lumiBX.at(i) << " ";
57  }
58  s << " ...\n";
59 
60  return s << "\n";
61 }
float getTotalInstLumi() const
Definition: LumiInfo.h:92
float recordedLuminosity() const
Definition: LumiInfo.cc:25
float integLuminosity() const
Definition: LumiInfo.cc:17
const std::vector< float > & getInstLumiAllBX() const
Definition: LumiInfo.h:100
float getDeadFraction() const
Definition: LumiInfo.h:112