$treeview $search $mathjax $extrastylesheet
otsdaq
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #ifndef _ots_DQMHistosOuterTracker_h_ 00002 #define _ots_DQMHistosOuterTracker_h_ 00003 00004 #include <map> 00005 #include <queue> 00006 #include <string> 00007 #include "otsdaq-core/DataDecoders/DataDecoder.h" 00008 // ROOT documentation 00009 // http://root.cern.ch/root/html/index.html 00010 00011 class TFile; 00012 class TCanvas; 00013 class TH1; 00014 class TH1I; 00015 class TH1F; 00016 class TH2F; 00017 class TProfile; 00018 class TDirectory; 00019 class TObject; 00020 00021 namespace ots 00022 { 00023 class ConfigurationManager; 00024 00025 class DQMHistosOuterTracker 00026 { 00027 public: 00028 DQMHistosOuterTracker(std::string supervisorApplicationUID, 00029 std::string bufferUID, 00030 std::string processorUID); 00031 virtual ~DQMHistosOuterTracker(void); 00032 void setConfigurationManager(ConfigurationManager* configurationManager) 00033 { 00034 theConfigurationManager_ = configurationManager; 00035 } 00036 void book(void); 00037 void fill(std::string& buffer, std::map<std::string, std::string> header); 00038 void save(void); 00039 void load(std::string fileName); 00040 TObject* get(std::string name); 00041 00042 TFile* getFile() { return theFile_; } // added by RAR 00043 00044 // Getters 00045 // TCanvas* getCanvas (void){return canvas_;} 00046 // TH1F* getHisto1D(void){return histo1D_;} 00047 // TH2F* getHisto2D(void){return histo2D_;} 00048 // TProfile* getProfile(void){return profile_;} 00049 00050 protected: 00051 void openFile(std::string fileName); 00052 void closeFile(void); 00053 TFile* theFile_; 00054 00055 DataDecoder theDataDecoder_; 00056 std::queue<uint32_t> convertedBuffer_; 00057 00058 // TCanvas* canvas_; // main canvas 00059 // TH1F* histo1D_;// 1-D histogram 00060 // TH2F* histo2D_;// 2-D histogram 00061 // TProfile* profile_;// profile histogram 00062 // IPAddress port channel 00063 std::map<std::string, std::map<std::string, std::map<unsigned int, TH1*>>> 00064 planeOccupancies_; 00065 // std::vector<TH1I*> planeOccupancies_; 00066 TH1I* numberOfTriggers_; 00067 const std::string supervisorContextUID_; 00068 const std::string supervisorApplicationUID_; 00069 const std::string bufferUID_; 00070 const std::string processorUID_; 00071 TDirectory* currentDirectory_; 00072 ConfigurationManager* theConfigurationManager_; 00073 }; 00074 } // namespace ots 00075 00076 #endif