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
LinearizerConcept.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file LinearizerConcept.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2019 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/Geometry/GeometryContext.hpp
"
12
#include "
Acts/MagneticField/MagneticFieldContext.hpp
"
13
#include "
Acts/Utilities/Definitions.hpp
"
14
#include "
Acts/Utilities/Result.hpp
"
15
#include "
Acts/Utilities/TypeTraits.hpp
"
16
#include "
Acts/Vertexing/LinearizedTrack.hpp
"
17
18
namespace
Acts {
19
20
namespace
concept {
21
namespace
Linearizer
{
22
23
template
<
typename
T>
24
using
propagator_t
=
typename
T::Propagator_t;
25
26
METHOD_TRAIT
(linTrack_t, linearizeTrack);
27
28
// clang-format off
29
template
<
typename
S>
30
struct
LinearizerConcept
{
31
32
constexpr
static
bool
linTrack_exists
= has_method<const S, Result<LinearizedTrack>,
33
linTrack_t,
const
BoundParameters
&,
34
const
SpacePointVector
&,
35
const
Acts::GeometryContext
&,
36
const
Acts::MagneticFieldContext
&>;
37
38
static_assert(
linTrack_exists
,
"linearizeTrack method not found"
);
39
40
constexpr
static
bool
propagator_exists
= exists<propagator_t, S>;
41
static_assert(
propagator_exists
,
"Propagator type not found"
);
42
43
constexpr
static
bool
value
=
require
<
linTrack_exists
,
44
propagator_exists
>;
45
};
46
// clang-format on
47
}
// namespace Linearizer
48
}
// namespace concept
49
50
template
<
typename
fitter>
51
constexpr
bool
LinearizerConcept
=
52
Acts::concept ::Linearizer::LinearizerConcept<fitter>::value
;
53
54
}
// namespace Acts
acts
blob
master
Core
include
Acts
Vertexing
LinearizerConcept.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:22
using
1.8.2 with
ECCE GitHub integration