Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CDBHistos.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CDBHistos.h
1 #ifndef CDBOBJECTS_CDBHISTOS_H
2 #define CDBOBJECTS_CDBHISTOS_H
3 
4 #include <map>
5 #include <string>
6 
7 class TH1;
8 
9 class CDBHistos
10 {
11  public:
12  CDBHistos() = default;
13  explicit CDBHistos(const std::string &fname);
14  ~CDBHistos();
15  void WriteCDBHistos();
16  void Print() const;
17  void LoadCalibrations();
18  void registerHisto(TH1 *h1);
19  TH1 *getHisto(const std::string &name);
20 
21  private:
23  std::map<std::string, TH1 *> m_HistoMap;
24 };
25 
26 #endif