CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
virtual ~EcalLogicID()
Definition: EcalLogicID.cc:32
std::string getMapsTo() const
Definition: EcalLogicID.cc:62
friend bool operator<(EcalLogicID lhs, EcalLogicID rhs)
Definition: EcalLogicID.h:46
void setID2(int x)
Definition: EcalLogicID.h:36
void setID3(int x)
Definition: EcalLogicID.h:37
int getID2() const
Definition: EcalLogicID.cc:52
std::string getName() const
Definition: EcalLogicID.cc:37
std::string name
Definition: EcalLogicID.h:49
int getID1() const
Definition: EcalLogicID.cc:47
int getLogicID() const
Definition: EcalLogicID.cc:42
void setID1(int x)
Definition: EcalLogicID.h:35
static const int NULLID
Definition: EcalLogicID.h:43
int getID3() const
Definition: EcalLogicID.cc:57
x
Definition: VDTMath.h:216
std::string mapsTo
Definition: EcalLogicID.h:54