CMS 3D CMS Logo

EcalLogicID.cc
Go to the documentation of this file.
1 
2 #include <string>
3 
5 
6 //Constructors
8 {
9 }
10 
12  int logicID,
13  int id1,
14  int id2,
15  int id3,
17 {
18  this->name = name;
19  this->logicID = logicID;
20  this->id1 = id1;
21  this->id2 = id2;
22  this->id3 = id3;
23  if (mapsTo.empty()) {
24  this->mapsTo = name;
25  } else {
26  this->mapsTo = mapsTo;
27  }
28 }
29 
30 // Destructor
32 {
33 }
34 
35 // Getters
37 {
38  return name;
39 }
40 
42 {
43  return logicID;
44 }
45 
47 {
48  return id1;
49 }
50 
52 {
53  return id2;
54 }
55 
57 {
58  return id3;
59 }
60 
62 {
63  return mapsTo;
64 }
virtual ~EcalLogicID()
Definition: EcalLogicID.cc:31
std::string getMapsTo() const
Definition: EcalLogicID.cc:61
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
int getID3() const
Definition: EcalLogicID.cc:56
std::string mapsTo
Definition: EcalLogicID.h:53