Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-17 09:37:58

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 #pragma once
0010 
0011 #include "Acts/Definitions/Algebra.hpp"
0012 #include "ActsExamples/DetectorCommons/Aligned.hpp"
0013 #include "ActsPlugins/Root/TGeoDetectorElement.hpp"
0014 
0015 #include <memory>
0016 #include <string>
0017 
0018 class TGeoNode;
0019 class TGeoMatrix;
0020 
0021 namespace Acts {
0022 class ISurfaceMaterial;
0023 }  // namespace Acts
0024 
0025 namespace ActsExamples {
0026 /// Define the aligned TGeo detector element and factory type
0027 using AlignedTGeoDetectorElement =
0028     ActsExamples::Aligned<ActsPlugins::TGeoDetectorElement>;
0029 
0030 /// @brief The factory for creating an aligned TGeo detector element
0031 std::shared_ptr<AlignedTGeoDetectorElement> alignedTGeoDetectorElementFactory(
0032     const ActsPlugins::TGeoDetectorElement::Identifier& identifier,
0033     const TGeoNode& tGeoNode, const TGeoMatrix& tGeoMatrix,
0034     const std::string& axes, double scalor,
0035     std::shared_ptr<const Acts::ISurfaceMaterial> material);
0036 
0037 }  // namespace ActsExamples