1 #include "otsdaq-core/Macros/TablePluginMacros.h"
2 #include "otsdaq-core/TablePluginDataFormats/FESlowControlsTable.h"
4 #include "otsdaq-core/ConfigurationInterface/ConfigurationManager.h"
11 FESlowControlsTable::FESlowControlsTable(
void) :
TableBase(
"FESlowControlsTable")
55 FESlowControlsTable::~FESlowControlsTable(
void) {}
61 __COUT__ <<
"*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*" << std::endl;
62 __COUT__ << configManager->__SELF_NODE__ << std::endl;
67 std::string childType;
68 auto childrenMap = configManager->__SELF_NODE__.getChildren();
69 for(
auto& childPair : childrenMap)
72 __COUT__ << childPair.first << std::endl;
73 childPair.second.getNode(colNames_.colDataType_).getValue(childType);
74 __COUT__ <<
"childType=" << childType << std::endl;
76 if(childType[childType.size() - 1] ==
80 sscanf(&childType[0],
"%u", &sz);
83 __SS__ <<
"Data type '" << childType <<
"' for UID=" << childPair.first
85 <<
" The bit size given was " << sz
86 <<
" and it must be between 1 and 64." << std::endl;
87 __COUT_ERR__ <<
"\n" << ss.str();
91 else if(childType !=
"char" && childType !=
"short" && childType !=
"int" &&
92 childType !=
"unsigned int" && childType !=
"long long " &&
93 childType !=
"unsigned long long" && childType !=
"float" &&
94 childType !=
"double")
96 __SS__ <<
"Data type '" << childType <<
"' for UID=" << childPair.first
98 <<
"Valid data types (w/size in bytes) are as follows: "
100 <<
", char (" <<
sizeof(char) <<
"B), unsigned char ("
101 <<
sizeof(
unsigned char) <<
"B), short (" <<
sizeof(short)
102 <<
"B), unsigned short (" <<
sizeof(
unsigned short) <<
"B), int ("
103 <<
sizeof(int) <<
"B), unsigned int (" <<
sizeof(
unsigned int)
104 <<
"B), long long (" <<
sizeof(
long long) <<
"B), unsigned long long ("
105 <<
sizeof(
unsigned long long) <<
"B), float (" <<
sizeof(float)
106 <<
"B), double (" <<
sizeof(
double) <<
"B)." << std::endl;
107 __COUT_ERR__ <<
"\n" << ss.str();