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 
14 //#include "OnlineDB/EcalCondDB/interface/FEConfigSpikeDat.h"
15 
17  public:
18 
19  EcalTPGDBApp(std::string host, std::string sid, std::string user, std::string pass, int port) ;
20  EcalTPGDBApp(std::string sid, std::string user, std::string pass) ;
21 
22  inline std::string to_string( char value[])
23  {
24  std::ostringstream streamOut;
25  streamOut << value;
26  return streamOut.str();
27  }
28 
29  int writeToConfDB_TPGPedestals(const std::map<EcalLogicID, FEConfigPedDat> & pedset, int iovId, std::string tag) ;
30  int writeToConfDB_TPGLinearCoef(const std::map<EcalLogicID, FEConfigLinDat> & linset,
31  const std::map<EcalLogicID, FEConfigLinParamDat> & linparamset, int iovId, std::string tag) ;
32  int writeToConfDB_TPGLUT(const std::map<EcalLogicID, FEConfigLUTGroupDat> & lutgroup, const std::map<EcalLogicID, FEConfigLUTDat> & lutdat,
33  const std::map<EcalLogicID, FEConfigLUTParamDat> & lutparamset, int iovId, std::string tag) ;
34  int writeToConfDB_TPGWeight(const std::map<EcalLogicID, FEConfigWeightGroupDat> & lutgroup, const std::map<EcalLogicID, FEConfigWeightDat> & lutdat,
35  int iovId, std::string tag) ;
36  int writeToConfDB_TPGFgr(const std::map<EcalLogicID, FEConfigFgrGroupDat> & lutgroup, const std::map<EcalLogicID, FEConfigFgrDat> & lutdat,
37  const std::map<EcalLogicID, FEConfigFgrParamDat> & fgrparamset,
38  const std::map<EcalLogicID, FEConfigFgrEETowerDat> & dataset3,
39  const std::map<EcalLogicID, FEConfigFgrEEStripDat> & dataset4,
40  int iovId, std::string tag) ;
41  int writeToConfDB_Spike(const std::map<EcalLogicID, FEConfigSpikeDat> & spikegroupset, std::string tag);
42  int writeToConfDB_Delay(const std::map<EcalLogicID, FEConfigTimingDat> & delaygroupset, std::string tag); // modif here 31/1/2011
43 
44  int writeToConfDB_TPGSliding(const std::map<EcalLogicID, FEConfigSlidingDat> & sliset, int iovId, std::string tag) ;
45 
46  void readFromConfDB_TPGPedestals(int iconf_req) ;
47  int readFromCondDB_Pedestals(std::map<EcalLogicID, MonPedestalsDat> & pedset, int runNb) ;
48  int writeToConfDB_TPGMain(int ped, int lin, int lut, int fgr, int sli, int wei, int spi, int tim, int bxt, int btt, int bst, std::string tag, int ver) ;
49 
50 
51  private:
52 
57 
58  void printTag( const RunTag* tag) const ;
59  void printIOV( const RunIOV* iov) const ;
60 
61 };
62 
63 #endif
64 
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)
int writeToConfDB_TPGSliding(const std::map< EcalLogicID, FEConfigSlidingDat > &sliset, int iovId, std::string tag)
int writeToConfDB_Delay(const std::map< EcalLogicID, FEConfigTimingDat > &delaygroupset, std::string tag)
int writeToConfDB_TPGMain(int ped, int lin, int lut, int fgr, int sli, int wei, int spi, int tim, int bxt, int btt, int bst, std::string tag, int ver)
Definition: EcalTPGDBApp.cc:68
std::string to_string(char value[])
Definition: EcalTPGDBApp.h:22
tuple iov
Definition: o2o.py:307
uint64_t startmicros
Definition: EcalTPGDBApp.h:53
tuple lut
Definition: lumiPlot.py:244
int readFromCondDB_Pedestals(std::map< EcalLogicID, MonPedestalsDat > &pedset, int runNb)
uint64_t endmicros
Definition: EcalTPGDBApp.h:54
int writeToConfDB_Spike(const std::map< EcalLogicID, FEConfigSpikeDat > &spikegroupset, std::string tag)
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)
run_t startrun
Definition: EcalTPGDBApp.h:55
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