Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
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/Definitions/Units.hpp
"
15
#include "
Acts/Material/Material.hpp
"
16
#include "
Acts/Material/MaterialSlab.hpp
"
17
18
namespace
Acts {
19
namespace
Test {
20
21
inline
Material
makeBeryllium
() {
22
using namespace
UnitLiterals;
23
return
Material::fromMolarDensity
(35.28_cm, 42.10_cm, 9.012, 4,
24
(1.848 / 9.012) * 1_mol / 1_cm3);
25
}
26
27
inline
Material
makeSilicon
() {
28
using namespace
UnitLiterals;
29
return
Material::fromMolarDensity
(9.370_cm, 46.52_cm, 28.0855, 14,
30
(2.329 / 28.0855) * 1_mol / 1_cm3);
31
}
32
34
inline
MaterialSlab
makeUnitSlab
() {
35
using namespace
UnitLiterals;
36
// silicon-like material with higher X0 and lower L0
37
return
{
Material::fromMolarDensity
(20_cm, 20_cm, 28.0855, 14,
38
(2.329 / 28.0855) * 1_mol / 1_cm3),
39
20_cm};
40
}
41
43
inline
MaterialSlab
makePercentSlab
() {
44
auto
slab =
makeUnitSlab
();
45
slab.scaleThickness(0.01);
46
return
slab;
47
}
48
49
}
// namespace Test
50
}
// namespace Acts
acts
blob
sPHENIX
Tests
CommonHelpers
Acts
Tests
CommonHelpers
PredefinedMaterials.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:42
using
1.8.2 with
sPHENIX GitHub integration