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
VertexingOptions.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file VertexingOptions.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2019-2023 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
// Workaround for building on clang+libstdc++
12
#include "
Acts/Utilities/detail/ReferenceWrapperAnyCompat.hpp
"
13
14
#include "
Acts/Geometry/GeometryContext.hpp
"
15
#include "
Acts/MagneticField/MagneticFieldContext.hpp
"
16
#include "
Acts/Vertexing/Vertex.hpp
"
17
18
namespace
Acts {
19
22
template
<
typename
input_track_t>
23
struct
VertexingOptions
{
25
VertexingOptions
() =
delete
;
26
33
VertexingOptions
(
const
GeometryContext
&
gctx
,
34
const
MagneticFieldContext
& mctx,
35
const
Vertex<input_track_t>
& constr,
36
const
bool
useConstr =
true
)
37
:
geoContext
(gctx),
38
magFieldContext
(mctx),
39
constraint
(constr),
40
useConstraintInFit
(useConstr) {
41
if
(
useConstraintInFit
&&
constraint
.covariance().determinant() == 0.) {
42
throw
std::invalid_argument(
43
"Vertex constraint covariance matrix must be invertible."
);
44
}
45
}
46
51
VertexingOptions
(
const
GeometryContext
&
gctx
,
52
const
MagneticFieldContext
& mctx)
53
:
geoContext
(gctx),
magFieldContext
(mctx) {
54
constraint
=
Vertex<input_track_t>
();
55
useConstraintInFit
=
false
;
56
}
57
59
std::reference_wrapper<const GeometryContext>
geoContext
;
61
std::reference_wrapper<const MagneticFieldContext>
magFieldContext
;
65
Vertex<input_track_t>
constraint
;
69
bool
useConstraintInFit
;
70
};
71
72
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Vertexing
VertexingOptions.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:35
using
1.8.2 with
sPHENIX GitHub integration