Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:12:17

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 "Acts/Plugins/DD4hep/DD4hepDetectorElement.hpp"
0010 
0011 #include <utility>
0012 
0013 #include <DD4hep/Alignments.h>
0014 #include <DD4hep/DetElement.h>
0015 #include <DD4hep/Volumes.h>
0016 
0017 Acts::DD4hepDetectorElement::DD4hepDetectorElement(
0018     const dd4hep::DetElement detElement, const std::string& axes, double scalor,
0019     bool /*isDisc*/, std::shared_ptr<const ISurfaceMaterial> material)
0020     : TGeoDetectorElement(
0021           static_cast<TGeoDetectorElement::Identifier>(detElement.volumeID()),
0022           *(detElement.placement().ptr()),
0023           detElement.nominal().worldTransformation(), axes, scalor,
0024           std::move(material)),
0025       m_detElement(detElement) {}