CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 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