CMS 3D CMS Logo

RunH4TablePositionDat.h
Go to the documentation of this file.
1 #ifndef RUNH4TABLEPOSITIONDAT_H
2 #define RUNH4TABLEPOSITIONDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
12 public:
13  friend class EcalCondDBInterface;
15  ~RunH4TablePositionDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "RUN_H4_TABLE_POSITION_DAT"; }
19 
20  inline void setTableX(int num) { m_table_x = num; }
21  inline int getTableX() const { return m_table_x; }
22 
23  inline void setTableY(int num) { m_table_y = num; }
24  inline int getTableY() const { return m_table_y; }
25 
26  inline void setNumSpills(int num) { m_numSpills = num; }
27  inline int getNumSpills() const { return m_numSpills; }
28 
29  inline void setNumEvents(int num) { m_numEvents = num; }
30  inline int getNumEvents() const { return m_numEvents; }
31 
32 private:
33  void prepareWrite() noexcept(false) override;
34 
35  void writeDB(const EcalLogicID* ecid, const RunH4TablePositionDat* item, RunIOV* iov) noexcept(false);
36 
37  void fetchData(std::map<EcalLogicID, RunH4TablePositionDat>* fillMap, RunIOV* iov) noexcept(false);
38 
39  // User data
40  int m_table_x;
41  int m_table_y;
44 };
45 
46 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
RunIOV
Definition: RunIOV.h:13
funct::false
false
Definition: Factorize.h:29
RunH4TablePositionDat
Definition: RunH4TablePositionDat.h:11
RunH4TablePositionDat::~RunH4TablePositionDat
~RunH4TablePositionDat() override
Definition: RunH4TablePositionDat.cc:23
RunIOV.h
RunH4TablePositionDat::setTableY
void setTableY(int num)
Definition: RunH4TablePositionDat.h:23
RunH4TablePositionDat::m_numEvents
int m_numEvents
Definition: RunH4TablePositionDat.h:43
watchdog.const
const
Definition: watchdog.py:83
RunH4TablePositionDat::getTable
std::string getTable() override
Definition: RunH4TablePositionDat.h:18
RunH4TablePositionDat::getTableX
int getTableX() const
Definition: RunH4TablePositionDat.h:21
RunH4TablePositionDat::fetchData
void fetchData(std::map< EcalLogicID, RunH4TablePositionDat > *fillMap, RunIOV *iov) noexcept(false)
Definition: RunH4TablePositionDat.cc:70
RunH4TablePositionDat::m_table_x
int m_table_x
Definition: RunH4TablePositionDat.h:40
RunH4TablePositionDat::setTableX
void setTableX(int num)
Definition: RunH4TablePositionDat.h:20
IDataItem
Definition: IDataItem.h:16
EcalLogicID
Definition: EcalLogicID.h:7
RunH4TablePositionDat::m_table_y
int m_table_y
Definition: RunH4TablePositionDat.h:41
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RunH4TablePositionDat::RunH4TablePositionDat
RunH4TablePositionDat()
Definition: RunH4TablePositionDat.cc:11
RunH4TablePositionDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: RunH4TablePositionDat.cc:25
RunH4TablePositionDat::getNumEvents
int getNumEvents() const
Definition: RunH4TablePositionDat.h:30
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
RunH4TablePositionDat::m_numSpills
int m_numSpills
Definition: RunH4TablePositionDat.h:42
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:34
EcalLogicID.h
std
Definition: JetResolutionObject.h:76
RunH4TablePositionDat::getTableY
int getTableY() const
Definition: RunH4TablePositionDat.h:24
RunH4TablePositionDat::setNumEvents
void setNumEvents(int num)
Definition: RunH4TablePositionDat.h:29
RunH4TablePositionDat::writeDB
void writeDB(const EcalLogicID *ecid, const RunH4TablePositionDat *item, RunIOV *iov) noexcept(false)
Definition: RunH4TablePositionDat.cc:40
genParticles_cff.map
map
Definition: genParticles_cff.py:11
RunH4TablePositionDat::getNumSpills
int getNumSpills() const
Definition: RunH4TablePositionDat.h:27
RunH4TablePositionDat::setNumSpills
void setNumSpills(int num)
Definition: RunH4TablePositionDat.h:26