24 const std::vector<float>& beam2Intensities) {
30 void BeamCurrentInfo::fill(
const std::vector<float>& beam1Intensities,
const std::vector<float>& beam2Intensities) {
52 unpacked.resize(packed.size());
54 for (
unsigned int i = 0;
i < packed.size();
i++) {
65 s << std::endl <<
"Dumping BeamCurrentInfo..." << std::endl;
66 s <<
" beam1Intensities = ";
69 for (
unsigned int i = 0;
i < 10 &&
i < b1int.size(); ++
i) {
72 s <<
"..." << std::endl <<
" (packed: ";
73 for (
unsigned int i = 0;
i < 10 &&
i < b1intPacked.size(); ++
i) {
74 s << b1intPacked[
i] <<
" ";
76 s <<
"...)" << std::endl;
77 s <<
" beam2Intensities = ";
79 for (
unsigned int i = 0;
i < 10 &&
i < b2int.size(); ++
i) {
82 s <<
" ..." << std::endl;
const std::vector< float > & getBeam1Intensities() const
static const float scaleFactor
std::vector< float > beam2IntensitiesUnpacked_
std::vector< float > beam1IntensitiesUnpacked_
void fillBeamIntensities(const std::vector< float > &beam1Intensities, const std::vector< float > &beam2Intensities)
static float float16to32(uint16_t h)
float getBeam2IntensityBX(int bx) const
static uint16_t float32to16(float x)
float getBeam1IntensityBX(int bx) const
void fill(const std::vector< float > &beam1Intensities, const std::vector< float > &beam2Intensities)
std::vector< uint16_t > beam1IntensitiesPacked_
const std::vector< uint16_t > & getBeam1IntensitiesPacked() const
const std::vector< float > & getBeam2Intensities() const
std::ostream & operator<<(std::ostream &s, const BeamCurrentInfo &beamInfo)
bool isProductEqual(BeamCurrentInfo const &next) const
std::vector< uint16_t > beam2IntensitiesPacked_