36 const std::vector<float>& beam2Intensities) {
44 const std::vector<float>& beam2Intensities) {
83 s << std::endl <<
"Dumping BeamCurrentInfo..." << std::endl;
84 s <<
" beam1Intensities = ";
87 for (
unsigned int i=0;
i<10 &&
i<b1int.size(); ++
i) {
88 s << b1int.at(
i) <<
" ";
90 s <<
"..." << std::endl <<
" (packed: ";
91 for (
unsigned int i=0;
i<10 &&
i<b1intPacked.size(); ++
i) {
92 s << b1intPacked.at(
i) <<
" ";
94 s <<
"...)" << std::endl;
95 s <<
" beam2Intensities = ";
97 for (
unsigned int i=0;
i<10 &&
i<b2int.size(); ++
i) {
98 s << b2int.at(
i) <<
" ";
100 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
void unpackData(void) 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_