CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
BeamCurrentInfo.h File Reference
#include <vector>
#include <iosfwd>
#include <string>
#include <stdint.h>
#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

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

Definition at line 75 of file BeamCurrentInfo.cc.

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

75  {
76  s << std::endl << "Dumping BeamCurrentInfo..." << std::endl;
77  s << " beam1Intensities = ";
78  const std::vector<float>& b1int = beamInfo.getBeam1Intensities();
79  const std::vector<uint16_t>& b1intPacked = beamInfo.getBeam1IntensitiesPacked();
80  for (unsigned int i=0; i<10 && i<b1int.size(); ++i) {
81  s << b1int[i] << " ";
82  }
83  s << "..." << std::endl << " (packed: ";
84  for (unsigned int i=0; i<10 && i<b1intPacked.size(); ++i) {
85  s << b1intPacked[i] << " ";
86  }
87  s << "...)" << std::endl;
88  s << " beam2Intensities = ";
89  const std::vector<float>& b2int = beamInfo.getBeam2Intensities();
90  for (unsigned int i=0; i<10 && i<b2int.size(); ++i) {
91  s << b2int[i] << " ";
92  }
93  s << " ..." << std::endl;
94 
95  return s;
96 }
const std::vector< float > & getBeam1Intensities() const
int i
Definition: DBlmapReader.cc:9
const std::vector< uint16_t > & getBeam1IntensitiesPacked() const
const std::vector< float > & getBeam2Intensities() const