CMS 3D CMS Logo

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