File indexing completed on 2025-01-18 09:11:45
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "ActsExamples/GenericDetector/GenericDetector.hpp"
0010
0011 #include "ActsExamples/GenericDetector/BuildGenericDetector.hpp"
0012 #include "ActsExamples/GenericDetector/GenericDetectorElement.hpp"
0013
0014 namespace ActsExamples {
0015
0016 GenericDetector::GenericDetector(const Config& cfg)
0017 : Detector(Acts::getDefaultLogger("GenericDetector", cfg.logLevel)),
0018 m_cfg(cfg) {
0019 m_nominalGeometryContext = Acts::GeometryContext();
0020
0021 std::vector<std::vector<std::shared_ptr<GenericDetectorElement>>>
0022 specificDetectorStore;
0023 m_trackingGeometry = Generic::buildDetector<GenericDetectorElement>(
0024 m_nominalGeometryContext, specificDetectorStore, m_cfg.buildLevel,
0025 m_cfg.materialDecorator, m_cfg.buildProto, m_cfg.surfaceLogLevel,
0026 m_cfg.layerLogLevel, m_cfg.volumeLogLevel);
0027
0028 for (const auto& something : specificDetectorStore) {
0029 for (const auto& element : something) {
0030 m_detectorStore.push_back(element);
0031 }
0032 }
0033 }
0034
0035 }