1 #ifndef ClusterNoiseFP420_h
2 #define ClusterNoiseFP420_h
7 #include<boost/cstdint.hpp>
28 short noise =
static_cast<short> (noise_*10.0 + 0.5) & 0x01FF;
29 Data = ( disable_ ? -1 : 1 ) * noise;
33 << std::fixed <<
"ClusterNoiseFP420.h:: ElectrodData: noise= " << noise_ <<
" \t"
34 <<
": disable= " << disable_ <<
" \t"
35 <<
"sign Data(=noise*10.0 + 0.5)= " <<
Data <<
" \t"
36 <<
"in getNoise we do: abs(Data)/10.0, so it is OK" <<
" \t"
48 std::map<uint32_t, std::vector<ElectrodData> >
m_noises;
void setData(float noise_, bool disable_)
std::vector< ClusterNoiseFP420::ElectrodData > ElectrodNoiseVector
ElectrodDisable getDisable() const
std::map< uint32_t, ElectrodNoiseVector >::const_iterator ElectrodNoiseMapIterator
std::map< uint32_t, ElectrodNoiseVector > ElectrodNoiseMap
std::vector< ClusterNoiseFP420::ElectrodData >::const_iterator ElectrodNoiseVectorIterator
ElectrodNoise getNoise() const
std::map< uint32_t, std::vector< ElectrodData > > m_noises