Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
OnlineDB
EcalCondDB
interface
EcalLogicID.h
Go to the documentation of this file.
1
// $Id: EcalLogicID.h,v 1.3 2009/11/23 10:27:34 fra Exp $
2
3
#ifndef ECALLOGICID_HH
4
#define ECALLOGICID_HH
5
6
#include <string>
7
// Defines an object to contain the DB logic ID for conditions
8
class
EcalLogicID
{
9
10
public
:
11
12
// Default constructor
13
EcalLogicID
();
14
15
// Initializing constructor
16
EcalLogicID
( std::string
name
,
17
int
logicID
,
18
int
id1
=
NULLID
,
19
int
id2
=
NULLID
,
20
int
id3
=
NULLID
,
21
std::string
mapsTo
=
""
);
22
23
// Destructor
24
virtual
~EcalLogicID
();
25
26
// Getters
27
std::string
getName
()
const
;
28
29
int
getLogicID
()
const
;
30
31
int
getID1
()
const
;
32
int
getID2
()
const
;
33
int
getID3
()
const
;
34
35
inline
void
setID1
(
int
x
) {
id1
=
x
; }
36
inline
void
setID2
(
int
x
) {
id2
=
x
; }
37
inline
void
setID3
(
int
x
) {
id3
=
x
; }
38
39
40
std::string
getMapsTo
()
const
;
41
42
// Constants
43
static
const
int
NULLID
= -100;
44
45
// Operators
46
friend
inline
bool
operator<
(
EcalLogicID
lhs,
EcalLogicID
rhs) {
return
(lhs.
logicID
< rhs.
logicID
); }
47
48
private
:
49
std::string
name
;
50
int
logicID
;
51
int
id1
;
52
int
id2
;
53
int
id3
;
54
std::string
mapsTo
;
55
56
};
57
58
#endif
EcalLogicID
Definition:
EcalLogicID.h:8
EcalLogicID::~EcalLogicID
virtual ~EcalLogicID()
Definition:
EcalLogicID.cc:32
EcalLogicID::id1
int id1
Definition:
EcalLogicID.h:51
EcalLogicID::getMapsTo
std::string getMapsTo() const
Definition:
EcalLogicID.cc:62
EcalLogicID::operator<
friend bool operator<(EcalLogicID lhs, EcalLogicID rhs)
Definition:
EcalLogicID.h:46
EcalLogicID::setID2
void setID2(int x)
Definition:
EcalLogicID.h:36
EcalLogicID::EcalLogicID
EcalLogicID()
Definition:
EcalLogicID.cc:8
EcalLogicID::setID3
void setID3(int x)
Definition:
EcalLogicID.h:37
EcalLogicID::id2
int id2
Definition:
EcalLogicID.h:52
EcalLogicID::id3
int id3
Definition:
EcalLogicID.h:53
EcalLogicID::getID2
int getID2() const
Definition:
EcalLogicID.cc:52
EcalLogicID::getName
std::string getName() const
Definition:
EcalLogicID.cc:37
EcalLogicID::name
std::string name
Definition:
EcalLogicID.h:49
EcalLogicID::getID1
int getID1() const
Definition:
EcalLogicID.cc:47
EcalLogicID::getLogicID
int getLogicID() const
Definition:
EcalLogicID.cc:42
EcalLogicID::setID1
void setID1(int x)
Definition:
EcalLogicID.h:35
EcalLogicID::NULLID
static const int NULLID
Definition:
EcalLogicID.h:43
EcalLogicID::logicID
int logicID
Definition:
EcalLogicID.h:50
EcalLogicID::getID3
int getID3() const
Definition:
EcalLogicID.cc:57
vdt::x
x
Definition:
VDTMath.h:216
EcalLogicID::mapsTo
std::string mapsTo
Definition:
EcalLogicID.h:54
Generated for CMSSW Reference Manual by
1.8.5