Container with a list of defects derived from calibration data and used in SCT_ReadCalibDataCondAlg and SCT_ReadCalibDataTool.
More...
#include <SCT_CalibDefectData.h>
Container with a list of defects derived from calibration data and used in SCT_ReadCalibDataCondAlg and SCT_ReadCalibDataTool.
Definition at line 29 of file SCT_CalibDefectData.h.
◆ CalibConditions
◆ SCT_CalibDefectData()
SCT_CalibDefectData::SCT_CalibDefectData |
( |
| ) |
|
◆ ~SCT_CalibDefectData()
virtual SCT_CalibDefectData::~SCT_CalibDefectData |
( |
| ) |
|
|
virtualdefault |
◆ addModule()
◆ clear()
void SCT_CalibDefectData::clear |
( |
| ) |
|
◆ empty()
bool SCT_CalibDefectData::empty |
( |
| ) |
const |
◆ findModule()
Search the map for a module.
Definition at line 32 of file SCT_CalibDefectData.cxx.
37 CalibConditions::const_iterator iter(
m_defectMap.find(moduleId));
39 ModuleDefects = iter->second;
◆ moduleText()
std::string SCT_CalibDefectData::moduleText |
( |
const Identifier & |
moduleId | ) |
const |
Print data for one module.
Definition at line 62 of file SCT_CalibDefectData.cxx.
63 CalibModuleDefects thisModuleDefects =
findModule( moduleId );
64 std::ostringstream txt;
65 std::ostringstream
tmp;
67 if ( thisModuleDefects.begDefects.empty() ){
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++){
72 if ( thisModuleDefects.begDefects[
i] == thisModuleDefects.endDefects[
i] ){
73 txt << std::left << std::setw(15) << thisModuleDefects.begDefects[
i];
76 tmp << thisModuleDefects.begDefects[
i] <<
" - " << thisModuleDefects.endDefects[
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";
◆ size()
unsigned long int SCT_CalibDefectData::size |
( |
| ) |
const |
◆ str()
std::string SCT_CalibDefectData::str |
( |
| ) |
|
Print the map - might be useful.
Definition at line 46 of file SCT_CalibDefectData.cxx.
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);
◆ m_defectMap
The documentation for this class was generated from the following files: