$treeview $search $mathjax $extrastylesheet
otsdaq
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #ifndef _ots_DetectorConfiguration_h_ 00002 #define _ots_DetectorConfiguration_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 DetectorConfiguration : public TableBase 00013 { 00014 public: 00015 DetectorConfiguration(void); 00016 virtual ~DetectorConfiguration(void); 00017 00018 // Methods 00019 void init(ConfigurationManager* configManager); 00020 00021 // Getters 00022 const std::vector<std::string>& getDetectorIDs(void) const; 00023 const std::vector<std::string>& getDetectorTypes( 00024 void) const; // TODO add a class or 00025 // configuration.info 00026 // where there is a list 00027 // of supported 00028 // DetectorTypes 00029 const std::string& getDetectorType(const std::string& detectorID) const; 00030 const std::string& getDetectorStatus(const std::string& detectorID) const; 00031 00032 const std::map<std::string, unsigned int>& getNameToRowMap() const 00033 { 00034 return nameToRow_; 00035 } 00036 00037 private: 00038 enum 00039 { 00040 DetectorID, 00041 DetectorType, 00042 DetectorStatus 00043 }; 00044 00045 std::map<std::string, unsigned int> nameToRow_; 00046 std::vector<std::string> detectorIDs_; 00047 std::vector<std::string> detectorTypes_; 00048 }; 00049 } // namespace ots 00050 #endif