OnlineDB
EcalCondDB
interface
EcalLogicID.h
Go to the documentation of this file.
1
2
#ifndef ECALLOGICID_HH
3
#define ECALLOGICID_HH
4
5
#include <string>
6
// Defines an object to contain the DB logic ID for conditions
7
class
EcalLogicID
{
8
public
:
9
// Default constructor
10
EcalLogicID
();
11
12
// Initializing constructor
13
EcalLogicID
(
14
std::string
name
,
int
logicID
,
int
id1
=
NULLID
,
int
id2
=
NULLID
,
int
id3
=
NULLID
,
std::string
mapsTo
=
""
);
15
16
// Destructor
17
virtual
~EcalLogicID
();
18
19
// Getters
20
std::string
getName
()
const
;
21
22
int
getLogicID
()
const
;
23
24
int
getID1
()
const
;
25
int
getID2
()
const
;
26
int
getID3
()
const
;
27
28
inline
void
setID1
(
int
x
) {
id1
=
x
; }
29
inline
void
setID2
(
int
x
) {
id2
=
x
; }
30
inline
void
setID3
(
int
x
) {
id3
=
x
; }
31
32
std::string
getMapsTo
()
const
;
33
34
// Constants
35
static
const
int
NULLID
= -100;
36
37
// Operators
38
friend
inline
bool
operator<
(
EcalLogicID
lhs,
EcalLogicID
rhs) {
return
(lhs.
logicID
< rhs.
logicID
); }
39
40
private
:
41
std::string
name
;
42
int
logicID
;
43
int
id1
;
44
int
id2
;
45
int
id3
;
46
std::string
mapsTo
;
47
};
48
49
#endif
EcalLogicID::getID1
int getID1() const
Definition:
EcalLogicID.cc:30
EcalLogicID::getName
std::string getName() const
Definition:
EcalLogicID.cc:26
EcalLogicID
Definition:
EcalLogicID.h:7
EcalLogicID::~EcalLogicID
virtual ~EcalLogicID()
Definition:
EcalLogicID.cc:23
EcalLogicID::getID2
int getID2() const
Definition:
EcalLogicID.cc:32
EcalLogicID::id1
int id1
Definition:
EcalLogicID.h:43
EcalLogicID::operator<
friend bool operator<(EcalLogicID lhs, EcalLogicID rhs)
Definition:
EcalLogicID.h:38
EcalLogicID::setID2
void setID2(int x)
Definition:
EcalLogicID.h:29
EcalLogicID::EcalLogicID
EcalLogicID()
Definition:
EcalLogicID.cc:7
EcalLogicID::setID3
void setID3(int x)
Definition:
EcalLogicID.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
EcalLogicID::id2
int id2
Definition:
EcalLogicID.h:44
EcalLogicID::id3
int id3
Definition:
EcalLogicID.h:45
EcalLogicID::getLogicID
int getLogicID() const
Definition:
EcalLogicID.cc:28
EcalLogicID::name
std::string name
Definition:
EcalLogicID.h:41
EcalLogicID::setID1
void setID1(int x)
Definition:
EcalLogicID.h:28
EcalLogicID::getID3
int getID3() const
Definition:
EcalLogicID.cc:34
EcalLogicID::NULLID
static const int NULLID
Definition:
EcalLogicID.h:35
EcalLogicID::logicID
int logicID
Definition:
EcalLogicID.h:42
DDAxes::x
EcalLogicID::getMapsTo
std::string getMapsTo() const
Definition:
EcalLogicID.cc:36
EcalLogicID::mapsTo
std::string mapsTo
Definition:
EcalLogicID.h:46
Generated for CMSSW Reference Manual by
1.8.14