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 82 of file BeamCurrentInfo.cc.

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

82  {
83  s << std::endl << "Dumping BeamCurrentInfo..." << std::endl;
84  s << " beam1Intensities = ";
85  const std::vector<float>& b1int = beamInfo.getBeam1Intensities();
86  const std::vector<uint16_t>& b1intPacked = beamInfo.getBeam1IntensitiesPacked();
87  for (unsigned int i=0; i<10 && i<b1int.size(); ++i) {
88  s << b1int.at(i) << " ";
89  }
90  s << "..." << std::endl << " (packed: ";
91  for (unsigned int i=0; i<10 && i<b1intPacked.size(); ++i) {
92  s << b1intPacked.at(i) << " ";
93  }
94  s << "...)" << std::endl;
95  s << " beam2Intensities = ";
96  const std::vector<float>& b2int = beamInfo.getBeam2Intensities();
97  for (unsigned int i=0; i<10 && i<b2int.size(); ++i) {
98  s << b2int.at(i) << " ";
99  }
100  s << " ..." << std::endl;
101 
102  return s;
103 }
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