$treeview $search $mathjax $extrastylesheet
otsdaq
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #ifndef ots_ROCToFEConfiguration_h 00002 #define ots_ROCToFEConfiguration_h 00003 00004 #include <string> 00005 #include <vector> 00006 00007 #include "otsdaq-core/TableCore/TableBase.h" 00008 00009 namespace ots 00010 { 00011 class ROCToFEConfiguration : public TableBase 00012 { 00013 public: 00014 ROCToFEConfiguration(void); 00015 virtual ~ROCToFEConfiguration(void); 00016 00017 // Methods 00018 void init(ConfigurationManager* configManager); 00019 00020 // Getters 00021 std::vector<std::string> getFEWROCsList(std::string fECNumber) const; 00022 std::vector<std::string> getFERROCsList(std::string fEDNumber) const; 00023 std::vector<std::string> getFEWCards(unsigned int supervisorInstance) const; 00024 unsigned int getFEWChannel(const std::string& rOCName) const; 00025 unsigned int getFEWROCAddress(const std::string& rOCName) const; 00026 unsigned int getFERChannel(const std::string& rOCName) const; 00027 00028 private: 00029 enum 00030 { 00031 DetectorID, 00032 FEWName, 00033 FEWChannel, 00034 FEWROCAddress, 00035 FERName, 00036 FERChannel, 00037 FERROCAddress 00038 }; 00039 struct ROCInfo 00040 { 00041 std::string theFEWName_; 00042 unsigned int theFEWChannel_; 00043 unsigned int theFEWROCAddress_; 00044 std::string theFERName_; 00045 unsigned int theFERChannel_; 00046 unsigned int theFERROCAddress_; 00047 }; 00048 std::map<std::string, ROCInfo> nameToInfoMap_; 00049 }; 00050 } // namespace ots 00051 #endif