CMS 3D CMS Logo

CaliCrystalIntercalDat.h
Go to the documentation of this file.
1 #ifndef CALICRYSTALINTERCALDAT_H
2 #define CALICRYSTALINTERCALDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
13 public:
14  friend class EcalCondDBInterface;
16  ~CaliCrystalIntercalDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "CALI_CRYSTAL_INTERCAL_DAT"; }
20 
21  inline void setCali(float c) { m_cali = c; }
22  inline float getCali() const { return m_cali; }
23 
24  inline void setCaliRMS(float c) { m_caliRMS = c; }
25  inline float getCaliRMS() const { return m_caliRMS; }
26 
27  inline void setNumEvents(int n) { m_numEvents = n; }
28  inline int getNumEvents() const { return m_numEvents; }
29 
30  inline void setTaskStatus(bool s) { m_taskStatus = s; }
31  inline bool getTaskStatus() const { return m_taskStatus; }
32 
33 private:
34  void prepareWrite() noexcept(false) override;
35 
36  void writeDB(const EcalLogicID* ecid, const CaliCrystalIntercalDat* item, CaliIOV* iov) noexcept(false);
37 
38  void fetchData(std::map<EcalLogicID, CaliCrystalIntercalDat>* fillVec, CaliIOV* iov) noexcept(false);
39 
41 
42  // User data
43  float m_cali;
44  float m_caliRMS;
47 };
48 
49 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
CaliIOV
Definition: CaliIOV.h:13
funct::false
false
Definition: Factorize.h:29
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
CaliCrystalIntercalDat::setCali
void setCali(float c)
Definition: CaliCrystalIntercalDat.h:21
CaliCrystalIntercalDat::writeDB
void writeDB(const EcalLogicID *ecid, const CaliCrystalIntercalDat *item, CaliIOV *iov) noexcept(false)
Definition: CaliCrystalIntercalDat.cc:40
CaliCrystalIntercalDat::m_caliRMS
float m_caliRMS
Definition: CaliCrystalIntercalDat.h:44
watchdog.const
const
Definition: watchdog.py:83
CaliCrystalIntercalDat::CaliCrystalIntercalDat
CaliCrystalIntercalDat()
Definition: CaliCrystalIntercalDat.cc:12
CaliIOV.h
CaliTag.h
CaliCrystalIntercalDat::getTaskStatus
bool getTaskStatus() const
Definition: CaliCrystalIntercalDat.h:31
CaliCrystalIntercalDat::m_numEvents
int m_numEvents
Definition: CaliCrystalIntercalDat.h:45
alignCSCRings.s
s
Definition: alignCSCRings.py:92
CaliCrystalIntercalDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: CaliCrystalIntercalDat.cc:25
IDataItem
Definition: IDataItem.h:16
CaliCrystalIntercalDat
Definition: CaliCrystalIntercalDat.h:12
CaliCrystalIntercalDat::getNumEvents
int getNumEvents() const
Definition: CaliCrystalIntercalDat.h:28
EcalLogicID
Definition: EcalLogicID.h:7
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CaliCrystalIntercalDat::getTable
std::string getTable() override
Definition: CaliCrystalIntercalDat.h:19
CaliCrystalIntercalDat::~CaliCrystalIntercalDat
~CaliCrystalIntercalDat() override
Definition: CaliCrystalIntercalDat.cc:23
CaliCrystalIntercalDat::getCaliRMS
float getCaliRMS() const
Definition: CaliCrystalIntercalDat.h:25
CaliCrystalIntercalDat::getCali
float getCali() const
Definition: CaliCrystalIntercalDat.h:22
CaliCrystalIntercalDat::setTaskStatus
void setTaskStatus(bool s)
Definition: CaliCrystalIntercalDat.h:30
CaliCrystalIntercalDat::m_cali
float m_cali
Definition: CaliCrystalIntercalDat.h:43
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
CaliCrystalIntercalDat::setNumEvents
void setNumEvents(int n)
Definition: CaliCrystalIntercalDat.h:27
EcalLogicID.h
std
Definition: JetResolutionObject.h:76
CaliCrystalIntercalDat::fetchData
void fetchData(std::map< EcalLogicID, CaliCrystalIntercalDat > *fillVec, CaliIOV *iov) noexcept(false)
Definition: CaliCrystalIntercalDat.cc:71
CaliCrystalIntercalDat::m_taskStatus
bool m_taskStatus
Definition: CaliCrystalIntercalDat.h:46
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
CaliCrystalIntercalDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, CaliCrystalIntercalDat > *data, CaliIOV *iov) noexcept(false)
Definition: CaliCrystalIntercalDat.cc:116
genParticles_cff.map
map
Definition: genParticles_cff.py:11
CaliCrystalIntercalDat::setCaliRMS
void setCaliRMS(float c)
Definition: CaliCrystalIntercalDat.h:24