$treeview $search $mathjax $extrastylesheet
otsdaq_components
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #ifndef _ots_DACStream_h_ 00002 #define _ots_DACStream_h_ 00003 00004 #include "otsdaq-components/DetectorConfiguration/ROCStream.h" 00005 00006 #include <map> 00007 #include <string> 00008 00009 namespace ots 00010 { 00011 // class DetectorConfiguration; 00012 // class DetectorToFEConfiguration; 00013 // class DACsTableBase; 00014 // class MaskConfiguration; 00015 class ConfigurationManager; 00016 class ConfigurationTree; 00017 00018 class DACStream // ConfigurationStream (makeDACStream, makeMaskStream) 00019 { 00020 public: 00021 typedef std::multimap<unsigned int, ROCStream> ROCStreams; 00022 typedef ROCStreams::iterator iterator; 00023 typedef ROCStreams::const_iterator const_iterator; 00024 00025 DACStream(void); 00026 virtual ~DACStream(void); 00027 00028 void makeStream(const ConfigurationTree& feToDetectorTree); 00029 00030 // Iterators 00031 iterator begin(void) { return theChannelStreamMap_.begin(); } 00032 iterator end(void) { return theChannelStreamMap_.end(); } 00033 const_iterator begin(void) const { return theChannelStreamMap_.begin(); } 00034 const_iterator end(void) const { return theChannelStreamMap_.end(); } 00035 00036 const std::multimap<unsigned int, ROCStream>& getChannelStreamMap() const 00037 { 00038 return theChannelStreamMap_; 00039 } 00040 00041 private: 00042 // fec channel 00043 std::multimap<unsigned int, ROCStream> theChannelStreamMap_; 00044 // std::map<std::string, TableVersion> TableVersions_; 00045 }; 00046 } 00047 00048 #endif // ots_DACStream_h