10 #include <Eigen/Dense>
11 #include <Eigen/Geometry>
33 std::cout <<
"You provided a nonexistent layer in alignmentTransformationContainer::setMisalignmentFactor..."
44 std::vector<Acts::Transform3> emptyLayerVec;
49 std::vector<std::vector<Acts::Transform3>> emptyVec;
56 os <<
"-----alignmentTransformationContainer-----" << std::endl;
60 if(layerVec.size() == 0)
continue;
62 os <<
" Layer: " <<
i << std::endl;
64 for(
unsigned int il=0; il< layerVec.size(); ++il)
66 os <<
" Sensor Id: " << il+1
67 <<
" Transform: " << layerVec[il].matrix()
71 os <<
"------------------------------" << std::endl;
79 unsigned int sensor =
id.sensitive() - 1;
89 if(sensor < layerVec.size())
93 else if (sensor == layerVec.size())
95 layerVec.push_back(transform);
99 layerVec.resize(sensor+1, transform);
105 std::vector<Acts::Transform3> newVec;
106 newVec.resize(sensor + 1, transform);
113 std::vector<Acts::Transform3> newVec;
114 newVec.resize(sensor + 1, transform);
122 unsigned int sensor =
id.sensitive() - 1;
125 if(layerVec.size() > sensor)
127 return layerVec[sensor];
130 std::cout <<
"Unable to find Acts Id: "<<
id<<
" in alignmentTransformationContainer" << std::endl;
137 unsigned int sensor =
id.sensitive() - 1;
140 if(layerVec.size() > sensor)
146 std::cout <<
"Unable to find Acts Id: "<<
id<<
" in alignmentTransformationContainer" << std::endl;
157 unsigned int layer =
id.layer();
158 unsigned int volume =
id.volume();
159 unsigned int sphlayer =
base_layer_map.find(volume)->second + layer / 2 -1;