CMS 3D CMS Logo

CaliGainRatioDat.h
Go to the documentation of this file.
1 #ifndef CALIGAINRATIODAT_H
2 #define CALIGAINRATIODAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class CaliGainRatioDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
16  ~CaliGainRatioDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "CALI_GAIN_RATIO_DAT"; }
20 
21  inline void setG1G12(float c) { m_g1_g12 = c; }
22  inline float getG1G12() const { return m_g1_g12; }
23 
24  inline void setG6G12(float c) { m_g6_g12 = c; }
25  inline float getG6G12() const { return m_g6_g12; }
26 
27  inline void setTaskStatus(bool s) { m_taskStatus = s; }
28  inline bool getTaskStatus() const { return m_taskStatus; }
29 
30 private:
31  void prepareWrite() noexcept(false) override;
32 
33  void writeDB(const EcalLogicID* ecid, const CaliGainRatioDat* item, CaliIOV* iov) noexcept(false);
34 
35  void fetchData(std::map<EcalLogicID, CaliGainRatioDat>* fillVec, CaliIOV* iov) noexcept(false);
36 
38 
39  // User data
40  float m_g1_g12;
41  float m_g6_g12;
43 };
44 
45 #endif
CaliGainRatioDat::getTable
std::string getTable() override
Definition: CaliGainRatioDat.h:19
CaliGainRatioDat::m_g6_g12
float m_g6_g12
Definition: CaliGainRatioDat.h:41
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
CaliIOV
Definition: CaliIOV.h:13
funct::false
false
Definition: Factorize.h:29
CaliGainRatioDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, CaliGainRatioDat > *data, CaliIOV *iov) noexcept(false)
Definition: CaliGainRatioDat.cc:110
CaliGainRatioDat::getG1G12
float getG1G12() const
Definition: CaliGainRatioDat.h:22
CaliGainRatioDat::m_g1_g12
float m_g1_g12
Definition: CaliGainRatioDat.h:40
watchdog.const
const
Definition: watchdog.py:83
CaliGainRatioDat::setG6G12
void setG6G12(float c)
Definition: CaliGainRatioDat.h:24
CaliGainRatioDat::fetchData
void fetchData(std::map< EcalLogicID, CaliGainRatioDat > *fillVec, CaliIOV *iov) noexcept(false)
Definition: CaliGainRatioDat.cc:67
CaliIOV.h
CaliGainRatioDat::~CaliGainRatioDat
~CaliGainRatioDat() override
Definition: CaliGainRatioDat.cc:22
CaliTag.h
alignCSCRings.s
s
Definition: alignCSCRings.py:92
IDataItem
Definition: IDataItem.h:16
CaliGainRatioDat::setG1G12
void setG1G12(float c)
Definition: CaliGainRatioDat.h:21
CaliGainRatioDat::writeDB
void writeDB(const EcalLogicID *ecid, const CaliGainRatioDat *item, CaliIOV *iov) noexcept(false)
Definition: CaliGainRatioDat.cc:39
EcalLogicID
Definition: EcalLogicID.h:7
CaliGainRatioDat::getTaskStatus
bool getTaskStatus() const
Definition: CaliGainRatioDat.h:28
CaliGainRatioDat::setTaskStatus
void setTaskStatus(bool s)
Definition: CaliGainRatioDat.h:27
CaliGainRatioDat::CaliGainRatioDat
CaliGainRatioDat()
Definition: CaliGainRatioDat.cc:12
CaliGainRatioDat::getG6G12
float getG6G12() const
Definition: CaliGainRatioDat.h:25
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
CaliGainRatioDat
Definition: CaliGainRatioDat.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalLogicID.h
std
Definition: JetResolutionObject.h:76
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
CaliGainRatioDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: CaliGainRatioDat.cc:24
genParticles_cff.map
map
Definition: genParticles_cff.py:11
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
CaliGainRatioDat::m_taskStatus
bool m_taskStatus
Definition: CaliGainRatioDat.h:42