Go to the documentation of this file. 1 #ifndef DataFormats_Luminosity_BeamCurrentInfo_h
2 #define DataFormats_Luminosity_BeamCurrentInfo_h
45 BeamCurrentInfo(
const std::vector<float>& beam1Intensities,
const std::vector<float>& beam2Intensities) {
71 void fillBeamIntensities(
const std::vector<float>& beam1Intensities,
const std::vector<float>& beam2Intensities);
73 void fill(
const std::vector<float>& beam1Intensities,
const std::vector<float>& beam2Intensities);
76 static void unpackData(
const std::vector<uint16_t>& packed, std::vector<float>& unpacked);
89 #endif // DataFormats_Luminosity_BeamCurrentInfo_h
float getBeam2IntensityBX(int bx) const
static const unsigned int numBX
void fillBeamIntensities(const std::vector< float > &beam1Intensities, const std::vector< float > &beam2Intensities)
const std::vector< uint16_t > & getBeam2IntensitiesPacked() const
static const float scaleFactor
BeamCurrentInfo()
default constructor
const std::vector< float > & getBeam1Intensities() const
~BeamCurrentInfo()
destructor
std::vector< float > beam1IntensitiesUnpacked_
BeamCurrentInfo(const std::vector< float > &beam1Intensities, const std::vector< float > &beam2Intensities)
constructor with fill
const std::vector< uint16_t > & getBeam1IntensitiesPacked() const
bool isProductEqual(BeamCurrentInfo const &next) const
void fill(const std::vector< float > &beam1Intensities, const std::vector< float > &beam2Intensities)
std::vector< uint16_t > beam2IntensitiesPacked_
const std::vector< float > & getBeam2Intensities() const
std::vector< float > beam2IntensitiesUnpacked_
std::vector< uint16_t > beam1IntensitiesPacked_
std::ostream & operator<<(std::ostream &s, const BeamCurrentInfo &beamInfo)
float getBeam1IntensityBX(int bx) const