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
MaterialInteraction.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file MaterialInteraction.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2021 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/Definitions/Algebra.hpp
"
12
#include "
Acts/Detector/DetectorVolume.hpp
"
13
#include "
Acts/Geometry/GeometryIdentifier.hpp
"
14
#include "
Acts/Geometry/TrackingVolume.hpp
"
15
#include "
Acts/Material/MaterialSlab.hpp
"
16
17
namespace
Acts {
18
19
class
Surface
;
20
24
struct
InteractionVolume
{
26
const
TrackingVolume
*
trackingVolume
=
nullptr
;
28
const
Experimental::DetectorVolume
*
detectorVolume
=
nullptr
;
29
31
InteractionVolume
() =
default
;
32
35
InteractionVolume
(
const
TrackingVolume
* tv) :
trackingVolume
(tv) {}
36
39
InteractionVolume
(
const
Experimental::DetectorVolume
* dv)
40
:
detectorVolume
(dv) {}
41
43
GeometryIdentifier
geometryId
()
const
{
44
if
(
trackingVolume
!=
nullptr
) {
45
return
trackingVolume
->
geometryId
();
46
}
else
if
(
detectorVolume
!=
nullptr
) {
47
return
detectorVolume
->
geometryId
();
48
}
else
{
49
return
GeometryIdentifier
();
50
}
51
}
52
54
bool
empty
()
const
{
55
return
trackingVolume
==
nullptr
and
detectorVolume
==
nullptr
;
56
}
57
};
58
62
struct
MaterialInteraction
{
64
Vector3
position
=
Vector3
(0., 0., 0);
66
double
time
= 0.0;
68
Vector3
direction
=
Vector3
(0., 0., 0);
70
double
deltaP
= 0.0;
72
double
sigmaPhi2
= 0.0;
74
double
sigmaTheta2
= 0.0;
76
double
sigmaQoP2
= 0.0;
78
Vector3
intersection
=
Vector3
(0., 0., 0);
80
GeometryIdentifier
intersectionID
;
82
const
Surface
*
surface
=
nullptr
;
84
InteractionVolume
volume
{};
86
bool
updatedVolumeStep
=
false
;
88
double
pathCorrection
= 1.;
90
MaterialSlab
materialSlab
;
91
};
92
96
struct
RecordedMaterial
{
97
// The accumulated materialInX0
98
double
materialInX0
= 0.;
100
double
materialInL0
= 0.;
102
std::vector<MaterialInteraction>
materialInteractions
;
103
};
104
108
using
RecordedMaterialTrack
=
109
std::pair<std::pair<Acts::Vector3, Acts::Vector3>,
RecordedMaterial
>;
110
111
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Material
MaterialInteraction.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:33
using
1.8.2 with
sPHENIX GitHub integration