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
PlanarModuleCluster.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PlanarModuleCluster.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/Digitization/DigitizationCell.hpp
"
12
#include "
Acts/Digitization/DigitizationModule.hpp
"
13
#include "
Acts/Digitization/DigitizationSourceLink.hpp
"
14
#include "
Acts/EventData/Measurement.hpp
"
15
16
#include <array>
17
#include <cassert>
18
19
namespace
Acts {
20
21
class
PlanarModuleCluster
:
public
Measurement
<BoundIndices, 3> {
22
using
Base
=
Measurement<BoundIndices, 3>
;
23
24
static
constexpr std::array<BoundIndices, 3>
kIndices
= {
25
eBoundLoc0
,
eBoundLoc1
,
eBoundTime
};
26
27
public
:
38
PlanarModuleCluster
(std::shared_ptr<const Surface>
surface
,
39
SourceLink
sourceLink
,
const
Base::CovarianceMatrix
&
cov
,
40
double
loc0
,
double
loc1,
double
t
,
41
std::vector<DigitizationCell> dCells,
42
const
DigitizationModule
* dModule =
nullptr
)
43
:
Base
(std::
move
(sourceLink),
kIndices
,
44
Base
::
ParametersVector
(loc0, loc1, t), cov),
45
m_surface
(std::
move
(surface)),
46
m_digitizationCells
(std::
move
(dCells)),
47
m_digitizationModule
(dModule) {
48
assert
(
m_surface
);
49
}
50
52
const
Surface
&
referenceObject
()
const
{
return
*
m_surface
; }
53
57
const
std::vector<DigitizationCell>&
digitizationCells
()
const
;
58
62
const
DigitizationModule
*
digitizationModule
()
const
;
63
64
private
:
65
std::shared_ptr<const Surface>
m_surface
;
66
std::vector<DigitizationCell>
m_digitizationCells
;
67
const
DigitizationModule
*
m_digitizationModule
;
68
};
69
70
inline
const
std::vector<DigitizationCell>&
71
PlanarModuleCluster::digitizationCells
()
const
{
72
return
m_digitizationCells
;
73
}
74
75
inline
const
DigitizationModule
*
PlanarModuleCluster::digitizationModule
()
76
const
{
77
return
m_digitizationModule
;
78
}
79
80
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Digitization
PlanarModuleCluster.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:32
using
1.8.2 with
sPHENIX GitHub integration