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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
DigitizationModule.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file DigitizationModule.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2016-2018 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
#include "
Acts/Plugins/Digitization/DigitizationCell.hpp
"
11
#include "
Acts/Plugins/Digitization/Segmentation.hpp
"
12
#include "
Acts/Utilities/Definitions.hpp
"
13
14
#include <memory>
15
16
namespace
Acts {
17
18
class
Surface
;
19
using
SurfacePtr
= std::shared_ptr<const Surface>;
20
using
SurfacePtrVector
= std::vector<SurfacePtr>;
21
47
class
DigitizationModule
{
48
public
:
56
DigitizationModule
(std::shared_ptr<const Segmentation> moduleSegmentation,
57
double
halfThickness
,
int
readoutDirection
,
58
double
lorentzAngle
,
double
energyThreshold
= 0.,
59
bool
analogue
=
false
);
60
62
virtual
~DigitizationModule
() =
default
;
63
72
const
SurfacePtrVector
segmentationSurfaces
(
73
const
DigitizationCell
& entryCids,
74
const
DigitizationCell
& exitCids)
const
;
75
77
const
DigitizationCell
cell
(
const
Vector2D
&
position
)
const
;
78
80
double
halfThickness
()
const
;
81
83
int
readoutDirection
()
const
;
84
86
double
lorentzAngle
()
const
;
87
89
double
energyThreshold
()
const
;
90
92
bool
analogue
()
const
;
93
95
const
Segmentation
&
segmentation
()
const
;
96
103
const
SurfacePtrVector
stepSurfaces
(
const
Vector3D
&
start
,
104
const
Vector3D
& end)
const
;
105
111
const
DigitizationStep
digitizationStep
(
const
Vector3D
& start,
112
const
Vector3D
& end)
const
;
113
115
const
SurfacePtrVector
&
boundarySurfaces
()
const
;
116
118
const
SurfacePtrVector
&
segmentationSurfacesX
()
const
;
119
121
const
SurfacePtrVector
&
segmentationSurfacesY
()
const
;
122
123
private
:
125
double
m_halfThickness
;
127
int
m_readoutDirection
;
129
double
m_lorentzAngle
;
131
double
m_tanLorentzAngle
;
133
double
m_energyThreshold
;
135
bool
m_analogue
;
137
std::shared_ptr<const Segmentation>
m_segmentation
;
139
SurfacePtrVector
m_boundarySurfaces
;
141
SurfacePtrVector
m_segmentationSurfacesX
;
143
SurfacePtrVector
m_segmentationSurfacesY
;
144
};
145
146
inline
double
DigitizationModule::halfThickness
()
const
{
147
return
m_halfThickness
;
148
}
149
150
inline
int
DigitizationModule::readoutDirection
()
const
{
151
return
m_readoutDirection
;
152
}
153
154
inline
double
DigitizationModule::lorentzAngle
()
const
{
155
return
m_lorentzAngle
;
156
}
157
158
inline
double
DigitizationModule::energyThreshold
()
const
{
159
return
m_energyThreshold
;
160
}
161
162
inline
bool
DigitizationModule::analogue
()
const
{
163
return
m_analogue
;
164
}
165
166
inline
const
Segmentation
&
DigitizationModule::segmentation
()
const
{
167
return
(*(
m_segmentation
.get()));
168
}
169
170
inline
const
SurfacePtrVector
&
DigitizationModule::boundarySurfaces
()
const
{
171
return
m_boundarySurfaces
;
172
}
173
174
inline
const
SurfacePtrVector
&
DigitizationModule::segmentationSurfacesX
()
175
const
{
176
return
m_segmentationSurfacesX
;
177
}
178
179
inline
const
SurfacePtrVector
&
DigitizationModule::segmentationSurfacesY
()
180
const
{
181
return
m_segmentationSurfacesY
;
182
}
183
184
inline
const
DigitizationStep
DigitizationModule::digitizationStep
(
185
const
Vector3D
&
start
,
const
Vector3D
& end)
const
{
186
return
m_segmentation
->digitizationStep(start, end,
m_halfThickness
,
187
m_readoutDirection
,
m_lorentzAngle
);
188
}
189
}
// namespace Acts
acts
blob
sPHENIX
Plugins
Digitization
include
Acts
Plugins
Digitization
DigitizationModule.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:26
using
1.8.2 with
EIC GitHub integration