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 
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
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:
49  int logicID;
50  int id1;
51  int id2;
52  int id3;
54 
55 };
56 
57 #endif
virtual ~EcalLogicID()
Definition: EcalLogicID.cc:31
std::string getMapsTo() const
Definition: EcalLogicID.cc:61
friend bool operator<(EcalLogicID lhs, EcalLogicID rhs)
Definition: EcalLogicID.h:45
void setID2(int x)
Definition: EcalLogicID.h:35
void setID3(int x)
Definition: EcalLogicID.h:36
int getID2() const
Definition: EcalLogicID.cc:51
std::string getName() const
Definition: EcalLogicID.cc:36
std::string name
Definition: EcalLogicID.h:48
int getID1() const
Definition: EcalLogicID.cc:46
int getLogicID() const
Definition: EcalLogicID.cc:41
void setID1(int x)
Definition: EcalLogicID.h:34
static const int NULLID
Definition: EcalLogicID.h:42
Definition: DDAxes.h:10
int getID3() const
Definition: EcalLogicID.cc:56
std::string mapsTo
Definition: EcalLogicID.h:53