EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ConvertDD4hepMaterial.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ConvertDD4hepMaterial.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2019 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
14 
15 #include <DD4hep/DetElement.h>
16 #include <DD4hep/DetFactoryHelper.h>
17 
18 namespace Acts {
19 
20 class ProtoSurfaceMaterial;
21 class Layer;
22 
33  dd4hep::DetElement detElement, Layer& cylinderLayer,
34  Logging::Level loggingLevel = Logging::Level::INFO);
35 
46  dd4hep::DetElement detElement, Layer& discLayer,
47  Logging::Level loggingLevel = Logging::Level::INFO);
48 
57  const ActsExtension& actsExtension, Layer& layer,
58  const std::vector<std::pair<const std::string, Acts::BinningOption> >&
59  binning);
60 
68 std::shared_ptr<Acts::ProtoSurfaceMaterial> createProtoMaterial(
69  const ActsExtension& actsExtension, const std::string& valueTag,
70  const std::vector<std::pair<const std::string, Acts::BinningOption> >&
71  binning);
72 
76 
84 void xmlToProtoSurfaceMaterial(const xml_comp_t& x_material,
85  ActsExtension& actsExtension,
86  const std::string& baseTag);
87 
88 } // namespace Acts