TBDataFormats
HcalTBObjects
src
HcalTBRunData.cc
Go to the documentation of this file.
1
#include "
TBDataFormats/HcalTBObjects/interface/HcalTBRunData.h
"
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
}
HcalTBRunData::beamEnergyGeV
double beamEnergyGeV() const
Returns the beam energy in GeV.
Definition:
HcalTBRunData.h:27
HcalTBRunData::beamEnergyGeV_
double beamEnergyGeV_
Definition:
HcalTBRunData.h:35
HcalTBRunData::HcalTBRunData
HcalTBRunData()
Definition:
HcalTBRunData.cc:5
operator<<
ostream & operator<<(ostream &s, const HcalTBRunData &htbrd)
Definition:
HcalTBRunData.cc:13
HcalTBRunData::runType_
std::string runType_
Definition:
HcalTBRunData.h:33
HcalTBRunData::beamMode_
std::string beamMode_
Definition:
HcalTBRunData.h:34
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
HcalTBRunData
Definition:
HcalTBRunData.h:16
HcalTBRunData.h
HcalTBRunData::runType
const std::string & runType() const
Returns the run type string.
Definition:
HcalTBRunData.h:22
HcalTBRunData::beamMode
const std::string & beamMode() const
Returns the beam mode string.
Definition:
HcalTBRunData.h:24
std
Definition:
JetResolutionObject.h:76
HcalTBRunData::setRunData
void setRunData(const char *run_type, const char *beam_mode, double beam_energy_gev)
Definition:
HcalTBRunData.cc:7
Generated for CMSSW Reference Manual by
1.8.16