ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PredefinedMaterials.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PredefinedMaterials.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 
11 
12 #pragma once
13 
16 #include "Acts/Utilities/Units.hpp"
17 
18 namespace Acts {
19 namespace Test {
20 
21 constexpr Material makeBeryllium() {
22  using namespace UnitLiterals;
23  return {35.28_cm, 42.10_cm, 9.012, 4, 1.848_g / 1_cm3};
24 }
25 
26 constexpr Material makeSilicon() {
27  using namespace UnitLiterals;
28  return {9.370_cm, 46.52_cm, 28.0855, 14, 2.329_g / 1_cm3};
29 }
30 
33  using namespace UnitLiterals;
34  // silicon-like material with higher X0 and lower L0
35  return {20_cm, 20_cm, 28.0855, 14, 2.329_g / 1_cm3, 20_cm};
36 }
37 
40  auto slab = makeUnitSlab();
41  slab.scaleThickness(0.01);
42  return slab;
43 }
44 
45 } // namespace Test
46 } // namespace Acts