Main Page
Namespaces
Classes
Package Documentation
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
9
public
:
10
11
// Default constructor
12
EcalLogicID
();
13
14
// Initializing constructor
15
EcalLogicID
(
std::string
name
,
16
int
logicID
,
17
int
id1
=
NULLID
,
18
int
id2
=
NULLID
,
19
int
id3
=
NULLID
,
20
std::string
mapsTo
=
""
);
21
22
// Destructor
23
virtual
~EcalLogicID
();
24
25
// Getters
26
std::string
getName
()
const
;
27
28
int
getLogicID
()
const
;
29
30
int
getID1
()
const
;
31
int
getID2
()
const
;
32
int
getID3
()
const
;
33
34
inline
void
setID1
(
int
x
) {
id1
=
x
; }
35
inline
void
setID2
(
int
x
) {
id2
=
x
; }
36
inline
void
setID3
(
int
x
) {
id3
=
x
; }
37
38
39
std::string
getMapsTo
()
const
;
40
41
// Constants
42
static
const
int
NULLID
= -100;
43
44
// Operators
45
friend
inline
bool
operator<
(
EcalLogicID
lhs,
EcalLogicID
rhs) {
return
(lhs.
logicID
< rhs.
logicID
); }
46
47
private
:
48
std::string
name
;
49
int
logicID
;
50
int
id1
;
51
int
id2
;
52
int
id3
;
53
std::string
mapsTo
;
54
55
};
56
57
#endif
EcalLogicID
Definition:
EcalLogicID.h:7
EcalLogicID::~EcalLogicID
virtual ~EcalLogicID()
Definition:
EcalLogicID.cc:31
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
EcalLogicID::id1
int id1
Definition:
EcalLogicID.h:50
EcalLogicID::getMapsTo
std::string getMapsTo() const
Definition:
EcalLogicID.cc:61
EcalLogicID::operator<
friend bool operator<(EcalLogicID lhs, EcalLogicID rhs)
Definition:
EcalLogicID.h:45
EcalLogicID::setID2
void setID2(int x)
Definition:
EcalLogicID.h:35
EcalLogicID::EcalLogicID
EcalLogicID()
Definition:
EcalLogicID.cc:7
EcalLogicID::setID3
void setID3(int x)
Definition:
EcalLogicID.h:36
EcalLogicID::id2
int id2
Definition:
EcalLogicID.h:51
EcalLogicID::id3
int id3
Definition:
EcalLogicID.h:52
EcalLogicID::getID2
int getID2() const
Definition:
EcalLogicID.cc:51
EcalLogicID::getName
std::string getName() const
Definition:
EcalLogicID.cc:36
EcalLogicID::name
std::string name
Definition:
EcalLogicID.h:48
EcalLogicID::getID1
int getID1() const
Definition:
EcalLogicID.cc:46
EcalLogicID::getLogicID
int getLogicID() const
Definition:
EcalLogicID.cc:41
EcalLogicID::setID1
void setID1(int x)
Definition:
EcalLogicID.h:34
EcalLogicID::NULLID
static const int NULLID
Definition:
EcalLogicID.h:42
EcalLogicID::logicID
int logicID
Definition:
EcalLogicID.h:49
EcalLogicID::getID3
int getID3() const
Definition:
EcalLogicID.cc:56
DDAxes::x
EcalLogicID::mapsTo
std::string mapsTo
Definition:
EcalLogicID.h:53
Generated for CMSSW Reference Manual by
1.8.11