Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #ifndef CDBOBJECTS_CDBTF_H
0002 #define CDBOBJECTS_CDBTF_H
0003 
0004 #include <map>
0005 #include <string>
0006 
0007 class TF1;
0008 
0009 class CDBTF
0010 {
0011  public:
0012   CDBTF() = default;
0013   explicit CDBTF(const std::string &fname);
0014   ~CDBTF();
0015   void WriteCDBTF();
0016   void Print() const;
0017   void LoadCalibrations();
0018   void registerTF(TF1 *t1);
0019   TF1 *getTF(const std::string &name, bool printerror = true);
0020   const auto &GetTFMap() const {return m_TFMap;}
0021 
0022  private:
0023   std::string m_Filename;
0024   std::map<std::string, TF1 *> m_TFMap;
0025 };
0026 
0027 #endif