File indexing completed on 2025-08-06 08:17:09
0001 #ifndef CDBOBJECTS_CDBHISTOS_H
0002 #define CDBOBJECTS_CDBHISTOS_H
0003
0004 #include <map>
0005 #include <string>
0006
0007 class TH1;
0008
0009 class CDBHistos
0010 {
0011 public:
0012 CDBHistos() = default;
0013 explicit CDBHistos(const std::string &fname);
0014 ~CDBHistos();
0015 void WriteCDBHistos();
0016 void Print() const;
0017 void LoadCalibrations();
0018 void registerHisto(TH1 *h1);
0019 TH1 *getHisto(const std::string &name, bool printerror = true);
0020
0021 private:
0022 std::string m_Filename;
0023 std::map<std::string, TH1 *> m_HistoMap;
0024 };
0025
0026 #endif