CMS 3D CMS Logo

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:
20 
21  inline std::string to_string(char value[]) {
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,
30  int iovId,
31  std::string tag);
32  int writeToConfDB_TPGLUT(const std::map<EcalLogicID, FEConfigLUTGroupDat>& lutgroup,
33  const std::map<EcalLogicID, FEConfigLUTDat>& lutdat,
34  const std::map<EcalLogicID, FEConfigLUTParamDat>& lutparamset,
35  int iovId,
36  std::string tag);
37  int writeToConfDB_TPGWeight(const std::map<EcalLogicID, FEConfigWeightGroupDat>& lutgroup,
38  const std::map<EcalLogicID, FEConfigWeightDat>& lutdat,
39  int iovId,
40  std::string tag);
41  int writeToConfDB_TPGFgr(const std::map<EcalLogicID, FEConfigFgrGroupDat>& lutgroup,
42  const std::map<EcalLogicID, FEConfigFgrDat>& lutdat,
43  const std::map<EcalLogicID, FEConfigFgrParamDat>& fgrparamset,
44  const std::map<EcalLogicID, FEConfigFgrEETowerDat>& dataset3,
45  const std::map<EcalLogicID, FEConfigFgrEEStripDat>& dataset4,
46  int iovId,
47  std::string tag);
48  int writeToConfDB_Spike(const std::map<EcalLogicID, FEConfigSpikeDat>& spikegroupset, std::string tag);
49  int writeToConfDB_Delay(const std::map<EcalLogicID, FEConfigTimingDat>& delaygroupset,
50  std::string tag); // modif here 31/1/2011
51 
52  int writeToConfDB_TPGSliding(const std::map<EcalLogicID, FEConfigSlidingDat>& sliset, int iovId, std::string tag);
53 
54  void readFromConfDB_TPGPedestals(int iconf_req);
55  int readFromCondDB_Pedestals(std::map<EcalLogicID, MonPedestalsDat>& pedset, int runNb);
56  int writeToConfDB_TPGMain(int ped,
57  int lin,
58  int lut,
59  int fgr,
60  int sli,
61  int wei,
62  int spi,
63  int tim,
64  int bxt,
65  int btt,
66  int bst,
67  std::string tag,
68  int ver);
69 
70 private:
75 
76  void printTag(const RunTag* tag) const;
77  void printIOV(const RunIOV* iov) const;
78 };
79 
80 #endif
int writeToConfDB_TPGLinearCoef(const std::map< EcalLogicID, FEConfigLinDat > &linset, const std::map< EcalLogicID, FEConfigLinParamDat > &linparamset, int iovId, std::string tag)
Definition: EcalTPGDBApp.cc:37
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:64
std::string to_string(char value[])
Definition: EcalTPGDBApp.h:21
uint64_t startmicros
Definition: EcalTPGDBApp.h:71
Definition: value.py:1
int readFromCondDB_Pedestals(std::map< EcalLogicID, MonPedestalsDat > &pedset, int runNb)
uint64_t endmicros
Definition: EcalTPGDBApp.h:72
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:14
unsigned long long uint64_t
Definition: Time.h:13
void readFromConfDB_TPGPedestals(int iconf_req)
run_t startrun
Definition: EcalTPGDBApp.h:73
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