#include <BeamCurrentInfo.h>
Public Member Functions | |
BeamCurrentInfo () | |
default constructor More... | |
BeamCurrentInfo (const std::vector< float > &beam1Intensities, const std::vector< float > &beam2Intensities) | |
constructor with fill More... | |
void | fill (const std::vector< float > &beam1Intensities, const std::vector< float > &beam2Intensities) |
void | fillBeamIntensities (const std::vector< float > &beam1Intensities, const std::vector< float > &beam2Intensities) |
const std::vector< float > & | getBeam1Intensities () const |
const std::vector< uint16_t > & | getBeam1IntensitiesPacked () const |
float | getBeam1IntensityBX (int bx) const |
const std::vector< float > & | getBeam2Intensities () const |
const std::vector< uint16_t > & | getBeam2IntensitiesPacked () const |
float | getBeam2IntensityBX (int bx) const |
bool | isProductEqual (BeamCurrentInfo const &next) const |
~BeamCurrentInfo () | |
destructor More... | |
Static Public Member Functions | |
static void | unpackData (const std::vector< uint16_t > &packed, std::vector< float > &unpacked) |
Static Public Attributes | |
static const float | scaleFactor = 1e10 |
Private Member Functions | |
void | packData () |
void | unpackData () |
Private Attributes | |
std::vector< uint16_t > | beam1IntensitiesPacked_ |
std::vector< float > | beam1IntensitiesUnpacked_ |
std::vector< uint16_t > | beam2IntensitiesPacked_ |
std::vector< float > | beam2IntensitiesUnpacked_ |
BeamCurrentInfo has been created by splitting off the beam current information from LumiInfo. See LumiInfo for more details.
Definition at line 32 of file BeamCurrentInfo.h.
|
inline |
default constructor
Definition at line 37 of file BeamCurrentInfo.h.
References beam1IntensitiesPacked_, beam1IntensitiesUnpacked_, beam2IntensitiesPacked_, beam2IntensitiesUnpacked_, and LumiConstants::numBX.
|
inline |
constructor with fill
Definition at line 45 of file BeamCurrentInfo.h.
References beam1IntensitiesUnpacked_, beam2IntensitiesUnpacked_, and packData().
|
inline |
destructor
Definition at line 53 of file BeamCurrentInfo.h.
References getBeam1Intensities(), getBeam1IntensityBX(), getBeam2Intensities(), and getBeam2IntensityBX().
void BeamCurrentInfo::fill | ( | const std::vector< float > & | beam1Intensities, |
const std::vector< float > & | beam2Intensities | ||
) |
Definition at line 38 of file BeamCurrentInfo.cc.
References fillBeamIntensities().
Referenced by getBeam2IntensitiesPacked().
void BeamCurrentInfo::fillBeamIntensities | ( | const std::vector< float > & | beam1Intensities, |
const std::vector< float > & | beam2Intensities | ||
) |
Definition at line 31 of file BeamCurrentInfo.cc.
References beam1IntensitiesUnpacked_, beam2IntensitiesUnpacked_, and packData().
Referenced by fill(), and getBeam2IntensitiesPacked().
const std::vector< float > & BeamCurrentInfo::getBeam1Intensities | ( | ) | const |
Definition at line 14 of file BeamCurrentInfo.cc.
References beam1IntensitiesUnpacked_.
Referenced by operator<<(), and ~BeamCurrentInfo().
|
inline |
Definition at line 62 of file BeamCurrentInfo.h.
References beam1IntensitiesPacked_.
Referenced by operator<<().
float BeamCurrentInfo::getBeam1IntensityBX | ( | int | bx | ) | const |
Definition at line 10 of file BeamCurrentInfo.cc.
References beam1IntensitiesUnpacked_.
Referenced by ~BeamCurrentInfo().
const std::vector< float > & BeamCurrentInfo::getBeam2Intensities | ( | ) | const |
Definition at line 22 of file BeamCurrentInfo.cc.
References beam2IntensitiesUnpacked_.
Referenced by operator<<(), and ~BeamCurrentInfo().
|
inline |
Definition at line 63 of file BeamCurrentInfo.h.
References beam2IntensitiesPacked_, fill(), fillBeamIntensities(), isProductEqual(), GetRecoTauVFromDQM_MC_cff::next, and unpackData().
float BeamCurrentInfo::getBeam2IntensityBX | ( | int | bx | ) | const |
Definition at line 19 of file BeamCurrentInfo.cc.
References beam2IntensitiesUnpacked_.
Referenced by ~BeamCurrentInfo().
bool BeamCurrentInfo::isProductEqual | ( | BeamCurrentInfo const & | next | ) | const |
Definition at line 26 of file BeamCurrentInfo.cc.
References beam1IntensitiesPacked_, and beam2IntensitiesPacked_.
Referenced by getBeam2IntensitiesPacked().
|
private |
Definition at line 44 of file BeamCurrentInfo.cc.
References beam1IntensitiesPacked_, beam1IntensitiesUnpacked_, beam2IntensitiesPacked_, beam2IntensitiesUnpacked_, MiniFloatConverter::float32to16(), mps_fire::i, scaleFactor, and unpackData().
Referenced by BeamCurrentInfo(), and fillBeamIntensities().
|
static |
Definition at line 60 of file BeamCurrentInfo.cc.
References MiniFloatConverter::float16to32(), mps_fire::i, and scaleFactor.
|
private |
Definition at line 68 of file BeamCurrentInfo.cc.
References beam1IntensitiesPacked_, beam1IntensitiesUnpacked_, beam2IntensitiesPacked_, and beam2IntensitiesUnpacked_.
Referenced by getBeam2IntensitiesPacked(), and packData().
|
private |
Definition at line 83 of file BeamCurrentInfo.h.
Referenced by BeamCurrentInfo(), getBeam1IntensitiesPacked(), isProductEqual(), packData(), and unpackData().
|
private |
Definition at line 85 of file BeamCurrentInfo.h.
Referenced by BeamCurrentInfo(), fillBeamIntensities(), getBeam1Intensities(), getBeam1IntensityBX(), packData(), and unpackData().
|
private |
Definition at line 84 of file BeamCurrentInfo.h.
Referenced by BeamCurrentInfo(), getBeam2IntensitiesPacked(), isProductEqual(), packData(), and unpackData().
|
private |
Definition at line 86 of file BeamCurrentInfo.h.
Referenced by BeamCurrentInfo(), fillBeamIntensities(), getBeam2Intensities(), getBeam2IntensityBX(), packData(), and unpackData().
|
static |
Definition at line 34 of file BeamCurrentInfo.h.
Referenced by packData(), and unpackData().