Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:52

0001 
0002 #ifndef ECALLOGICID_HH
0003 #define ECALLOGICID_HH
0004 
0005 #include <string>
0006 // Defines an object to contain the DB logic ID for conditions
0007 class EcalLogicID {
0008 public:
0009   // Default constructor
0010   EcalLogicID();
0011 
0012   // Initializing constructor
0013   EcalLogicID(
0014       std::string name, int logicID, int id1 = NULLID, int id2 = NULLID, int id3 = NULLID, std::string mapsTo = "");
0015 
0016   // Destructor
0017   virtual ~EcalLogicID();
0018 
0019   // Getters
0020   std::string getName() const;
0021 
0022   int getLogicID() const;
0023 
0024   int getID1() const;
0025   int getID2() const;
0026   int getID3() const;
0027 
0028   inline void setID1(int x) { id1 = x; }
0029   inline void setID2(int x) { id2 = x; }
0030   inline void setID3(int x) { id3 = x; }
0031 
0032   std::string getMapsTo() const;
0033 
0034   // Constants
0035   static const int NULLID = -100;
0036 
0037   // Operators
0038   friend inline bool operator<(EcalLogicID lhs, EcalLogicID rhs) { return (lhs.logicID < rhs.logicID); }
0039 
0040 private:
0041   std::string name;
0042   int logicID;
0043   int id1;
0044   int id2;
0045   int id3;
0046   std::string mapsTo;
0047 };
0048 
0049 #endif