Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:23:02

0001 
0002 #include <string>
0003 
0004 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0005 
0006 //Constructors
0007 EcalLogicID::EcalLogicID() {}
0008 
0009 EcalLogicID::EcalLogicID(std::string name, int logicID, int id1, int id2, int id3, std::string mapsTo) {
0010   this->name = name;
0011   this->logicID = logicID;
0012   this->id1 = id1;
0013   this->id2 = id2;
0014   this->id3 = id3;
0015   if (mapsTo.empty()) {
0016     this->mapsTo = name;
0017   } else {
0018     this->mapsTo = mapsTo;
0019   }
0020 }
0021 
0022 // Destructor
0023 EcalLogicID::~EcalLogicID() {}
0024 
0025 // Getters
0026 std::string EcalLogicID::getName() const { return name; }
0027 
0028 int EcalLogicID::getLogicID() const { return logicID; }
0029 
0030 int EcalLogicID::getID1() const { return id1; }
0031 
0032 int EcalLogicID::getID2() const { return id2; }
0033 
0034 int EcalLogicID::getID3() const { return id3; }
0035 
0036 std::string EcalLogicID::getMapsTo() const { return mapsTo; }