81 if (layerSpecification.substr(0, 4) ==
"BPix") {
84 trackingLayer.
_layerNumber = std::atoi(layerSpecification.substr(4, 1).c_str());
85 }
else if (layerSpecification.substr(0, 4) ==
"FPix") {
87 trackingLayer.
_layerNumber = std::atoi(layerSpecification.substr(4, 1).c_str());
88 if (layerSpecification.substr(layerSpecification.size() - 3) ==
"pos") {
90 }
else if (layerSpecification.substr(layerSpecification.size() - 3) ==
"neg") {
94 <<
"FPix seeding layer configuration '" << layerSpecification.c_str()
95 <<
"' does not specify the side correctly!";
98 }
else if (layerSpecification.substr(0, 3) ==
"TIB") {
101 trackingLayer.
_layerNumber = std::atoi(layerSpecification.substr(3, 1).c_str());
102 }
else if (layerSpecification.substr(0, 4) ==
"MTIB") {
105 trackingLayer.
_layerNumber = std::atoi(layerSpecification.substr(4, 1).c_str());
108 else if (layerSpecification.substr(0, 3) ==
"TID") {
110 trackingLayer.
_layerNumber = std::atoi(layerSpecification.substr(3, 1).c_str());
111 if (layerSpecification.substr(layerSpecification.size() - 3) ==
"pos") {
113 }
else if (layerSpecification.substr(layerSpecification.size() - 3) ==
"neg") {
117 <<
"TID seeding layer configuration '" << layerSpecification.c_str()
118 <<
"' does not specify the side correctly!";
120 }
else if (layerSpecification.substr(0, 4) ==
"MTID") {
122 trackingLayer.
_layerNumber = std::atoi(layerSpecification.substr(4, 1).c_str());
123 if (layerSpecification.substr(layerSpecification.size() - 3) ==
"pos") {
125 }
else if (layerSpecification.substr(layerSpecification.size() - 3) ==
"neg") {
129 <<
"MTID seeding layer configuration '" << layerSpecification.c_str()
130 <<
"' does not specify the side correctly!";
132 }
else if (layerSpecification.substr(0, 3) ==
"TOB") {
135 trackingLayer.
_layerNumber = std::atoi(layerSpecification.substr(3, 1).c_str());
136 }
else if (layerSpecification.substr(0, 4) ==
"MTOB") {
139 trackingLayer.
_layerNumber = std::atoi(layerSpecification.substr(4, 1).c_str());
140 }
else if (layerSpecification.substr(0, 3) ==
"TEC") {
142 trackingLayer.
_layerNumber = std::atoi(layerSpecification.substr(3, 1).c_str());
143 if (layerSpecification.substr(layerSpecification.size() - 3) ==
"pos") {
145 }
else if (layerSpecification.substr(layerSpecification.size() - 3) ==
"neg") {
149 <<
"TEC seeding layer configuration '" << layerSpecification.c_str()
150 <<
"' does not specify the side correctly!";
153 }
else if (layerSpecification.substr(0, 4) ==
"MTEC") {
155 trackingLayer.
_layerNumber = std::atoi(layerSpecification.substr(4, 1).c_str());
156 if (layerSpecification.substr(layerSpecification.size() - 3) ==
"pos") {
158 }
else if (layerSpecification.substr(layerSpecification.size() - 3) ==
"neg") {
162 <<
"MTEC seeding layer configuration '" << layerSpecification.c_str()
163 <<
"' does not specify the side correctly!";
167 <<
"Bad data naming in seeding layer configuration."
168 <<
"no case sensitive name of ['BPix','FPix','TIB','MTIB','TID','MTID','TOB','TEC','MTEC'] matches '"
169 << layerSpecification.c_str() <<
"'";
173 return trackingLayer;
unsigned int _layerNumber