2 #include "otsdaq-core/ConfigurationPluginDataFormats/MaskTable.h"
3 #include "otsdaq-coreMacros/TablePluginMacros.h"
8 MaskConfiguration::MaskConfiguration(
void) :
TableBase(
"MaskConfiguration")
27 MaskConfiguration::~MaskConfiguration(
void) {}
32 std::string tmpDetectorID;
33 for(
unsigned int row = 0; row < TableBase::activeTableView_->getNumberOfRows(); row++)
35 TableBase::activeTableView_->getValue(tmpDetectorID, row, DetectorID);
36 nameToRow_[tmpDetectorID] = row;
41 const std::string& MaskConfiguration::getROCMask(std::string rocName)
const
45 if(nameToRow_.find(rocName) == nameToRow_.end())
47 std::cout << __COUT_HDR_FL__ <<
"ROC named " << rocName
48 <<
" doesn't exist in the mask configuration." << std::endl;
51 return TableBase::getView().getDataView()[nameToRow_.find(rocName)->second][KillMask];