Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-12-17 09:19:34

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   const auto &GetHistoMap() const {return m_HistoMap;}
0021 
0022  private:
0023   std::string m_Filename;
0024   std::map<std::string, TH1 *> m_HistoMap;
0025 };
0026 
0027 #endif