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

◆ operator<<()

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

Definition at line 39 of file LumiInfo.cc.

References mps_fire::i, pileupCalc::lumiInfo, and alignCSCRings::s.

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 }