27 return (
m_defectMap.insert(std::make_pair(moduleId, moduleDefects))).second;
37 CalibConditions::const_iterator iter(
m_defectMap.find(moduleId));
39 ModuleDefects = iter->second;
48 std::ostringstream txt;
50 txt <<
"No modules are in the SCT Calibration defect data map.\n";
52 CalibConditions::const_iterator itr(
m_defectMap.begin());
54 txt << itr->first <<
" " <<
moduleText(itr->first);
64 std::ostringstream txt;
65 std::ostringstream
tmp;
68 txt <<
"The SCT module Calibration defect data map is empty for module " << moduleId <<
".\n";
70 txt <<
"\n" << std::left << std::setw(15) <<
"Bad strips" << std::setw(15) <<
"Defect type" << std::setw(15) <<
"Value:" <<
"\n";
71 for (
unsigned int i = 0;
i < thisModuleDefects.
begDefects.size();
i++){
73 txt << std::left << std::setw(15) << thisModuleDefects.
begDefects[
i];
77 txt << std::left << std::setw(15) <<
tmp.str();
79 txt << std::left << std::setw(15) << thisModuleDefects.
typeOfDefect[
i];
80 txt << std::left << std::setw(15) << thisModuleDefects.
parValue[
i] <<
"\n";