CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HcalTBRunData Class Reference

#include <HcalTBRunData.h>

Public Member Functions

double beamEnergyGeV () const
 Returns the beam energy in GeV. More...
 
const std::string & beamMode () const
 Returns the beam mode string. More...
 
 HcalTBRunData ()
 
const std::string & runType () const
 Returns the run type string. More...
 
void setRunData (const char *run_type, const char *beam_mode, double beam_energy_gev)
 

Private Attributes

double beamEnergyGeV_
 
std::string beamMode_
 
std::string runType_
 

Detailed Description

This class contains data associated with a run, such as character strings describing the run type, beam mode, and also the beam energy.

Date
2005/10/06 22:21:33
Revision
1.2
Author
P. Dudero - Minnesota

Definition at line 16 of file HcalTBRunData.h.

Constructor & Destructor Documentation

◆ HcalTBRunData()

HcalTBRunData::HcalTBRunData ( )

Definition at line 5 of file HcalTBRunData.cc.

5 : runType_(""), beamMode_(""), beamEnergyGeV_(0.0) {}

Member Function Documentation

◆ beamEnergyGeV()

double HcalTBRunData::beamEnergyGeV ( ) const
inline

Returns the beam energy in GeV.

Definition at line 27 of file HcalTBRunData.h.

27 { return beamEnergyGeV_; }

References beamEnergyGeV_.

Referenced by operator<<().

◆ beamMode()

const std::string& HcalTBRunData::beamMode ( ) const
inline

Returns the beam mode string.

Definition at line 24 of file HcalTBRunData.h.

24 { return beamMode_; }

References beamMode_.

Referenced by operator<<().

◆ runType()

const std::string& HcalTBRunData::runType ( ) const
inline

Returns the run type string.

Definition at line 22 of file HcalTBRunData.h.

22 { return runType_; }

References runType_.

Referenced by operator<<().

◆ setRunData()

void HcalTBRunData::setRunData ( const char *  run_type,
const char *  beam_mode,
double  beam_energy_gev 
)

Definition at line 7 of file HcalTBRunData.cc.

7  {
8  runType_ = run_type;
9  beamMode_ = beam_mode;
10  beamEnergyGeV_ = beam_energy_gev;
11 }

References beamEnergyGeV_, beamMode_, and runType_.

Referenced by hcaltb::HcalTBSlowDataUnpacker::unpack().

Member Data Documentation

◆ beamEnergyGeV_

double HcalTBRunData::beamEnergyGeV_
private

Definition at line 35 of file HcalTBRunData.h.

Referenced by beamEnergyGeV(), and setRunData().

◆ beamMode_

std::string HcalTBRunData::beamMode_
private

Definition at line 34 of file HcalTBRunData.h.

Referenced by beamMode(), and setRunData().

◆ runType_

std::string HcalTBRunData::runType_
private

Definition at line 33 of file HcalTBRunData.h.

Referenced by runType(), and setRunData().

HcalTBRunData::beamEnergyGeV_
double beamEnergyGeV_
Definition: HcalTBRunData.h:35
HcalTBRunData::runType_
std::string runType_
Definition: HcalTBRunData.h:33
HcalTBRunData::beamMode_
std::string beamMode_
Definition: HcalTBRunData.h:34