CMS 3D CMS Logo

RunDCSMagnetDat.h
Go to the documentation of this file.
1 #ifndef RUNDCSMAGNET_H
2 #define RUNDCSMAGNET_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
14 
15 class RunDCSMagnetDat : public IDataItem {
16 public:
17  typedef oracle::occi::ResultSet ResultSet;
18 
19  friend class EcalCondDBInterface;
21  ~RunDCSMagnetDat() override;
22 
23  // User data methods
24  inline std::string getTable() override { return "CMSFWMAGNET_LV"; }
25  inline std::string getMagnetAccount() { return "CMS_DCS_ENV_PVSS_COND"; }
26  inline void setMagnetCurrent(float t) { m_current = t; }
27  inline float getMagnetCurrent() const { return m_current; }
28 
29  void setTime(const Tm& start);
30  Tm getTime() const;
31 
32 private:
34 
35  int nowMicroseconds();
36 
37  void fillTheMap(ResultSet*, std::map<EcalLogicID, RunDCSMagnetDat>*);
38 
39  void prepareWrite() noexcept(false) override;
40 
41  void writeDB(const EcalLogicID* ecid, const RunDCSMagnetDat* item, RunIOV* iov) noexcept(false);
42 
43  void fetchData(std::map<EcalLogicID, RunDCSMagnetDat>* fillMap, RunIOV* iov) noexcept(false);
44 
45  void fetchLastData(std::map<EcalLogicID, RunDCSMagnetDat>* fillMap) noexcept(false);
46 
47  // User data
48  float m_current;
50 };
51 
52 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
RunIOV
Definition: RunIOV.h:13
RunDCSMagnetDat::getMagnetAccount
std::string getMagnetAccount()
Definition: RunDCSMagnetDat.h:25
RunDCSMagnetDat::getMagnetRset
ResultSet * getMagnetRset()
Definition: RunDCSMagnetDat.cc:41
start
Definition: start.py:1
RunDCSMagnetDat::getTable
std::string getTable() override
Definition: RunDCSMagnetDat.h:24
funct::false
false
Definition: Factorize.h:34
RunIOV.h
RunDCSMagnetDat::fetchData
void fetchData(std::map< EcalLogicID, RunDCSMagnetDat > *fillMap, RunIOV *iov) noexcept(false)
Definition: RunDCSMagnetDat.cc:35
RunDCSMagnetDat::ResultSet
oracle::occi::ResultSet ResultSet
Definition: RunDCSMagnetDat.h:17
watchdog.const
const
Definition: watchdog.py:83
RunDCSMagnetDat::RunDCSMagnetDat
RunDCSMagnetDat()
Definition: RunDCSMagnetDat.cc:15
RunDCSMagnetDat::nowMicroseconds
int nowMicroseconds()
Definition: RunDCSMagnetDat.cc:103
RunDCSMagnetDat::getTime
Tm getTime() const
Definition: RunDCSMagnetDat.cc:29
DataReducer.h
IDataItem
Definition: IDataItem.h:16
RunDCSMagnetDat::setTime
void setTime(const Tm &start)
Definition: RunDCSMagnetDat.cc:27
EcalLogicID
Definition: EcalLogicID.h:7
RunDCSMagnetDat::~RunDCSMagnetDat
~RunDCSMagnetDat() override
Definition: RunDCSMagnetDat.cc:25
OrderedSet.t
t
Definition: OrderedSet.py:90
RunDCSMagnetDat::fetchLastData
void fetchLastData(std::map< EcalLogicID, RunDCSMagnetDat > *fillMap) noexcept(false)
Definition: RunDCSMagnetDat.cc:111
Tm
Definition: Tm.h:13
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RunDCSMagnetDat
Definition: RunDCSMagnetDat.h:15
Tm.h
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
RunDCSMagnetDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: RunDCSMagnetDat.cc:31
RunDCSMagnetDat::setMagnetCurrent
void setMagnetCurrent(float t)
Definition: RunDCSMagnetDat.h:26
RunDCSMagnetDat::writeDB
void writeDB(const EcalLogicID *ecid, const RunDCSMagnetDat *item, RunIOV *iov) noexcept(false)
Definition: RunDCSMagnetDat.cc:33
EcalLogicID.h
RunDCSMagnetDat::fillTheMap
void fillTheMap(ResultSet *, std::map< EcalLogicID, RunDCSMagnetDat > *)
Definition: RunDCSMagnetDat.cc:64
std
Definition: JetResolutionObject.h:76
RunDCSMagnetDat::m_current
float m_current
Definition: RunDCSMagnetDat.h:48
RunDCSMagnetDat::m_time
Tm m_time
Definition: RunDCSMagnetDat.h:49
RunDCSMagnetDat::getMagnetCurrent
float getMagnetCurrent() const
Definition: RunDCSMagnetDat.h:27
Oracle.h
DateHandler.h
genParticles_cff.map
map
Definition: genParticles_cff.py:11