Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:10:16

0001 // This file is part of the Acts project.
0002 //
0003 // Copyright (C) 2017-2018 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 http://mozilla.org/MPL/2.0/.
0008 
0009 #include "Acts/Plugins/DD4hep/DD4hepDetectorElement.hpp"
0010 
0011 #include "Acts/Plugins/Identification/Identifier.hpp"
0012 
0013 #include <utility>
0014 
0015 #include <DD4hep/Alignments.h>
0016 #include <DD4hep/DetElement.h>
0017 #include <DD4hep/Volumes.h>
0018 
0019 namespace Acts {
0020 class ISurfaceMaterial;
0021 }  // namespace Acts
0022 
0023 Acts::DD4hepDetectorElement::DD4hepDetectorElement(
0024     const dd4hep::DetElement detElement, const std::string& axes, double scalor,
0025     bool /*isDisc*/, std::shared_ptr<const Acts::ISurfaceMaterial> material)
0026     : Acts::TGeoDetectorElement(Identifier(detElement.volumeID()),
0027                                 *(detElement.placement().ptr()),
0028                                 detElement.nominal().worldTransformation(),
0029                                 axes, scalor, std::move(material)),
0030       m_detElement(detElement) {}