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
PHActsGSF.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHActsGSF.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef PHACTSGSF_H
4
#define PHACTSGSF_H
5
6
#include <
fun4all/SubsysReco.h
>
7
8
#include <
tpc/TpcClusterZCrossingCorrection.h
>
9
#include <
tpc/TpcDistortionCorrection.h
>
10
#include <
tpc/TpcDistortionCorrectionContainer.h
>
11
12
#include <
trackbase/ActsSourceLink.h
>
13
#include <
trackbase/Calibrator.h
>
14
#include <
trackbase/ClusterErrorPara.h
>
15
16
#include <
Acts/Definitions/Algebra.hpp
>
17
#include <
Acts/Utilities/BinnedArray.hpp
>
18
#include <
Acts/Utilities/Logger.hpp
>
19
20
#include <
Acts/EventData/VectorMultiTrajectory.hpp
>
21
#include <
Acts/Geometry/TrackingGeometry.hpp
>
22
#include <
Acts/MagneticField/MagneticFieldContext.hpp
>
23
#include <
Acts/Utilities/CalibrationContext.hpp
>
24
25
#include <
ActsExamples/EventData/Trajectories.hpp
>
26
27
#include <
trackbase/ActsTrackFittingAlgorithm.h
>
28
29
#include <string>
30
31
class
PHCompositeNode
;
32
class
ActsGeometry
;
33
class
TrkrClusterContainer
;
34
class
SvtxTrackMap
;
35
class
SvtxVertexMap
;
36
class
SvtxTrack
;
37
38
using
SourceLink
=
ActsSourceLink
;
39
using
FitResult
=
ActsTrackFittingAlgorithm::TrackFitterResult
;
40
using
Trajectory
=
ActsExamples::Trajectories
;
41
using
Measurement
=
Acts::Measurement<Acts::BoundIndices, 2>
;
42
using
SurfacePtrVec
= std::vector<const Acts::Surface*>;
43
using
SourceLinkVec
= std::vector<Acts::SourceLink>;
44
45
class
PHActsGSF
:
public
SubsysReco
46
{
47
public
:
48
PHActsGSF
(
const
std::string
&
name
=
"PHActsGSF"
);
49
50
~PHActsGSF
()
override
;
51
52
int
InitRun
(
PHCompositeNode
* topNode)
override
;
53
int
process_event
(
PHCompositeNode
* topNode)
override
;
54
int
End
(
PHCompositeNode
* topNode)
override
;
55
56
void
set_pp_mode
(
bool
mode
) {
m_pp_mode
=
mode
;}
57
58
private
:
59
int
getNodes
(
PHCompositeNode
* topNode);
60
std::shared_ptr<Acts::PerigeeSurface>
makePerigee
(
SvtxTrack
* track)
const
;
61
ActsTrackFittingAlgorithm::TrackParameters
makeSeed
(
62
SvtxTrack
* track,
63
std::shared_ptr<Acts::PerigeeSurface> psurf)
const
;
64
// SourceLinkVec getSourceLinks(TrackSeed* track,
65
// ActsTrackFittingAlgorithm::MeasurementContainer& measurements,
66
// const short int& crossing);
67
ActsTrackFittingAlgorithm::TrackFitterResult
fitTrack
(
68
const
std::vector<Acts::SourceLink>& sourceLinks,
69
const
ActsTrackFittingAlgorithm::TrackParameters
&
seed
,
70
const
ActsTrackFittingAlgorithm::GeneralFitterOptions
&
options
,
71
const
CalibratorAdapter
& calibrator,
72
ActsTrackFittingAlgorithm::TrackContainer
&
tracks
);
73
74
void
updateTrack
(
FitResult
& result,
SvtxTrack
* track,
75
ActsTrackFittingAlgorithm::TrackContainer
&
tracks
);
76
void
updateSvtxTrack
(std::vector<Acts::MultiTrajectoryTraits::IndexType>& tips,
77
Trajectory::IndexedParameters
& paramsMap,
78
ActsTrackFittingAlgorithm::TrackContainer
&
tracks
,
79
SvtxTrack
* track);
80
ActsGeometry
*
m_tGeometry
=
nullptr
;
81
TrkrClusterContainer
*
m_clusterContainer
=
nullptr
;
82
SvtxTrackMap
*
m_trackMap
=
nullptr
;
83
SvtxVertexMap
*
m_vertexMap
=
nullptr
;
84
TpcClusterZCrossingCorrection
m_clusterCrossingCorrection
;
85
86
alignmentTransformationContainer
*
m_alignmentTransformationMap
=
nullptr
;
// added for testing purposes
87
alignmentTransformationContainer
*
m_alignmentTransformationMapTransient
=
nullptr
;
88
std::set< Acts::GeometryIdentifier>
m_transient_id_set
;
89
Acts::GeometryContext
m_transient_geocontext
;
90
91
TpcDistortionCorrectionContainer
*
m_dccStatic
=
nullptr
;
92
TpcDistortionCorrectionContainer
*
m_dccAverage
=
nullptr
;
93
TpcDistortionCorrectionContainer
*
m_dccFluctuation
{
nullptr
};
94
TpcDistortionCorrection
m_distortionCorrection
;
95
96
std::string
m_trackMapName
=
"SvtxTrackMap"
;
97
unsigned
int
m_pHypothesis
= 11;
98
99
bool
m_pp_mode
=
false
;
100
101
ClusterErrorPara
_ClusErrPara
;
102
103
ActsTrackFittingAlgorithm::Config
m_fitCfg
;
104
};
105
106
#endif // PHACTSGSF_H
coresoftware
blob
master
offline
packages
trackreco
PHActsGSF.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:10
using
1.8.2 with
sPHENIX GitHub integration