14 int main(
int argc,
char* argv[]) {
20 auto* alignedDetElement =
dynamic_cast<
23 assert(alignedDetElement !=
nullptr &&
"Got wrong detector element");
27 if (alignedDetElement !=
nullptr) {
28 alignedDetElement->addAlignedTransform(
aTransform, alignContext.iov);
36 auto alignedDetElementsGetter =
37 [](
const std::shared_ptr<ActsExamples::IBaseDetector>&
detector,
39 -> std::vector<Acts::DetectorElementBase*> {
40 std::vector<Acts::DetectorElementBase*> dets;
41 auto* alignedDetector =
44 for (
auto& lstore : alignedDetector->detectorStore()) {
45 for (
auto& ldet : lstore) {
47 const auto&
surface = &ldet->surface();
48 auto geoID =
surface->geometryId();
52 dets.push_back(ldet.get());
60 argc, argv, std::make_shared<ActsExamples::AlignedDetectorWithOptions>(),
61 alignedTransformUpdater, alignedDetElementsGetter);