CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_8_patch3/src/TBDataFormats/HcalTBObjects/src/HcalTBRunData.cc

Go to the documentation of this file.
00001 #include "TBDataFormats/HcalTBObjects/interface/HcalTBRunData.h"
00002 
00003 using namespace std;
00004 
00005   HcalTBRunData::HcalTBRunData() :
00006     runType_(""),
00007     beamMode_(""),
00008     beamEnergyGeV_(0.0) {
00009   }
00010 
00011   void HcalTBRunData::setRunData( const char *run_type,
00012                                   const char *beam_mode,
00013                                   double      beam_energy_gev ) {
00014     runType_       = run_type;
00015     beamMode_      = beam_mode;
00016     beamEnergyGeV_ = beam_energy_gev;
00017   }
00018 
00019   ostream& operator<<(ostream& s, const HcalTBRunData& htbrd) {
00020     s << "Run type    = " << htbrd.runType()  << endl;
00021     s << "Beam Mode   = " << htbrd.beamMode() << endl;
00022     s << "Beam Energy = " << htbrd.beamEnergyGeV() << " GeV" << endl;
00023     return s;
00024   }