CMS 3D CMS Logo

ODWeightsSamplesDat.h
Go to the documentation of this file.
1 #ifndef ODWEIGHTSSAMPLESDAT_H
2 #define ODWEIGHTSSAMPLESDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
11 
13 public:
14  friend class EcalCondDBInterface;
16  ~ODWeightsSamplesDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "DCC_WEIGHTSAMPLE_DAT"; }
20 
21  inline void setId(int dac) { m_ID = dac; }
22  inline int getId() const { return m_ID; }
23 
24  inline void setFedId(int dac) { m_fed = dac; }
25  inline int getFedId() const { return m_fed; }
26 
27  inline void setSampleId(int dac) { m_ss = dac; }
28  inline int getSampleId() const { return m_ss; }
29 
30  inline void setWeightNumber(int dac) { m_sn = dac; }
31  inline int getWeightNumber() const { return m_sn; }
32 
33 private:
34  void clear();
35  void prepareWrite() noexcept(false) override;
36 
38 
40 
41  void fetchData(std::vector<ODWeightsSamplesDat>* fillMap, ODFEWeightsInfo* iov) noexcept(false);
42 
43  void fetchData(ODWeightsSamplesDat* p) noexcept(false);
44 
45  // User data
46 
47  int m_fed;
48  int m_ss;
49  int m_sn;
50  int m_ID;
51 };
52 
53 #endif
ODWeightsSamplesDat
Definition: ODWeightsSamplesDat.h:12
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
funct::false
false
Definition: Factorize.h:29
ODWeightsSamplesDat::getFedId
int getFedId() const
Definition: ODWeightsSamplesDat.h:25
ODWeightsSamplesDat::writeArrayDB
void writeArrayDB(const std::vector< ODWeightsSamplesDat > &data, ODFEWeightsInfo *iov) noexcept(false)
Definition: ODWeightsSamplesDat.cc:107
ODWeightsSamplesDat::setWeightNumber
void setWeightNumber(int dac)
Definition: ODWeightsSamplesDat.h:30
ODWeightsSamplesDat::getId
int getId() const
Definition: ODWeightsSamplesDat.h:22
IODConfig.h
ODWeightsSamplesDat::getWeightNumber
int getWeightNumber() const
Definition: ODWeightsSamplesDat.h:31
ODWeightsSamplesDat::m_fed
int m_fed
Definition: ODWeightsSamplesDat.h:47
ODWeightsSamplesDat::setFedId
void setFedId(int dac)
Definition: ODWeightsSamplesDat.h:24
watchdog.const
const
Definition: watchdog.py:83
ODWeightsSamplesDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODWeightsSamplesDat.cc:27
ODFEWeightsInfo.h
ODWeightsSamplesDat::setId
void setId(int dac)
Definition: ODWeightsSamplesDat.h:21
ODWeightsSamplesDat::m_sn
int m_sn
Definition: ODWeightsSamplesDat.h:49
ODWeightsSamplesDat::fetchData
void fetchData(std::vector< ODWeightsSamplesDat > *fillMap, ODFEWeightsInfo *iov) noexcept(false)
Definition: ODWeightsSamplesDat.cc:55
ODFEWeightsInfo
Definition: ODFEWeightsInfo.h:9
ODWeightsSamplesDat::m_ss
int m_ss
Definition: ODWeightsSamplesDat.h:48
ODWeightsSamplesDat::getSampleId
int getSampleId() const
Definition: ODWeightsSamplesDat.h:28
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
ODWeightsSamplesDat::m_ID
int m_ID
Definition: ODWeightsSamplesDat.h:50
ODWeightsSamplesDat::writeDB
void writeDB(const ODWeightsSamplesDat *item, ODFEWeightsInfo *iov) noexcept(false)
Definition: ODWeightsSamplesDat.cc:40
IODConfig
Definition: IODConfig.h:18
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalLogicID.h
ODWeightsSamplesDat::~ODWeightsSamplesDat
~ODWeightsSamplesDat() override
Definition: ODWeightsSamplesDat.cc:19
std
Definition: JetResolutionObject.h:76
ODWeightsSamplesDat::ODWeightsSamplesDat
ODWeightsSamplesDat()
Definition: ODWeightsSamplesDat.cc:10
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
ODWeightsSamplesDat::getTable
std::string getTable() override
Definition: ODWeightsSamplesDat.h:19
ODWeightsSamplesDat::clear
void clear()
Definition: ODWeightsSamplesDat.cc:21
ODWeightsSamplesDat::setSampleId
void setSampleId(int dac)
Definition: ODWeightsSamplesDat.h:27