CMS 3D CMS Logo

Classes | Namespaces | Functions
LumiCorrectionParam.h File Reference
#include <iosfwd>
#include <string>
#include "RecoLuminosity/LumiProducer/interface/LumiCorrectionParamRcd.h"
#include "FWCore/Framework/interface/data_default_record_trait.h"

Go to the source code of this file.

Classes

struct  edm::eventsetup::data_default_record_trait< LumiCorrectionParam >
 
class  LumiCorrectionParam
 

Namespaces

 edm::eventsetup
 

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 49 of file LumiCorrectionParam.cc.

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

49  {
50  s << "\n LumiCorrectionParam\n";
51  s << " normtag " << lumiparam.normtag() << "\n";
52  s << " corrfunc " << lumiparam.corrFunc() << "\n";
53  s << " ncollidingbx " << lumiparam.ncollidingbunches() << "\n";
54  s << " amodetag " << lumiparam.amodetag() << "\n";
55  s << " beamegev " << lumiparam.beamegev() << "\n";
56  s << " intglumi " << lumiparam.intglumi() << "\n";
57  std::map<std::string, float>::const_iterator it;
58  std::map<std::string, float>::const_iterator itBeg = lumiparam.nonlinearCoeff().begin();
59  std::map<std::string, float>::const_iterator itEnd = lumiparam.nonlinearCoeff().end();
60  for (it = itBeg; it != itEnd; ++it) {
61  s << " params " << it->first << " " << it->second << "\n";
62  }
63  std::map<unsigned int, float>::const_iterator ait;
64  std::map<unsigned int, float>::const_iterator aitBeg = lumiparam.afterglows().begin();
65  std::map<unsigned int, float>::const_iterator aitEnd = lumiparam.afterglows().end();
66  for (ait = aitBeg; ait != aitEnd; ++ait) {
67  s << " afterglows " << ait->first << " " << ait->second << "\n";
68  }
69  return s;
70 }