#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 |
void BeamCurrentInfo::fill | ( | const std::vector< float > & | beam1Intensities, |
const std::vector< float > & | beam2Intensities | ||
) |
Definition at line 30 of file BeamCurrentInfo.cc.
References fillBeamIntensities().
void BeamCurrentInfo::fillBeamIntensities | ( | const std::vector< float > & | beam1Intensities, |
const std::vector< float > & | beam2Intensities | ||
) |
Definition at line 23 of file BeamCurrentInfo.cc.
References beam1IntensitiesUnpacked_, beam2IntensitiesUnpacked_, and packData().
Referenced by fill().
const std::vector< float > & BeamCurrentInfo::getBeam1Intensities | ( | ) | const |
Definition at line 12 of file BeamCurrentInfo.cc.
References beam1IntensitiesUnpacked_.
Referenced by operator<<().
|
inline |
Definition at line 61 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_, and l1GtPatternGenerator_cfi::bx.
const std::vector< float > & BeamCurrentInfo::getBeam2Intensities | ( | ) | const |
Definition at line 16 of file BeamCurrentInfo.cc.
References beam2IntensitiesUnpacked_.
Referenced by operator<<().
|
inline |
Definition at line 62 of file BeamCurrentInfo.h.
References beam2IntensitiesPacked_.
float BeamCurrentInfo::getBeam2IntensityBX | ( | int | bx | ) | const |
Definition at line 14 of file BeamCurrentInfo.cc.
References beam2IntensitiesUnpacked_, and l1GtPatternGenerator_cfi::bx.
bool BeamCurrentInfo::isProductEqual | ( | BeamCurrentInfo const & | next | ) | const |
Definition at line 18 of file BeamCurrentInfo.cc.
References beam1IntensitiesPacked_, beam2IntensitiesPacked_, and GetRecoTauVFromDQM_MC_cff::next.
|
private |
Definition at line 35 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 51 of file BeamCurrentInfo.cc.
References MiniFloatConverter::float16to32(), mps_fire::i, and scaleFactor.
|
private |
Definition at line 59 of file BeamCurrentInfo.cc.
References beam1IntensitiesPacked_, beam1IntensitiesUnpacked_, beam2IntensitiesPacked_, and beam2IntensitiesUnpacked_.
Referenced by packData().
|
private |
Definition at line 79 of file BeamCurrentInfo.h.
Referenced by BeamCurrentInfo(), getBeam1IntensitiesPacked(), isProductEqual(), packData(), and unpackData().
|
private |
Definition at line 81 of file BeamCurrentInfo.h.
Referenced by BeamCurrentInfo(), fillBeamIntensities(), getBeam1Intensities(), getBeam1IntensityBX(), packData(), and unpackData().
|
private |
Definition at line 80 of file BeamCurrentInfo.h.
Referenced by BeamCurrentInfo(), getBeam2IntensitiesPacked(), isProductEqual(), packData(), and unpackData().
|
private |
Definition at line 82 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().