Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
Alignment
CI
cmake
Core
docs
Examples
Algorithms
Alignment
include
src
AlignmentAlgorithm.cpp
AlignmentAlgorithmFunction.cpp
AmbiguityResolution
Digitization
Fatras
Geant4
Geant4HepMC
Generators
GeneratorsPythia8
Geometry
HepMC
MaterialMapping
Printers
Propagation
TrackFinding
TrackFindingExaTrkX
TrackFindingML
TrackFitting
TruthTracking
Utilities
Vertexing
Detectors
Framework
Io
Python
Run
Scripts
Fatras
Plugins
Tests
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
AlignmentAlgorithmFunction.cpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file AlignmentAlgorithmFunction.cpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 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
#include "
Acts/Definitions/TrackParametrization.hpp
"
10
#include "
Acts/Geometry/GeometryIdentifier.hpp
"
11
#include "
Acts/Propagator/EigenStepper.hpp
"
12
#include "
Acts/Propagator/Navigator.hpp
"
13
#include "
Acts/Propagator/Propagator.hpp
"
14
#include "
Acts/Surfaces/Surface.hpp
"
15
#include "
Acts/TrackFitting/GainMatrixSmoother.hpp
"
16
#include "
Acts/TrackFitting/GainMatrixUpdater.hpp
"
17
#include "
ActsAlignment/Kernel/Alignment.hpp
"
18
#include "
ActsExamples/Alignment/AlignmentAlgorithm.hpp
"
19
#include "
ActsExamples/MagneticField/MagneticField.hpp
"
20
21
namespace
{
22
23
using
Updater =
Acts::GainMatrixUpdater
;
24
using
Smoother =
Acts::GainMatrixSmoother
;
25
using
Stepper
=
Acts::EigenStepper<>
;
26
using
Propagator
=
Acts::Propagator<Stepper, Acts::Navigator>
;
27
using
Fitter =
Acts::KalmanFitter<Propagator, Acts::VectorMultiTrajectory>
;
28
using
Alignment =
ActsAlignment::Alignment<Fitter>
;
29
30
struct
AlignmentFunctionImpl
31
:
public
ActsExamples::AlignmentAlgorithm::AlignmentFunction
{
32
Alignment align;
33
34
AlignmentFunctionImpl(Alignment&&
a
) : align(std::
move
(
a
)) {}
35
36
ActsExamples::AlignmentAlgorithm::AlignmentResult
operator()
(
37
const
std::vector<std::vector<ActsExamples::IndexSourceLink>>&
38
sourceLinks,
39
const
ActsExamples::TrackParametersContainer
& initialParameters,
40
const
ActsAlignment::AlignmentOptions
<
41
ActsExamples::AlignmentAlgorithm::TrackFitterOptions
>&
options
)
42
const override
{
43
return
align.align(sourceLinks, initialParameters,
options
);
44
};
45
};
46
}
// namespace
47
48
std::shared_ptr<ActsExamples::AlignmentAlgorithm::AlignmentFunction>
49
ActsExamples::AlignmentAlgorithm::makeAlignmentFunction
(
50
std::shared_ptr<const Acts::TrackingGeometry>
trackingGeometry
,
51
std::shared_ptr<const Acts::MagneticFieldProvider>
magneticField
) {
52
Stepper
stepper
(
std::move
(magneticField));
53
Acts::Navigator::Config
cfg
{
std::move
(trackingGeometry)};
54
cfg
.resolvePassive =
false
;
55
cfg
.resolveMaterial =
true
;
56
cfg
.resolveSensitive =
true
;
57
Acts::Navigator
navigator
(
cfg
);
58
Propagator
propagator(
std::move
(stepper),
std::move
(navigator));
59
Fitter trackFitter(
std::move
(propagator));
60
Alignment
alignment
(
std::move
(trackFitter));
61
62
// build the alignment functions. owns the alignment object.
63
return
std::make_shared<AlignmentFunctionImpl>(
std::move
(alignment));
64
}
acts
blob
sPHENIX
Examples
Algorithms
Alignment
src
AlignmentAlgorithmFunction.cpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:36
using
1.8.2 with
sPHENIX GitHub integration