$treeview $search $mathjax $extrastylesheet
otsdaq
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #ifndef _ots_FEConfiguration_h_ 00002 #define _ots_FEConfiguration_h_ 00003 00004 #include <map> 00005 #include <string> 00006 #include <vector> 00007 00008 #include "otsdaq-coreTableCore/TableBase.h" 00009 00010 namespace ots 00011 { 00012 class FEConfiguration : public TableBase 00013 { 00014 public: 00015 FEConfiguration(void); 00016 virtual ~FEConfiguration(void); 00017 00018 // Methods 00019 void init(ConfigurationManager* configManager); 00020 // Getters 00021 // std::vector<std::string> getListOfFEIDs (void) const; 00022 // std::vector<std::string> getListOfFEIDs (const std::string& supervisorType, 00023 // unsigned int supervisorInstance) const; 00024 // //FIXME This is wrong because there can be same name interfaces on different 00025 // supervisors!!!!!!! I am doing it for the DQM :( const std::string 00026 // getFEInterfaceType (const std::string& frontEndID) const; const std::string 00027 // getFEInterfaceType (const std::string& supervisorType, unsigned int 00028 // supervisorInstance, const std::string& frontEndID) const; 00029 00030 // Getters 00031 // std::vector<unsigned int> getListOfFEWRs (void) const; 00032 // std::vector<unsigned int> getListOfFEWRs (unsigned int supervisorInstance) 00033 // const; const std::string& getFEWRInterfaceName (unsigned int id) 00034 // const; 00035 // 00036 // std::vector<unsigned int> getListOfFEWs (void) const; 00037 // std::vector<unsigned int> getListOfFEWs (unsigned int supervisorInstance) 00038 // const; const std::string& getFEWInterfaceName (unsigned int id) 00039 // const; 00040 // 00041 // std::vector<unsigned int> getListOfFERs (void) const; 00042 // std::vector<unsigned int> getListOfFERs (unsigned int supervisorInstance) 00043 // const; const std::string& getFERInterfaceName (unsigned int id) 00044 // const; 00045 00046 private: 00047 enum 00048 { 00049 SupervisorType, 00050 SupervisorInstance, 00051 FrontEndId, 00052 FrontEndType 00053 }; 00054 std::string composeUniqueName(std::string supervisorName, 00055 unsigned int supervisorInstance) const 00056 { 00057 return supervisorName + std::to_string(supervisorInstance); 00058 } 00059 std::map<std::string, std::map<std::string, unsigned int>> typeNameToRow_; 00060 }; 00061 } // namespace ots 00062 #endif