18 static const std::string m_pedestal_key =
"pedestal";
25 out <<
"MicromegasCalibrationData" << std::endl;
26 size_t total_entries = 0;
29 total_entries += data_array.size();
30 out <<
"fee_id: " << fee_id <<
" entries: " << data_array.size() << std::endl;
31 for(
size_t i=0;
i<data_array.size(); ++
i )
33 const auto&
data = data_array[
i];
34 out <<
"fee_id: " << fee_id <<
" channel: " <<
i <<
" pedestal: " <<
data.m_pedestal <<
" rms: " <<
data.m_rms << std::endl;
38 out <<
"total entries: " << total_entries << std::endl;
47 std::cout <<
"MicromegasCalibrationData::read - filename: " << filename << std::endl;
54 if( !std::ifstream( filename.c_str() ).good() )
56 std::cout <<
"MicromegasCalibrationData::read -"
57 <<
" filename: " << filename <<
" does not exist."
58 <<
" No calibration loaded" << std::endl;
80 int channel = fee*m_nchannels_fee +
i;
85 if( !std::isnan( rms ) )
112 std::cout <<
"MicromegasCalibrationData::write - filename: " << filename << std::endl;
119 for(
size_t i = 0;
i <
array.size(); ++
i )