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
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 <memory>
11
#include "
Acts/Plugins/Digitization/DigitizationCell.hpp
"
12
#include "
Acts/Plugins/Digitization/Segmentation.hpp
"
13
#include "
Acts/Utilities/Definitions.hpp
"
14
15
namespace
Acts {
16
17
class
Surface
;
18
using
SurfacePtr
= std::shared_ptr<const Surface>;
19
using
SurfacePtrVector
= std::vector<SurfacePtr>;
20
46
class
DigitizationModule
{
47
public
:
55
DigitizationModule
(std::shared_ptr<const Segmentation> moduleSegmentation,
56
double
halfThickness
,
int
readoutDirection
,
57
double
lorentzAngle
,
double
energyThreshold
= 0.,
58
bool
analogue
=
false
);
59
61
virtual
~DigitizationModule
() =
default
;
62
71
const
SurfacePtrVector
segmentationSurfaces
(
72
const
DigitizationCell
& entryCids,
73
const
DigitizationCell
& exitCids)
const
;
74
76
const
DigitizationCell
cell
(
const
Vector2D
&
position
)
const
;
77
79
double
halfThickness
()
const
;
80
82
int
readoutDirection
()
const
;
83
85
double
lorentzAngle
()
const
;
86
88
double
energyThreshold
()
const
;
89
91
bool
analogue
()
const
;
92
94
const
Segmentation
&
segmentation
()
const
;
95
102
const
SurfacePtrVector
stepSurfaces
(
const
Vector3D
&
start
,
103
const
Vector3D
& end)
const
;
104
110
const
DigitizationStep
digitizationStep
(
const
Vector3D
& start,
111
const
Vector3D
& end)
const
;
112
114
const
SurfacePtrVector
&
boundarySurfaces
()
const
;
115
117
const
SurfacePtrVector
&
segmentationSurfacesX
()
const
;
118
120
const
SurfacePtrVector
&
segmentationSurfacesY
()
const
;
121
122
private
:
124
double
m_halfThickness
;
126
int
m_readoutDirection
;
128
double
m_lorentzAngle
;
130
double
m_tanLorentzAngle
;
132
double
m_energyThreshold
;
134
bool
m_analogue
;
136
std::shared_ptr<const Segmentation>
m_segmentation
;
138
SurfacePtrVector
m_boundarySurfaces
;
140
SurfacePtrVector
m_segmentationSurfacesX
;
142
SurfacePtrVector
m_segmentationSurfacesY
;
143
};
144
145
inline
double
DigitizationModule::halfThickness
()
const
{
146
return
m_halfThickness
;
147
}
148
149
inline
int
DigitizationModule::readoutDirection
()
const
{
150
return
m_readoutDirection
;
151
}
152
153
inline
double
DigitizationModule::lorentzAngle
()
const
{
154
return
m_lorentzAngle
;
155
}
156
157
inline
double
DigitizationModule::energyThreshold
()
const
{
158
return
m_energyThreshold
;
159
}
160
161
inline
bool
DigitizationModule::analogue
()
const
{
162
return
m_analogue
;
163
}
164
165
inline
const
Segmentation
&
DigitizationModule::segmentation
()
const
{
166
return
(*(
m_segmentation
.get()));
167
}
168
169
inline
const
SurfacePtrVector
&
DigitizationModule::boundarySurfaces
()
const
{
170
return
m_boundarySurfaces
;
171
}
172
173
inline
const
SurfacePtrVector
&
DigitizationModule::segmentationSurfacesX
()
174
const
{
175
return
m_segmentationSurfacesX
;
176
}
177
178
inline
const
SurfacePtrVector
&
DigitizationModule::segmentationSurfacesY
()
179
const
{
180
return
m_segmentationSurfacesY
;
181
}
182
183
inline
const
DigitizationStep
DigitizationModule::digitizationStep
(
184
const
Vector3D
&
start
,
const
Vector3D
& end)
const
{
185
return
m_segmentation
->digitizationStep(start, end,
m_halfThickness
,
186
m_readoutDirection
,
m_lorentzAngle
);
187
}
188
}
// namespace Acts
acts
blob
master
Plugins
Digitization
include
Acts
Plugins
Digitization
DigitizationModule.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:25
using
1.8.2 with
ECCE GitHub integration