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
CorrectedTransformationFreeToBound.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CorrectedTransformationFreeToBound.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2021-2022 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/Definitions/Algebra.hpp
"
12
#include "
Acts/Definitions/Direction.hpp
"
13
#include "
Acts/Definitions/TrackParametrization.hpp
"
14
#include "
Acts/EventData/detail/TransformationFreeToBound.hpp
"
15
#include "
Acts/Geometry/GeometryContext.hpp
"
16
#include "
Acts/Surfaces/Surface.hpp
"
17
#include "
Acts/Utilities/Logger.hpp
"
18
19
#include <optional>
20
#include <tuple>
21
22
namespace
Acts {
23
26
struct
FreeToBoundCorrection
{
28
bool
apply
=
false
;
29
31
ActsScalar
alpha
= 0.1;
32
ActsScalar
beta
= 2;
33
35
ActsScalar
cosIncidentAngleMinCutoff
= 1
e
-5;
36
ActsScalar
cosIncidentAngleMaxCutoff
= 0.99500417;
37
39
FreeToBoundCorrection
() =
default
;
40
46
FreeToBoundCorrection
(
bool
apply_,
ActsScalar
alpha_,
ActsScalar
beta_);
47
51
explicit
FreeToBoundCorrection
(
bool
apply_);
52
54
operator
bool()
const
;
55
};
56
57
namespace
detail {
58
61
struct
CorrectedFreeToBoundTransformer
{
69
CorrectedFreeToBoundTransformer
(
ActsScalar
alpha
,
ActsScalar
beta,
70
ActsScalar
cosIncidentAngleMinCutoff,
71
ActsScalar
cosIncidentAngleMaxCutoff);
72
76
CorrectedFreeToBoundTransformer
(
77
const
FreeToBoundCorrection
& freeToBoundCorrection);
78
80
CorrectedFreeToBoundTransformer
() =
default
;
81
CorrectedFreeToBoundTransformer
(
const
CorrectedFreeToBoundTransformer
&) =
82
default
;
83
CorrectedFreeToBoundTransformer
(
CorrectedFreeToBoundTransformer
&&) =
default
;
84
CorrectedFreeToBoundTransformer
&
operator=
(
85
const
CorrectedFreeToBoundTransformer
&) =
default
;
86
CorrectedFreeToBoundTransformer
&
operator=
(
87
CorrectedFreeToBoundTransformer
&&) =
default
;
88
97
std::optional<std::tuple<BoundVector, BoundSquareMatrix>>
operator()
(
98
const
FreeVector
& freeParams,
const
FreeSquareMatrix
& freeCovariance,
99
const
Surface
&
surface
,
const
GeometryContext
&
geoContext
,
100
Direction
navDir
=
Direction::Forward
,
101
const
Logger
&
logger
=
getDummyLogger
())
const
;
102
103
private
:
105
ActsScalar
m_alpha
= 0.1;
106
ActsScalar
m_beta
= 2;
107
110
ActsScalar
m_cosIncidentAngleMinCutoff
= 1
e
-5;
111
114
ActsScalar
m_cosIncidentAngleMaxCutoff
= 0.99500417;
115
};
116
117
}
// namespace detail
118
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
EventData
detail
CorrectedTransformationFreeToBound.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:32
using
1.8.2 with
sPHENIX GitHub integration