tdaq-develop-2025-02-12
VisualDataManager.h
1 #ifndef _ots_VisualDataManager_h_
2 #define _ots_VisualDataManager_h_
3 
4 #include "otsdaq/DataManager/DataManager.h"
5 // #include "otsdaq/MonicelliInterface/Visual3DEvent.h"
6 // #include "otsdaq/MonicelliInterface/Visual3DGeometry.h"
7 // #include "otsdaq/MonicelliInterface/MonicelliEventAnalyzer.h"
8 // #include "otsdaq/MonicelliInterface/MonicelliGeometryConverter.h"
9 #include "otsdaq/RootUtilities/DQMHistosBase.h"
10 
11 #include <map>
12 #include <string>
13 #include <vector>
14 
15 namespace ots
16 {
17 class ConfigurationManager;
18 
20 {
21  public:
22  VisualDataManager(const ConfigurationTree& theXDAQContextConfigTree,
23  const std::string& supervisorConfigurationPath);
24  virtual ~VisualDataManager(void);
25 
26  void configure(void) override;
27  void halt(void) override;
28  void pause(void) override;
29  void resume(void) override;
30  void start(std::string runNumber) override;
31  void stop(void) override;
32 
33  void load(std::string fileName, std::string type);
35  const std::vector<DQMHistosBase*>& getLiveDQMs(void) { return theLiveDQMs_; };
36 
37  void setDoNotStop(bool doNotStop) { doNotStop_ = doNotStop; }
38  bool isReady(void) { return ready_; }
39  TFile* openFile(std::string fileName);
40 
41  bool getLiveDQMHistos(void);
42  DQMHistosBase& getFileDQMHistos(void);
43  const std::string& getRawData(void);
44  // const Visual3DEvents& getVisual3DEvents (void);
45  // const Visual3DGeometry& getVisual3DGeometry (void);
46 
47  private:
48  std::vector<DQMHistosBase*> theLiveDQMs_;
49  bool doNotStop_;
50  bool ready_;
51  std::map<std::string, TFile*> fileMap_;
52  // MonicelliEventAnalyzer theMonicelliEventAnalyzer_;
53  // MonicelliGeometryConverter theMonicelliGeometryConverter_;
54  // Visual3DData the3DData_;
55 
56  bool theLiveDQMHistos_;
57  DQMHistosBase theFileDQMHistos_;
58 };
59 } // namespace ots
60 
61 #endif
const std::string & getRawData(void)
TO BE DELETED.
const std::vector< DQMHistosBase * > & getLiveDQMs(void)
Getters.
DQMHistosBase & getFileDQMHistos(void)
TO BE DELETED.
void configure(void) override
State Machine Methods.
VisualDataManager(const ConfigurationTree &theXDAQContextConfigTree, const std::string &supervisorConfigurationPath)