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_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,
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,
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
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
RunIOV
Definition: RunIOV.h:13
EcalTPGDBApp::startrun
run_t startrun
Definition: EcalTPGDBApp.h:73
RunList.h
run_t
int run_t
Definition: CaliIOV.h:11
EcalTPGDBApp::startmicros
uint64_t startmicros
Definition: EcalTPGDBApp.h:71
EcalTPGDBApp::writeToConfDB_Spike
int writeToConfDB_Spike(const std::map< EcalLogicID, FEConfigSpikeDat > &spikegroupset, std::string tag)
Definition: EcalTPGDBApp.cc:324
RunTag
Definition: RunTag.h:13
EcalDBConnection::port
int port
Definition: EcalDBConnection.h:76
RunDat.h
EcalDBConnection::host
std::string host
Definition: EcalDBConnection.h:75
EcalDBConnection::pass
std::string pass
Definition: EcalDBConnection.h:79
EcalTPGDBApp::endrun
run_t endrun
Definition: EcalTPGDBApp.h:74
EcalTPGDBApp::readFromConfDB_TPGPedestals
void readFromConfDB_TPGPedestals(int iconf_req)
Definition: EcalTPGDBApp.cc:108
EcalTPGDBApp::EcalTPGDBApp
EcalTPGDBApp(std::string host, std::string sid, std::string user, std::string pass, int port)
EcalTPGDBApp::writeToConfDB_TPGWeight
int writeToConfDB_TPGWeight(const std::map< EcalLogicID, FEConfigWeightGroupDat > &lutgroup, const std::map< EcalLogicID, FEConfigWeightDat > &lutdat, int iovId, std::string tag)
Definition: EcalTPGDBApp.cc:254
EcalTPGDBApp::readFromCondDB_Pedestals
int readFromCondDB_Pedestals(std::map< EcalLogicID, MonPedestalsDat > &pedset, int runNb)
Definition: EcalTPGDBApp.cc:146
EcalDBConnection::sid
std::string sid
Definition: EcalDBConnection.h:77
EcalTPGDBApp::endmicros
uint64_t endmicros
Definition: EcalTPGDBApp.h:72
all_monitoring_types.h
makeGlobalPositionRcd_cfg.tag
tag
Definition: makeGlobalPositionRcd_cfg.py:6
EcalTPGDBApp::writeToConfDB_TPGLinearCoef
int writeToConfDB_TPGLinearCoef(const std::map< EcalLogicID, FEConfigLinDat > &linset, const std::map< EcalLogicID, FEConfigLinParamDat > &linparamset, int iovId, std::string tag)
Definition: EcalTPGDBApp.cc:37
EcalTPGDBApp::writeToConfDB_TPGLUT
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)
Definition: EcalTPGDBApp.cc:221
value
Definition: value.py:1
EcalTPGDBApp::writeToConfDB_TPGFgr
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)
Definition: EcalTPGDBApp.cc:285
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalTPGDBApp::writeToConfDB_TPGSliding
int writeToConfDB_TPGSliding(const std::map< EcalLogicID, FEConfigSlidingDat > &sliset, int iovId, std::string tag)
Definition: EcalTPGDBApp.cc:196
EcalTPGDBApp::writeToConfDB_Delay
int writeToConfDB_Delay(const std::map< EcalLogicID, FEConfigTimingDat > &delaygroupset, std::string tag)
Definition: EcalTPGDBApp.cc:348
EcalTPGDBApp::writeToConfDB_TPGMain
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
relativeConstraints.value
value
Definition: relativeConstraints.py:53
EcalTPGDBApp::writeToConfDB_TPGPedestals
int writeToConfDB_TPGPedestals(const std::map< EcalLogicID, FEConfigPedDat > &pedset, int iovId, std::string tag)
Definition: EcalTPGDBApp.cc:14
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
EcalTPGDBApp::printTag
void printTag(const RunTag *tag) const
Definition: EcalTPGDBApp.cc:372
EcalDBConnection::user
std::string user
Definition: EcalDBConnection.h:78
EcalCondDBInterface.h
EcalTPGDBApp::printIOV
void printIOV(const RunIOV *iov) const
Definition: EcalTPGDBApp.cc:381
all_fe_config_types.h
EcalTPGDBApp::to_string
std::string to_string(char value[])
Definition: EcalTPGDBApp.h:21
EcalTPGDBApp
Definition: EcalTPGDBApp.h:16