ATLAS Offline Software
Loading...
Searching...
No Matches
Tracking
Acts
ActsTrackReconstruction
src
ProtoTrackCreationAndFitAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef ACTSTRACKRECONSTRUCTION_PROTOTRACKCREATIONANDFITALG_H
5
#define ACTSTRACKRECONSTRUCTION_PROTOTRACKCREATIONANDFITALG_H 1
6
7
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
8
#include "
TrkParameters/TrackParameters.h
"
9
10
#include "
ActsToolInterfaces/IFitterTool.h
"
11
#include "
ActsToolInterfaces/IProtoTrackCreatorTool.h
"
12
#include "
xAODInDetMeasurement/StripClusterContainer.h
"
13
#include "
xAODInDetMeasurement/PixelClusterContainer.h
"
14
#include "
InDetReadoutGeometry/SiDetectorElementCollection.h
"
15
#include "
StoreGate/CondHandleKeyArray.h
"
16
#include "
ActsEvent/TrackContainerHandlesHelper.h
"
17
#include "
ActsEvent/ProtoTrackCollection.h
"
18
#include "
ActsEvent/ContextUtility.h
"
19
20
namespace
ActsTrk
{
21
class
ProtoTrackCreationAndFitAlg
:
public
::AthReentrantAlgorithm
{
22
public
:
23
24
using
::AthReentrantAlgorithm::AthReentrantAlgorithm;
25
virtual
~ProtoTrackCreationAndFitAlg
() =
default
;
26
28
29
//IS EXECUTED:
30
virtual
StatusCode
initialize
() override final;
//once, before any input is loaded
31
virtual StatusCode
execute
(
const
EventContext & ctx)
const
override final;
32
33
private
:
34
35
// the pixel clusters to read as input
36
SG
::ReadHandleKey<
xAOD
::PixelClusterContainer>
m_PixelClusters
{
this
,
"PixelClusterContainer"
,
""
,
"the pix clusters"
};
37
// the strip clusters to read as input
38
SG::ReadHandleKey<xAOD::StripClusterContainer>
m_StripClusters
{
this
,
"StripClusterContainer"
,
""
,
"the strip clusters"
};
39
// the user-provided pattern recognition tool to test
40
ToolHandle<IProtoTrackCreatorTool>
m_patternBuilder
{
this
,
"PatternBuilder"
,
""
,
"the pattern builder to use"
};
41
// the track fitter to use for the refit
42
ToolHandle<IFitterTool>
m_actsFitter
{
this
,
"ActsFitter"
,
""
,
"Choice of Acts Fitter (Kalman by default)"
};
43
45
ContextUtility
m_ctxProvider
{
this
};
46
// output location to write to
47
SG::WriteHandleKey<TrackContainer>
m_trackContainerKey
{
this
,
"ACTSTracksLocation"
,
""
,
"Output track collection (ActsTrk variant)"
};
48
49
// output location for proto tracks (can be empty)
50
SG::WriteHandleKey<ProtoTrackCollection>
m_protoTrackCollectionKey
{
this
,
"ProtoTracksLocation"
,
""
,
"Output proto tracks as well"
};
51
Gaudi::Property<bool>
m_copyParametersFromFit
{
this
,
"copyParametersFromFit"
,
true
,
"If enabled proto tracks will have the same parameters as fitted tracks"
};
52
// acts helper for the output
53
MutableTrackContainerHandlesHelper
m_tracksBackendHandlesHelper
{
this
};
54
55
56
57
};
58
59
}
60
61
#endif
//> !ACTSTRACKRECONSTRUCTION_PROTOTRACKCREATIONANDFITALG_H
AthReentrantAlgorithm.h
CondHandleKeyArray.h
ContextUtility.h
PixelClusterContainer.h
IFitterTool.h
IProtoTrackCreatorTool.h
ProtoTrackCollection.h
SiDetectorElementCollection.h
StripClusterContainer.h
TrackContainerHandlesHelper.h
TrackParameters.h
ActsTrk::ContextUtility
Utility class to handle the three contexts neeeded in an ACTS reconstruction job 1) GeometryContext -...
Definition
ContextUtility.h:27
ActsTrk::MutableTrackContainerHandlesHelper
Definition
TrackContainerHandlesHelper.h:33
ActsTrk::ProtoTrackCreationAndFitAlg
Definition
ProtoTrackCreationAndFitAlg.h:21
ActsTrk::ProtoTrackCreationAndFitAlg::m_patternBuilder
ToolHandle< IProtoTrackCreatorTool > m_patternBuilder
Definition
ProtoTrackCreationAndFitAlg.h:40
ActsTrk::ProtoTrackCreationAndFitAlg::m_StripClusters
SG::ReadHandleKey< xAOD::StripClusterContainer > m_StripClusters
Definition
ProtoTrackCreationAndFitAlg.h:38
ActsTrk::ProtoTrackCreationAndFitAlg::m_actsFitter
ToolHandle< IFitterTool > m_actsFitter
Definition
ProtoTrackCreationAndFitAlg.h:42
ActsTrk::ProtoTrackCreationAndFitAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition
ProtoTrackCreationAndFitAlg.cxx:25
ActsTrk::ProtoTrackCreationAndFitAlg::m_tracksBackendHandlesHelper
MutableTrackContainerHandlesHelper m_tracksBackendHandlesHelper
Definition
ProtoTrackCreationAndFitAlg.h:53
ActsTrk::ProtoTrackCreationAndFitAlg::m_copyParametersFromFit
Gaudi::Property< bool > m_copyParametersFromFit
Definition
ProtoTrackCreationAndFitAlg.h:51
ActsTrk::ProtoTrackCreationAndFitAlg::m_protoTrackCollectionKey
SG::WriteHandleKey< ProtoTrackCollection > m_protoTrackCollectionKey
Definition
ProtoTrackCreationAndFitAlg.h:50
ActsTrk::ProtoTrackCreationAndFitAlg::m_ctxProvider
ContextUtility m_ctxProvider
Utility to fetch the geometry, magnetic field and calibration context in the event.
Definition
ProtoTrackCreationAndFitAlg.h:45
ActsTrk::ProtoTrackCreationAndFitAlg::~ProtoTrackCreationAndFitAlg
virtual ~ProtoTrackCreationAndFitAlg()=default
ActsTrk::ProtoTrackCreationAndFitAlg::m_trackContainerKey
SG::WriteHandleKey< TrackContainer > m_trackContainerKey
Definition
ProtoTrackCreationAndFitAlg.h:47
ActsTrk::ProtoTrackCreationAndFitAlg::m_PixelClusters
SG::ReadHandleKey< xAOD::PixelClusterContainer > m_PixelClusters
Definition
ProtoTrackCreationAndFitAlg.h:36
ActsTrk::ProtoTrackCreationAndFitAlg::initialize
virtual StatusCode initialize() override final
uncomment and implement methods as required
Definition
ProtoTrackCreationAndFitAlg.cxx:13
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
const
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.16.1