00001 #ifndef _ots_VisualDataManager_h_
00002 #define _ots_VisualDataManager_h_
00003
00004 #include "otsdaq-core/DataManager/DataManager.h"
00005
00006
00007
00008
00009 #include "otsdaq-core/RootUtilities/DQMHistosBase.h"
00010
00011 #include <map>
00012 #include <string>
00013 #include <vector>
00014
00015 namespace ots
00016 {
00017
00018 class ConfigurationManager;
00019 class RawDataVisualizerConsumer;
00020
00021 class VisualDataManager : public DataManager
00022 {
00023 public:
00024 VisualDataManager(const ConfigurationTree& theXDAQContextConfigTree, const std::string& supervisorConfigurationPath);
00025 virtual ~VisualDataManager(void);
00026
00027
00028 void configure(void) override;
00029 void halt (void) override;
00030 void pause (void) override;
00031 void resume (void) override;
00032 void start (std::string runNumber) override;
00033 void stop (void) override;
00034
00035
00036 void load(std::string fileName, std::string type);
00037
00038 DQMHistosBase* getLiveDQMHistos (void);
00039 DQMHistosBase& getFileDQMHistos (void);
00040
00041
00042
00043 const std::string& getRawData (void);
00044
00045 private:
00046 DQMHistosBase* theLiveDQMHistos_;
00047 DQMHistosBase theFileDQMHistos_;
00048
00049
00050
00051
00052 RawDataVisualizerConsumer* theRawDataConsumer_;
00053 };
00054
00055 }
00056
00057 #endif