ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsEventCnv
src
TrackToTrackParticleCnvAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ACTSTRKFINDING_TRACKTOTRACKPARTICLECNVALG_H
6
#define ACTSTRKFINDING_TRACKTOTRACKPARTICLECNVALG_H 1
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
10
#include "Gaudi/Property.h"
11
12
#include "
StoreGate/ReadHandleKey.h
"
13
#include "
StoreGate/WriteHandleKey.h
"
14
#include "
StoreGate/WriteDecorHandleKey.h
"
15
#include "
StoreGate/WriteDecorHandle.h
"
16
17
#include "
xAODTracking/TrackParticleContainer.h
"
18
19
#include "
ActsEvent/TrackContainer.h
"
20
21
#include "
BeamSpotConditionsData/BeamSpotData.h
"
22
#include "
StoreGate/ReadCondHandleKey.h
"
23
24
#include "Acts/Surfaces/PerigeeSurface.hpp"
25
26
#include "
xAODTracking/VertexContainer.h
"
27
28
#include "
ActsToolInterfaces/ITrackToTrackParticleCnvTool.h
"
29
30
namespace
ActsTrk
{
31
34
class
TrackToTrackParticleCnvAlg
:
public
AthReentrantAlgorithm
{
35
36
public
:
37
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
38
39
virtual
StatusCode
initialize
()
override
;
40
virtual
StatusCode
execute
(
const
EventContext &ctx)
const override
;
41
42
private
:
43
static
std::shared_ptr<Acts::PerigeeSurface>
makePerigeeSurface
(
const
InDet::BeamSpotData
*beamspotptr);
44
static
std::shared_ptr<Acts::PerigeeSurface>
makePerigeeSurface
(
const
xAOD::Vertex
&);
45
46
ToolHandle<ActsTrk::ITrackToTrackParticleCnvTool>
m_cnvTool
47
{
this
,
"TrackToTrackParticleCnvTool"
,
""
};
48
49
SG::ReadHandleKeyArray<ActsTrk::TrackContainer>
m_tracksContainerKey
50
{
this
,
"ACTSTracksLocation"
, {},
"Track collection (ActsTrk variant)"
};
51
SG::ReadCondHandleKey<InDet::BeamSpotData>
m_beamSpotKey
52
{
this
,
"BeamSpotKey"
,
"BeamSpotData"
,
"SG key for beam spot or empty."
};
53
54
SG::ReadHandleKey<xAOD::VertexContainer>
m_vertexKey
55
{
this
,
"VertexContainerKey"
,
""
,
"Name of the Primary Vertex Container"
};
56
SG::WriteHandleKey<xAOD::TrackParticleContainer>
m_trackParticlesOutKey
{
this
,
"TrackParticlesOutKey"
,
57
"ChangeMe"
,
"Name of the produced track particle collection"
};
58
59
SG::WriteDecorHandleKey<xAOD::TrackParticleContainer>
m_decorator_actsTracks
{
this
,
"ActsTrackLink"
,
m_trackParticlesOutKey
,
"actsTrack"
};
60
Gaudi::Property<std::string>
m_perigeeExpression
{
this
,
"PerigeeExpression"
,
"DontRecalculate"
};
61
62
enum class
expressionStrategy
{
DontRecalculate
,
BeamLine
,
Vertex
};
63
expressionStrategy
m_expression_strategy
{
expressionStrategy::BeamLine
};
64
};
65
66
}
67
68
#endif
AthReentrantAlgorithm.h
BeamSpotData.h
TrackParticleContainer.h
Vertex
boost::graph_traits< boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS > >::vertex_descriptor Vertex
Definition
FPGATrackSimGNNRoadMakerTool.h:35
ITrackToTrackParticleCnvTool.h
ReadCondHandleKey.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
WriteDecorHandle.h
Handle class for adding a decoration to an object.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TrackContainer.h
VertexContainer.h
ActsTrk::TrackToTrackParticleCnvAlg
Conversion algorithm to translate multiple transient Acts track containers to an xAOD track particle ...
Definition
TrackToTrackParticleCnvAlg.h:34
ActsTrk::TrackToTrackParticleCnvAlg::makePerigeeSurface
static std::shared_ptr< Acts::PerigeeSurface > makePerigeeSurface(const InDet::BeamSpotData *beamspotptr)
Definition
TrackToTrackParticleCnvAlg.cxx:118
ActsTrk::TrackToTrackParticleCnvAlg::m_decorator_actsTracks
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_decorator_actsTracks
Definition
TrackToTrackParticleCnvAlg.h:59
ActsTrk::TrackToTrackParticleCnvAlg::m_expression_strategy
expressionStrategy m_expression_strategy
Definition
TrackToTrackParticleCnvAlg.h:63
ActsTrk::TrackToTrackParticleCnvAlg::m_trackParticlesOutKey
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_trackParticlesOutKey
Definition
TrackToTrackParticleCnvAlg.h:56
ActsTrk::TrackToTrackParticleCnvAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
TrackToTrackParticleCnvAlg.cxx:43
ActsTrk::TrackToTrackParticleCnvAlg::expressionStrategy
expressionStrategy
Definition
TrackToTrackParticleCnvAlg.h:62
ActsTrk::TrackToTrackParticleCnvAlg::expressionStrategy::DontRecalculate
@ DontRecalculate
Definition
TrackToTrackParticleCnvAlg.h:62
ActsTrk::TrackToTrackParticleCnvAlg::expressionStrategy::BeamLine
@ BeamLine
Definition
TrackToTrackParticleCnvAlg.h:62
ActsTrk::TrackToTrackParticleCnvAlg::m_vertexKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexKey
Definition
TrackToTrackParticleCnvAlg.h:55
ActsTrk::TrackToTrackParticleCnvAlg::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition
TrackToTrackParticleCnvAlg.h:52
ActsTrk::TrackToTrackParticleCnvAlg::m_cnvTool
ToolHandle< ActsTrk::ITrackToTrackParticleCnvTool > m_cnvTool
Definition
TrackToTrackParticleCnvAlg.h:47
ActsTrk::TrackToTrackParticleCnvAlg::m_tracksContainerKey
SG::ReadHandleKeyArray< ActsTrk::TrackContainer > m_tracksContainerKey
Definition
TrackToTrackParticleCnvAlg.h:50
ActsTrk::TrackToTrackParticleCnvAlg::initialize
virtual StatusCode initialize() override
Definition
TrackToTrackParticleCnvAlg.cxx:11
ActsTrk::TrackToTrackParticleCnvAlg::m_perigeeExpression
Gaudi::Property< std::string > m_perigeeExpression
Definition
TrackToTrackParticleCnvAlg.h:60
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
InDet::BeamSpotData
Definition
BeamSpotData.h:21
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
Generated on
for ATLAS Offline Software by
1.17.0