CMS 3D CMS Logo

EcalLogicID.cc
Go to the documentation of this file.
1 
2 #include <string>
3 
5 
6 //Constructors
8 
9 EcalLogicID::EcalLogicID(std::string name, int logicID, int id1, int id2, int id3, std::string mapsTo) {
10  this->name = name;
11  this->logicID = logicID;
12  this->id1 = id1;
13  this->id2 = id2;
14  this->id3 = id3;
15  if (mapsTo.empty()) {
16  this->mapsTo = name;
17  } else {
18  this->mapsTo = mapsTo;
19  }
20 }
21 
22 // Destructor
24 
25 // Getters
27 
28 int EcalLogicID::getLogicID() const { return logicID; }
29 
30 int EcalLogicID::getID1() const { return id1; }
31 
32 int EcalLogicID::getID2() const { return id2; }
33 
34 int EcalLogicID::getID3() const { return id3; }
35 
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
int getLogicID() const
Definition: EcalLogicID.cc:28
std::string name
Definition: EcalLogicID.h:41
int getID3() const
Definition: EcalLogicID.cc:34
std::string getMapsTo() const
Definition: EcalLogicID.cc:36
std::string mapsTo
Definition: EcalLogicID.h:46