EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
CI
Core
include
Acts
EventData
Geometry
MagneticField
Material
detail
AccumulatedMaterialSlab.hpp
AccumulatedSurfaceMaterial.hpp
AccumulatedVolumeMaterial.hpp
BinnedSurfaceMaterial.hpp
HomogeneousSurfaceMaterial.hpp
HomogeneousVolumeMaterial.hpp
IMaterialDecorator.hpp
Interactions.hpp
InterpolatedMaterialMap.hpp
ISurfaceMaterial.hpp
IVolumeMaterial.hpp
Material.hpp
MaterialCollector.hpp
MaterialComposition.hpp
MaterialGridHelper.hpp
MaterialMapUtils.hpp
MaterialSlab.hpp
ProtoSurfaceMaterial.hpp
ProtoVolumeMaterial.hpp
SurfaceMaterialMapper.hpp
VolumeMaterialMapper.hpp
Propagator
Seeding
Surfaces
TrackFinding
TrackFitting
Utilities
Vertexing
Visualization
src
docs
Examples
Fatras
Plugins
Tests
thirdparty
BeastMagneticField
delphes_EIC
Doxygen_Assist
east
eic-smear
EicRoot
eicsmear-jetexample
eicsmeardetectors
EicToyModel
estarlight
Fun4All-lmon
fun4all_coresoftware
fun4all_eic_qa
fun4all_eic_tutorials
fun4all_eicdetectors
fun4all_eicmacros
fun4all_g4jleic
fun4all_GenFit
fun4all_macros
fun4all_tutorials
g4exampledetector
g4lblvtx
online_distribution
PEPSI
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
AccumulatedSurfaceMaterial.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file AccumulatedSurfaceMaterial.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2016-2020 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
11
#include "
Acts/Material/AccumulatedMaterialSlab.hpp
"
12
#include "
Acts/Material/ISurfaceMaterial.hpp
"
13
#include "
Acts/Material/MaterialSlab.hpp
"
14
#include "
Acts/Utilities/BinUtility.hpp
"
15
#include "
Acts/Utilities/Definitions.hpp
"
16
17
#include <array>
18
#include <vector>
19
20
namespace
Acts {
21
29
class
AccumulatedSurfaceMaterial
{
30
public
:
31
using
AccumulatedVector
= std::vector<AccumulatedMaterialSlab>;
32
using
AccumulatedMatrix
= std::vector<AccumulatedVector>;
33
37
AccumulatedSurfaceMaterial
(
double
splitFactor
= 0.);
38
49
AccumulatedSurfaceMaterial
(
const
BinUtility
&
binUtility
,
50
double
splitFactor
= 0.);
51
55
AccumulatedSurfaceMaterial
(
const
AccumulatedSurfaceMaterial
& asma) =
default
;
56
60
AccumulatedSurfaceMaterial
(
AccumulatedSurfaceMaterial
&& asma) =
default
;
61
65
AccumulatedSurfaceMaterial
&
operator=
(
AccumulatedSurfaceMaterial
&& asma) =
66
default
;
67
71
AccumulatedSurfaceMaterial
&
operator=
(
72
const
AccumulatedSurfaceMaterial
& asma) =
default
;
73
75
~AccumulatedSurfaceMaterial
() =
default
;
76
78
const
BinUtility
&
binUtility
()
const
;
79
86
std::array<size_t, 3>
accumulate
(
const
Vector2D
& lp,
const
MaterialSlab
& mp,
87
double
pathCorrection = 1.);
88
95
std::array<size_t, 3>
accumulate
(
const
Vector3D
& gp,
const
MaterialSlab
& mp,
96
double
pathCorrection = 1.);
97
103
void
trackAverage
(
const
std::vector
<std::array<size_t, 3>>& trackBins = {},
104
bool
emptyHit =
false
);
105
110
void
trackAverage
(
const
Vector3D
& gp,
bool
emptyHit =
false
);
111
113
std::unique_ptr<const ISurfaceMaterial>
totalAverage
();
114
116
const
AccumulatedMatrix
&
accumulatedMaterial
()
const
;
117
119
double
splitFactor
()
const
;
120
121
private
:
123
BinUtility
m_binUtility
{};
124
126
double
m_splitFactor
{0.};
127
129
AccumulatedMatrix
m_accumulatedMaterial
;
130
};
131
132
inline
const
BinUtility
&
AccumulatedSurfaceMaterial::binUtility
()
const
{
133
return
(
m_binUtility
);
134
}
135
136
inline
const
AccumulatedSurfaceMaterial::AccumulatedMatrix
&
137
AccumulatedSurfaceMaterial::accumulatedMaterial
()
const
{
138
return
(
m_accumulatedMaterial
);
139
}
140
141
inline
double
AccumulatedSurfaceMaterial::splitFactor
()
const
{
142
return
m_splitFactor
;
143
}
144
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Material
AccumulatedSurfaceMaterial.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:23
using
1.8.2 with
EIC GitHub integration