CMS 3D CMS Logo

Functions
BeamCurrentInfo.cc File Reference
#include "DataFormats/Luminosity/interface/BeamCurrentInfo.h"
#include "DataFormats/Math/interface/libminifloat.h"
#include <iomanip>
#include <ostream>
#include <iostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const BeamCurrentInfo &beamInfo)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const BeamCurrentInfo beamInfo 
)

Definition at line 64 of file BeamCurrentInfo.cc.

References BeamCurrentInfo::getBeam1Intensities(), BeamCurrentInfo::getBeam1IntensitiesPacked(), BeamCurrentInfo::getBeam2Intensities(), mps_fire::i, and alignCSCRings::s.

64  {
65  s << std::endl << "Dumping BeamCurrentInfo..." << std::endl;
66  s << " beam1Intensities = ";
67  const std::vector<float>& b1int = beamInfo.getBeam1Intensities();
68  const std::vector<uint16_t>& b1intPacked = beamInfo.getBeam1IntensitiesPacked();
69  for (unsigned int i = 0; i < 10 && i < b1int.size(); ++i) {
70  s << b1int[i] << " ";
71  }
72  s << "..." << std::endl << " (packed: ";
73  for (unsigned int i = 0; i < 10 && i < b1intPacked.size(); ++i) {
74  s << b1intPacked[i] << " ";
75  }
76  s << "...)" << std::endl;
77  s << " beam2Intensities = ";
78  const std::vector<float>& b2int = beamInfo.getBeam2Intensities();
79  for (unsigned int i = 0; i < 10 && i < b2int.size(); ++i) {
80  s << b2int[i] << " ";
81  }
82  s << " ..." << std::endl;
83 
84  return s;
85 }
const std::vector< float > & getBeam1Intensities() const
const std::vector< uint16_t > & getBeam1IntensitiesPacked() const
const std::vector< float > & getBeam2Intensities() const