$treeview $search $mathjax $extrastylesheet
otsdaq
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #ifndef _ots_DetectorToFEConfiguration_h_ 00002 #define _ots_DetectorToFEConfiguration_h_ 00003 00004 #include <string> 00005 #include <vector> 00006 00007 #include "otsdaq-coreTableCore/TableBase.h" 00008 00009 namespace ots 00010 { 00011 class DetectorToFEConfiguration : public TableBase 00012 { 00013 public: 00014 DetectorToFEConfiguration(void); 00015 virtual ~DetectorToFEConfiguration(void); 00016 00017 // Methods 00018 void init(ConfigurationManager* configManager); 00019 00020 // Getters 00021 std::vector<std::string> getFEWriterDetectorList(std::string interfaceID) const; 00022 std::vector<std::string> getFEReaderDetectorList(std::string interfaceID) const; 00023 // std::vector<std::string> getFEWCards (unsigned int supervisorInstance) const; 00024 unsigned int getFEWriterChannel(const std::string& detectorID) const; 00025 unsigned int getFEWriterDetectorAddress(const std::string& detectorID) const; 00026 unsigned int getFEReaderChannel(const std::string& detectorID) const; 00027 00028 private: 00029 enum 00030 { 00031 DetectorID, 00032 FEWriterID, 00033 FEWriterChannel, 00034 FEWriterDetectorAddress, 00035 FEReaderID, 00036 FEReaderChannel, 00037 FEReaderDetectorAddress 00038 }; 00039 struct DetectorInfo 00040 { 00041 std::string theFEWriterID_; 00042 unsigned int theFEWriterChannel_; 00043 unsigned int theFEWriterDetectorAddress_; 00044 std::string theFEReaderID_; 00045 unsigned int theFEReaderChannel_; 00046 unsigned int theFEReaderDetectorAddress_; 00047 }; 00048 std::map<std::string, DetectorInfo> nameToInfoMap_; 00049 }; 00050 } // namespace ots 00051 #endif