Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:20:28

0001 #ifndef __PKTSIZEDBODBC_H__
0002 #define __PKTSIZEDBODBC_H__
0003 
0004 #include <onlmon/OnlMonBase.h>
0005 
0006 #include <ctime>
0007 #include <map>
0008 #include <string>
0009 #include <vector>
0010 
0011 class PktSizeDBodbc : public OnlMonBase
0012 {
0013  public:
0014   PktSizeDBodbc(const std::string &name);
0015   virtual ~PktSizeDBodbc();
0016   int CheckAndCreateTable(const std::string &name, const std::map<unsigned int, unsigned int> &packetsize);
0017   int CheckAndAddColumns(const std::string &table, const std::map<unsigned int, unsigned int> &packetsize);
0018   int AddRow(const std::string &granulename, const int runnumber, const int nevnts, const std::map<unsigned int, unsigned int> &packetsize);
0019   int GetPacketContent(std::map<unsigned int, float> &packetsize, const int runnumber, const std::string &table);
0020 
0021  private:
0022   int GetConnection();
0023   std::string dbname;
0024   std::string dbowner;
0025   std::string dbpasswd;
0026   std::string tableprefix;
0027 };
0028 
0029 #endif