32 const std::vector<float>& beam2Intensities) {
39 const std::vector<float>& beam2Intensities) {
61 unpacked.resize(packed.size());
63 for (
unsigned int i=0;
i<packed.size();
i++) {
76 s << std::endl <<
"Dumping BeamCurrentInfo..." << std::endl;
77 s <<
" beam1Intensities = ";
80 for (
unsigned int i=0;
i<10 &&
i<b1int.size(); ++
i) {
83 s <<
"..." << std::endl <<
" (packed: ";
84 for (
unsigned int i=0;
i<10 &&
i<b1intPacked.size(); ++
i) {
85 s << b1intPacked[
i] <<
" ";
87 s <<
"...)" << std::endl;
88 s <<
" beam2Intensities = ";
90 for (
unsigned int i=0;
i<10 &&
i<b2int.size(); ++
i) {
93 s <<
" ..." << std::endl;
const std::vector< float > & getBeam1Intensities() const
static const float scaleFactor
float getBeam1IntensityBX(int bx) const
std::vector< float > beam2IntensitiesUnpacked_
std::vector< float > beam1IntensitiesUnpacked_
void fillBeamIntensities(const std::vector< float > &beam1Intensities, const std::vector< float > &beam2Intensities)
bool isProductEqual(BeamCurrentInfo const &next) const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
static float float16to32(uint16_t h)
static uint16_t float32to16(float x)
float getBeam2IntensityBX(int bx) const
const std::vector< uint16_t > & getBeam1IntensitiesPacked() const
void fill(const std::vector< float > &beam1Intensities, const std::vector< float > &beam2Intensities)
std::vector< uint16_t > beam1IntensitiesPacked_
const std::vector< float > & getBeam2Intensities() const
std::vector< uint16_t > beam2IntensitiesPacked_