CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTPGDBApp.h
Go to the documentation of this file.
1 #ifndef ECALTPGDBAPP_H
2 #define ECALTPGDBAPP_H
3 
4 #include <iostream>
5 #include <string>
6 #include <sstream>
7 
13 
15  public:
16 
17  EcalTPGDBApp(std::string host, std::string sid, std::string user, std::string pass, int port) ;
18  EcalTPGDBApp(std::string sid, std::string user, std::string pass) ;
19 
20  inline std::string to_string( char value[])
21  {
22  std::ostringstream streamOut;
23  streamOut << value;
24  return streamOut.str();
25  }
26 
27  int writeToConfDB_TPGPedestals(const std::map<EcalLogicID, FEConfigPedDat> & pedset, int iovId, std::string tag) ;
28  int writeToConfDB_TPGLinearCoef(const std::map<EcalLogicID, FEConfigLinDat> & linset,
29  const std::map<EcalLogicID, FEConfigLinParamDat> & linparamset, int iovId, std::string tag) ;
30  int writeToConfDB_TPGLUT(const std::map<EcalLogicID, FEConfigLUTGroupDat> & lutgroup, const std::map<EcalLogicID, FEConfigLUTDat> & lutdat,
31  const std::map<EcalLogicID, FEConfigLUTParamDat> & lutparamset, int iovId, std::string tag) ;
32  int writeToConfDB_TPGWeight(const std::map<EcalLogicID, FEConfigWeightGroupDat> & lutgroup, const std::map<EcalLogicID, FEConfigWeightDat> & lutdat,
33  int iovId, std::string tag) ;
34  int writeToConfDB_TPGFgr(const std::map<EcalLogicID, FEConfigFgrGroupDat> & lutgroup, const std::map<EcalLogicID, FEConfigFgrDat> & lutdat,
35  const std::map<EcalLogicID, FEConfigFgrParamDat> & fgrparamset,
36  const std::map<EcalLogicID, FEConfigFgrEETowerDat> & dataset3,
37  const std::map<EcalLogicID, FEConfigFgrEEStripDat> & dataset4,
38  int iovId, std::string tag) ;
39  int writeToConfDB_TPGSliding(const std::map<EcalLogicID, FEConfigSlidingDat> & sliset, int iovId, std::string tag) ;
40 
41  void readFromConfDB_TPGPedestals(int iconf_req) ;
42  int readFromCondDB_Pedestals(std::map<EcalLogicID, MonPedestalsDat> & pedset, int runNb) ;
43  int writeToConfDB_TPGMain(int ped, int lin, int lut, int fgr, int sli, int wei, int bxt, int btt, std::string tag, int ver) ;
44 
45 
46  private:
47 
52 
53  void printTag( const RunTag* tag) const ;
54  void printIOV( const RunIOV* iov) const ;
55 
56 };
57 
58 #endif
59 
int writeToConfDB_TPGLinearCoef(const std::map< EcalLogicID, FEConfigLinDat > &linset, const std::map< EcalLogicID, FEConfigLinParamDat > &linparamset, int iovId, std::string tag)
Definition: EcalTPGDBApp.cc:42
void printIOV(const RunIOV *iov) const
int run_t
Definition: CaliIOV.h:11
Definition: RunTag.h:13
EcalTPGDBApp(std::string host, std::string sid, std::string user, std::string pass, int port)
Definition: EcalTPGDBApp.cc:9
int writeToConfDB_TPGSliding(const std::map< EcalLogicID, FEConfigSlidingDat > &sliset, int iovId, std::string tag)
int writeToConfDB_TPGMain(int ped, int lin, int lut, int fgr, int sli, int wei, int bxt, int btt, std::string tag, int ver)
Definition: EcalTPGDBApp.cc:68
std::string to_string(char value[])
Definition: EcalTPGDBApp.h:20
tuple iov
Definition: o2o.py:307
uint64_t startmicros
Definition: EcalTPGDBApp.h:48
int readFromCondDB_Pedestals(std::map< EcalLogicID, MonPedestalsDat > &pedset, int runNb)
uint64_t endmicros
Definition: EcalTPGDBApp.h:49
int writeToConfDB_TPGPedestals(const std::map< EcalLogicID, FEConfigPedDat > &pedset, int iovId, std::string tag)
Definition: EcalTPGDBApp.cc:17
unsigned long long uint64_t
Definition: Time.h:15
void readFromConfDB_TPGPedestals(int iconf_req)
Definition: EcalTPGDBApp.cc:99
run_t startrun
Definition: EcalTPGDBApp.h:50
int writeToConfDB_TPGLUT(const std::map< EcalLogicID, FEConfigLUTGroupDat > &lutgroup, const std::map< EcalLogicID, FEConfigLUTDat > &lutdat, const std::map< EcalLogicID, FEConfigLUTParamDat > &lutparamset, int iovId, std::string tag)
int writeToConfDB_TPGFgr(const std::map< EcalLogicID, FEConfigFgrGroupDat > &lutgroup, const std::map< EcalLogicID, FEConfigFgrDat > &lutdat, const std::map< EcalLogicID, FEConfigFgrParamDat > &fgrparamset, const std::map< EcalLogicID, FEConfigFgrEETowerDat > &dataset3, const std::map< EcalLogicID, FEConfigFgrEEStripDat > &dataset4, int iovId, std::string tag)
void printTag(const RunTag *tag) const
int writeToConfDB_TPGWeight(const std::map< EcalLogicID, FEConfigWeightGroupDat > &lutgroup, const std::map< EcalLogicID, FEConfigWeightDat > &lutdat, int iovId, std::string tag)
Definition: RunIOV.h:13