Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:11:45

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
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 }  // namespace ActsExamples