CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalTBRunData.cc
Go to the documentation of this file.
2 
3 using namespace std;
4 
5 HcalTBRunData::HcalTBRunData() : runType_(""), beamMode_(""), beamEnergyGeV_(0.0) {}
6 
7 void HcalTBRunData::setRunData(const char* run_type, const char* beam_mode, double beam_energy_gev) {
8  runType_ = run_type;
9  beamMode_ = beam_mode;
10  beamEnergyGeV_ = beam_energy_gev;
11 }
12 
13 ostream& operator<<(ostream& s, const HcalTBRunData& htbrd) {
14  s << "Run type = " << htbrd.runType() << endl;
15  s << "Beam Mode = " << htbrd.beamMode() << endl;
16  s << "Beam Energy = " << htbrd.beamEnergyGeV() << " GeV" << endl;
17  return s;
18 }
double beamEnergyGeV() const
Returns the beam energy in GeV.
Definition: HcalTBRunData.h:27
void setRunData(const char *run_type, const char *beam_mode, double beam_energy_gev)
Definition: HcalTBRunData.cc:7
std::string beamMode_
Definition: HcalTBRunData.h:34
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
double beamEnergyGeV_
Definition: HcalTBRunData.h:35
std::string runType_
Definition: HcalTBRunData.h:33
const std::string & beamMode() const
Returns the beam mode string.
Definition: HcalTBRunData.h:24
const std::string & runType() const
Returns the run type string.
Definition: HcalTBRunData.h:22