CMS 3D CMS Logo

MODCCSHFDat.h
Go to the documentation of this file.
1 #ifndef MODCCSHFDAT_H
2 #define MODCCSHFDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
7 #include <string>
8 #include <fstream>
9 #include <iostream>
10 #include <cstdio>
11 #include <cstring>
12 
14 
18 
19 class MODCCSHFDat : public IDataItem {
20 public:
21  typedef oracle::occi::Clob Clob;
22  friend class EcalCondDBInterface;
23  MODCCSHFDat();
24  ~MODCCSHFDat() override;
25 
26  // User data methods
27  inline std::string getTable() override { return "OD_CCS_HF_DAT"; }
28 
29  inline void setClob(unsigned char* x) { m_clob = x; }
30  inline unsigned char* getClob() const { return m_clob; }
31 
32  inline void setSize(unsigned int id) { m_size = id; }
33  inline unsigned int getSize() const { return m_size; }
34 
35  inline void setTest(int id) { testing = id; }
36  inline int getTest() const { return testing; }
37 
38  void setFile(std::string x);
39  inline std::string getFile() const { return m_file; }
40 
41 private:
42  void prepareWrite() noexcept(false) override;
43 
44  void writeDB(const EcalLogicID* ecid, const MODCCSHFDat* item, MODRunIOV* iov) noexcept(false);
45 
47 
48  void fetchData(std::map<EcalLogicID, MODCCSHFDat>* fillMap, MODRunIOV* iov) noexcept(false);
49 
50  // User data
51  unsigned char* m_clob;
52  unsigned int m_size;
53  std::string m_file;
54  int testing;
55  unsigned char* readClob(Clob& clob, int size) noexcept(false);
56  void populateClob(Clob& clob, std::string fname, unsigned int clob_size) noexcept(false);
57 };
58 
59 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
MODCCSHFDat::m_clob
unsigned char * m_clob
Definition: MODCCSHFDat.h:51
IDataItem.h
MODCCSHFDat::getSize
unsigned int getSize() const
Definition: MODCCSHFDat.h:33
funct::false
false
Definition: Factorize.h:29
MODCCSHFDat
Definition: MODCCSHFDat.h:19
MODCCSHFDat::getClob
unsigned char * getClob() const
Definition: MODCCSHFDat.h:30
MODCCSHFDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: MODCCSHFDat.cc:52
MODCCSHFDat::getTable
std::string getTable() override
Definition: MODCCSHFDat.h:27
DDAxes::x
watchdog.const
const
Definition: watchdog.py:83
MODRunIOV.h
MODCCSHFDat::getTest
int getTest() const
Definition: MODCCSHFDat.h:36
MODCCSHFDat::Clob
oracle::occi::Clob Clob
Definition: MODCCSHFDat.h:21
MODCCSHFDat::~MODCCSHFDat
~MODCCSHFDat() override
Definition: MODCCSHFDat.cc:27
IDataItem
Definition: IDataItem.h:16
EcalLogicID
Definition: EcalLogicID.h:7
MODCCSHFDat::m_file
std::string m_file
Definition: MODCCSHFDat.h:53
MODCCSHFDat::setSize
void setSize(unsigned int id)
Definition: MODCCSHFDat.h:32
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MODCCSHFDat::setTest
void setTest(int id)
Definition: MODCCSHFDat.h:35
MODCCSHFDat::readClob
unsigned char * readClob(Clob &clob, int size) noexcept(false)
Definition: MODCCSHFDat.cc:292
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
MODCCSHFDat::m_size
unsigned int m_size
Definition: MODCCSHFDat.h:52
EcalLogicID.h
MODRunIOV
Definition: MODRunIOV.h:13
alignmentValidation.fname
string fname
main script
Definition: alignmentValidation.py:959
std
Definition: JetResolutionObject.h:76
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
MODCCSHFDat::getFile
std::string getFile() const
Definition: MODCCSHFDat.h:39
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
MODCCSHFDat::testing
int testing
Definition: MODCCSHFDat.h:54
MODCCSHFDat::fetchData
void fetchData(std::map< EcalLogicID, MODCCSHFDat > *fillMap, MODRunIOV *iov) noexcept(false)
Definition: MODCCSHFDat.cc:125
MODCCSHFDat::setFile
void setFile(std::string x)
Definition: MODCCSHFDat.cc:29
Oracle.h
MODCCSHFDat::populateClob
void populateClob(Clob &clob, std::string fname, unsigned int clob_size) noexcept(false)
Definition: MODCCSHFDat.cc:234
MODCCSHFDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, MODCCSHFDat > *data, MODRunIOV *iov) noexcept(false)
Definition: MODCCSHFDat.cc:166
genParticles_cff.map
map
Definition: genParticles_cff.py:11
MODCCSHFDat::writeDB
void writeDB(const EcalLogicID *ecid, const MODCCSHFDat *item, MODRunIOV *iov) noexcept(false)
Definition: MODCCSHFDat.cc:68
MODCCSHFDat::MODCCSHFDat
MODCCSHFDat()
Definition: MODCCSHFDat.cc:16
MODCCSHFDat::setClob
void setClob(unsigned char *x)
Definition: MODCCSHFDat.h:29
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443