OnlineDB
EcalCondDB
interface
CaliIOV.h
Go to the documentation of this file.
1
#ifndef CALIIOV_H
2
#define CALIIOV_H
3
4
#include <stdexcept>
5
#include <iostream>
6
7
#include "
OnlineDB/EcalCondDB/interface/IIOV.h
"
8
#include "
OnlineDB/EcalCondDB/interface/CaliTag.h
"
9
#include "
OnlineDB/EcalCondDB/interface/Tm.h
"
10
11
typedef
int
run_t
;
12
13
class
CaliIOV
:
public
IIOV
{
14
public
:
15
friend
class
EcalCondDBInterface
;
16
17
CaliIOV
();
18
~CaliIOV
()
override
;
19
20
// Methods for user data
21
22
void
setSince
(
const
Tm
&
since
);
23
Tm
getSince
()
const
;
24
void
setTill
(
const
Tm
&
till
);
25
Tm
getTill
()
const
;
26
void
setCaliTag
(
const
CaliTag
&
tag
);
27
CaliTag
getCaliTag
()
const
;
28
29
// Methods from IUniqueDBObject
30
int
getID
() {
return
m_ID
; };
31
int
fetchID
() noexcept(
false
) override;
32
void
setByID
(
int
id
) noexcept(
false
) override;
33
34
// Operators
35
inline
bool
operator
==(
const
CaliIOV
&
m
)
const
{
36
return
(
m_caliTag
==
m
.m_caliTag &&
m_since
==
m
.m_since &&
m_till
==
m
.m_till);
37
}
38
39
inline
bool
operator!=
(
const
CaliIOV
&
m
)
const
{
return
!(*
this
==
m
); }
40
41
private
:
42
// User data for this IOV
43
Tm
m_since
;
44
Tm
m_till
;
45
CaliTag
m_caliTag
;
46
47
int
writeDB
() noexcept(
false
);
48
void
setByTm
(
CaliTag
*
tag
,
const
Tm
&
time
) noexcept(
false
);
49
};
50
51
#endif
CaliIOV::setCaliTag
void setCaliTag(const CaliTag &tag)
Definition:
CaliIOV.cc:39
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
CaliIOV::m_caliTag
CaliTag m_caliTag
Definition:
CaliIOV.h:45
CaliIOV::setTill
void setTill(const Tm &till)
Definition:
CaliIOV.cc:30
CaliIOV
Definition:
CaliIOV.h:13
IUniqueDBObject::m_ID
int m_ID
Definition:
IUniqueDBObject.h:18
funct::false
false
Definition:
Factorize.h:29
run_t
int run_t
Definition:
CaliIOV.h:11
CaliTag
Definition:
CaliTag.h:13
CaliIOV::setByID
void setByID(int id) noexcept(false) override
Definition:
CaliIOV.cc:94
CaliIOV::fetchID
int fetchID() noexcept(false) override
Definition:
CaliIOV.cc:48
protons_cff.time
time
Definition:
protons_cff.py:35
watchdog.const
const
Definition:
watchdog.py:83
CaliIOV::writeDB
int writeDB() noexcept(false)
Definition:
CaliIOV.cc:127
Utilities.operator
operator
Definition:
Utilities.py:24
CaliTag.h
CaliIOV::getID
int getID()
Definition:
CaliIOV.h:30
visualization-live-secondInstance_cfg.m
m
Definition:
visualization-live-secondInstance_cfg.py:79
CaliIOV::getSince
Tm getSince() const
Definition:
CaliIOV.cc:28
IIOV
Definition:
IIOV.h:11
writeEcalDQMStatus.since
since
Definition:
writeEcalDQMStatus.py:53
CaliIOV::getCaliTag
CaliTag getCaliTag() const
Definition:
CaliIOV.cc:46
Tm
Definition:
Tm.h:13
ntuplemaker.till
till
Definition:
ntuplemaker.py:198
CaliIOV::m_since
Tm m_since
Definition:
CaliIOV.h:43
CaliIOV::getTill
Tm getTill() const
Definition:
CaliIOV.cc:37
IIOV.h
makeGlobalPositionRcd_cfg.tag
tag
Definition:
makeGlobalPositionRcd_cfg.py:6
CaliIOV::setByTm
void setByTm(CaliTag *tag, const Tm &time) noexcept(false)
Definition:
CaliIOV.cc:174
Tm.h
CaliIOV::CaliIOV
CaliIOV()
Definition:
CaliIOV.cc:12
CaliIOV::~CaliIOV
~CaliIOV() override
Definition:
CaliIOV.cc:19
CaliIOV::m_till
Tm m_till
Definition:
CaliIOV.h:44
CaliIOV::operator!=
bool operator!=(const CaliIOV &m) const
Definition:
CaliIOV.h:39
CaliIOV::setSince
void setSince(const Tm &since)
Definition:
CaliIOV.cc:21
Generated for CMSSW Reference Manual by
1.8.16