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
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
master
CI
Core
include
Acts
EventData
detail
coordinate_transformations.hpp
covariance_helper.hpp
fittable_type_generator.hpp
full_parameter_set.hpp
initialize_parameter_set.hpp
make_projection_matrix.hpp
residual_calculator.hpp
value_corrector.hpp
ChargePolicy.hpp
Measurement.hpp
MeasurementHelpers.hpp
MultiTrajectory.hpp
MultiTrajectory.ipp
NeutralParameters.hpp
ParameterConcept.hpp
ParameterSet.hpp
SingleBoundTrackParameters.hpp
SingleCurvilinearTrackParameters.hpp
SingleFreeParameters.hpp
SingleTrackParameters.hpp
SourceLinkConcept.hpp
TrackParameters.hpp
TrackState.hpp
TrackStateSorters.hpp
Fitter
Geometry
MagneticField
Material
Propagator
Seeding
Surfaces
TrackFinder
Utilities
Vertexing
Visualization
src
doc
Examples
Fatras
Plugins
Tests
thirdparty
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
make_projection_matrix.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file make_projection_matrix.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
// Acts include(s)
11
#include "
Acts/Utilities/Definitions.hpp
"
12
13
namespace
Acts {
15
namespace
detail {
29
template
<
unsigned
int
columns,
unsigned
int
... rows>
30
struct
make_projection_matrix;
31
33
// build projection matrix by iteratively stacking row vectors
34
template
<
unsigned
int
columns,
unsigned
int
i,
unsigned
int
...
N
>
35
struct
make_projection_matrix<columns, i,
N
...> {
36
static
ActsMatrixD
<
sizeof
...(N) + 1, columns>
init
() {
37
ActsRowVectorD<columns>
v
;
38
v.setZero();
39
v
(i) = 1;
40
41
ActsMatrixD
<
sizeof
...(N) + 1, columns>
m
;
42
m
.row(0) <<
v
;
43
m
.block(1, 0,
sizeof
...(
N
), columns)
44
<<
make_projection_matrix<columns, N...>::init
();
45
46
return
m
;
47
}
48
};
49
50
// projection matrix for a single local parameter is a simple row vector
51
template
<
unsigned
int
columns,
unsigned
int
i>
52
struct
make_projection_matrix<columns, i> {
53
static
ActsRowVectorD<columns>
init
() {
54
ActsRowVectorD<columns>
v
;
55
v.setZero();
56
v
(i) = 1;
57
return
v
;
58
}
59
};
61
}
// namespace detail
63
}
// namespace Acts
acts
blob
master
Core
include
Acts
EventData
detail
make_projection_matrix.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:20
using
1.8.2 with
ECCE GitHub integration