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