test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
LumiCorrectionParam.cc File Reference
#include "RecoLuminosity/LumiProducer/interface/LumiCorrectionParam.h"
#include "RecoLuminosity/LumiProducer/interface/NormFunctor.h"
#include "RecoLuminosity/LumiProducer/interface/NormFunctorPluginFactory.h"
#include <iomanip>
#include <ostream>
#include <memory>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, LumiCorrectionParam const &lumiparam)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
LumiCorrectionParam const &  lumiparam 
)

Definition at line 79 of file LumiCorrectionParam.cc.

References LumiCorrectionParam::afterglows(), LumiCorrectionParam::amodetag(), LumiCorrectionParam::beamegev(), LumiCorrectionParam::corrFunc(), LumiCorrectionParam::intglumi(), LumiCorrectionParam::ncollidingbunches(), LumiCorrectionParam::nonlinearCoeff(), LumiCorrectionParam::normtag(), and alignCSCRings::s.

79  {
80  s<<"\n LumiCorrectionParam\n";
81  s<< " normtag " << lumiparam.normtag() << "\n";
82  s<< " corrfunc " << lumiparam.corrFunc() << "\n";
83  s<< " ncollidingbx " << lumiparam.ncollidingbunches() << "\n";
84  s<< " amodetag " << lumiparam.amodetag() << "\n";
85  s<< " beamegev " << lumiparam.beamegev() << "\n";
86  s<< " intglumi " << lumiparam.intglumi() << "\n";
87  std::map< std::string,float >::const_iterator it;
88  std::map< std::string,float >::const_iterator itBeg=lumiparam.nonlinearCoeff().begin();
89  std::map< std::string,float >::const_iterator itEnd=lumiparam.nonlinearCoeff().end();
90  for(it=itBeg;it!=itEnd;++it){
91  s<< " params "<<it->first<<" "<<it->second<<"\n";
92  }
93  std::map< unsigned int,float >::const_iterator ait;
94  std::map< unsigned int,float >::const_iterator aitBeg=lumiparam.afterglows().begin();
95  std::map< unsigned int,float >::const_iterator aitEnd=lumiparam.afterglows().end();
96  for(ait=aitBeg;ait!=aitEnd;++ait){
97  s<< " afterglows "<<ait->first<<" "<<ait->second<<"\n";
98  }
99  return s;
100 }