CMS 3D CMS Logo

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
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:
42  int logicID;
43  int id1;
44  int id2;
45  int id3;
47 };
48 
49 #endif
int getID1() const
Definition: EcalLogicID.cc:30
std::string getName() const
Definition: EcalLogicID.cc:26
virtual ~EcalLogicID()
Definition: EcalLogicID.cc:23
int getID2() const
Definition: EcalLogicID.cc:32
friend bool operator<(EcalLogicID lhs, EcalLogicID rhs)
Definition: EcalLogicID.h:38
void setID2(int x)
Definition: EcalLogicID.h:29
void setID3(int x)
Definition: EcalLogicID.h:30
int getLogicID() const
Definition: EcalLogicID.cc:28
std::string name
Definition: EcalLogicID.h:41
void setID1(int x)
Definition: EcalLogicID.h:28
int getID3() const
Definition: EcalLogicID.cc:34
static const int NULLID
Definition: EcalLogicID.h:35
std::string getMapsTo() const
Definition: EcalLogicID.cc:36
std::string mapsTo
Definition: EcalLogicID.h:46