Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PktSizeDBodbc.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PktSizeDBodbc.h
1 #ifndef __PKTSIZEDBODBC_H__
2 #define __PKTSIZEDBODBC_H__
3 
4 #include <onlmon/OnlMonBase.h>
5 
6 #include <ctime>
7 #include <map>
8 #include <string>
9 #include <vector>
10 
11 class PktSizeDBodbc : public OnlMonBase
12 {
13  public:
15  virtual ~PktSizeDBodbc();
16  int CheckAndCreateTable(const std::string &name, const std::map<unsigned int, unsigned int> &packetsize);
17  int CheckAndAddColumns(const std::string &table, const std::map<unsigned int, unsigned int> &packetsize);
18  int AddRow(const std::string &granulename, const int runnumber, const int nevnts, const std::map<unsigned int, unsigned int> &packetsize);
19  int GetPacketContent(std::map<unsigned int, float> &packetsize, const int runnumber, const std::string &table);
20 
21  private:
22  int GetConnection();
27 };
28 
29 #endif