ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
14
#include "
Acts/Material/Material.hpp
"
15
#include "
Acts/Material/MaterialProperties.hpp
"
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
32
MaterialProperties
makeUnitSlab
() {
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
39
MaterialProperties
makePercentSlab
() {
40
auto
slab =
makeUnitSlab
();
41
slab.scaleThickness(0.01);
42
return
slab;
43
}
44
45
}
// namespace Test
46
}
// namespace Acts
acts
blob
master
Tests
CommonHelpers
Acts
Tests
CommonHelpers
PredefinedMaterials.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:25
using
1.8.2 with
ECCE GitHub integration