CMS 3D CMS Logo

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
ostream & operator<<(ostream &s, const HcalTBRunData &htbrd)
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