CMS 3D CMS Logo

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

Go to the source code of this file.

Classes

class  BeamCurrentInfo
 

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.

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 }

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

mps_fire.i
i
Definition: mps_fire.py:355
alignCSCRings.s
s
Definition: alignCSCRings.py:92
BeamCurrentInfo::getBeam1Intensities
const std::vector< float > & getBeam1Intensities() const
Definition: BeamCurrentInfo.cc:12
BeamCurrentInfo::getBeam1IntensitiesPacked
const std::vector< uint16_t > & getBeam1IntensitiesPacked() const
Definition: BeamCurrentInfo.h:61
BeamCurrentInfo::getBeam2Intensities
const std::vector< float > & getBeam2Intensities() const
Definition: BeamCurrentInfo.cc:16