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
SurfaceSortingAlgorithm.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file SurfaceSortingAlgorithm.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2019-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
#pragma once
10
11
#include "
Acts/Utilities/Logger.hpp
"
12
#include "
ActsExamples/EventData/Index.hpp
"
13
#include "
ActsExamples/EventData/IndexSourceLink.hpp
"
14
#include "
ActsExamples/EventData/Measurement.hpp
"
15
#include "
ActsExamples/EventData/ProtoTrack.hpp
"
16
#include "
ActsExamples/EventData/SimHit.hpp
"
17
#include "
ActsExamples/EventData/Track.hpp
"
18
#include "
ActsExamples/Framework/DataHandle.hpp
"
19
#include "
ActsExamples/Framework/IAlgorithm.hpp
"
20
#include "
ActsExamples/Framework/ProcessCode.hpp
"
21
22
#include <map>
23
#include <memory>
24
#include <string>
25
#include <vector>
26
27
namespace
ActsExamples {
28
struct
AlgorithmContext;
29
30
using
TrackHitList
= std::map<const double, const Index>;
31
32
class
SurfaceSortingAlgorithm
final :
public
IAlgorithm
{
33
public
:
34
using
HitSimHitsMap
=
IndexMultimap<Index>
;
35
36
struct
Config
{
38
std::string
inputProtoTracks
;
40
std::string
inputSimHits
;
42
std::string
inputMeasurementSimHitsMap
;
44
std::string
outputProtoTracks
;
45
};
46
47
SurfaceSortingAlgorithm
(
Config
cfg
,
Acts::Logging::Level
level
);
48
49
ActsExamples::ProcessCode
execute
(
const
AlgorithmContext
& ctx)
const
final
;
50
52
const
Config
&
config
()
const
{
return
m_cfg
; }
53
54
private
:
55
Config
m_cfg
;
56
57
ReadDataHandle<ProtoTrackContainer>
m_inputProtoTracks
{
this
,
58
"InputProtoTracks"
};
59
ReadDataHandle<SimHitContainer>
m_inputSimHits
{
this
,
"InputSimHits"
};
60
ReadDataHandle<HitSimHitsMap>
m_inputMeasurementSimHitsMap
{
61
this
,
"InputMeasurementSimHitsMap"
};
62
WriteDataHandle<ProtoTrackContainer>
m_outputProtoTracks
{
this
,
63
"OutputProtoTracks"
};
64
};
65
66
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Algorithms
TrackFitting
include
ActsExamples
TrackFitting
SurfaceSortingAlgorithm.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:37
using
1.8.2 with
sPHENIX GitHub integration