CMS 3D CMS Logo

Functions
DIPLumiDetail.cc File Reference
#include "RecoLuminosity/LumiProducer/interface/DIPLumiDetail.h"
#include <iomanip>
#include <ostream>
#include <iostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, DIPLumiDetail const &diplumiDetail)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
DIPLumiDetail const &  diplumiDetail 
)

Definition at line 45 of file DIPLumiDetail.cc.

References gather_cfg::cout, alignBH_cfg::fixed, mps_fire::i, DIPLumiDetail::lumiValues(), and alignCSCRings::s.

45  {
46  s << "\nDumping DIPLumiDetail\n";
47  std::cout.setf(std::ios::fixed,std::ios::floatfield);
48  std::cout.setf(std::ios::showpoint);
49  std::vector<float>::const_iterator lumivalueIt= diplumiDetail.lumiValues().first;
50  std::vector<float>::const_iterator lumivalueEnd = diplumiDetail.lumiValues().second;
51  for(unsigned int i=0; lumivalueIt!=lumivalueEnd;++lumivalueIt,++i){
52  s<<std::setw(10)<<" bunch = "<<i<<" bunchlumi = "<<*lumivalueIt << "\n";
53  }
54  s<<"\n";
55  return s;
56 }