ATLAS Offline Software
ProtoTrackCreationAndFitAlg.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 #include <Gaudi/Property.h>
6 #ifndef ACTSTRACKRECONSTRUCTION_PROTOTRACKCREATIONANDFITALG_H
7 #define ACTSTRACKRECONSTRUCTION_PROTOTRACKCREATIONANDFITALG_H 1
8 
12 
22 
23 namespace ActsTrk{
25  public:
26 
27  using ::AthReentrantAlgorithm::AthReentrantAlgorithm;
28  virtual ~ProtoTrackCreationAndFitAlg() = default;
29 
31 
32  //IS EXECUTED:
33  virtual StatusCode initialize() override final; //once, before any input is loaded
34  virtual StatusCode execute(const EventContext & ctx) const override final;
35 
36  private:
37 
38  // the pixel clusters to read as input
39  SG::ReadHandleKey<xAOD::PixelClusterContainer> m_PixelClusters{this, "PixelClusterContainer","","the pix clusters"};
40  // the strip clusters to read as input
41  SG::ReadHandleKey<xAOD::StripClusterContainer> m_StripClusters{this, "StripClusterContainer","","the strip clusters"};
42  // the user-provided pattern recognition tool to test
43  ToolHandle<ActsTrk::IProtoTrackCreatorTool> m_patternBuilder{this, "PatternBuilder", "", "the pattern builder to use"};
44  // the track fitter to use for the refit
45  ToolHandle<ActsTrk::IFitterTool> m_actsFitter{this, "ActsFitter", "", "Choice of Acts Fitter (Kalman by default)"};
46  // tracking geometry - used to translate ATLAS to ACTS geometry
47  PublicToolHandle<ActsTrk::ITrackingGeometryTool> m_trackingGeometryTool{this, "TrackingGeometryTool", ""};
48  // ACTS extrapolation tool - provides the magnetic field
49  ToolHandle<IActsExtrapolationTool> m_extrapolationTool{this, "ExtrapolationTool", ""};
50  // output location to write to
51  SG::WriteHandleKey<ActsTrk::TrackContainer> m_trackContainerKey{this, "ACTSTracksLocation", "", "Output track collection (ActsTrk variant)"};
52 
53  // output location for proto tracks (can be empty)
54  SG::WriteHandleKey<ActsTrk::ProtoTrackCollection> m_protoTrackCollectionKey{this, "ProtoTracksLocation", "", "Output proto tracks as well"};
55  Gaudi::Property<bool> m_copyParametersFromFit{this, "copyParametersFromFit", true, "If enabled proto tracks will have the same parameters as fitted tracks"};
56  // acts helper for the output
58 
59 
60 
61  };
62 
63 }
64 
65 #endif //> !ACTSTRACKRECONSTRUCTION_PROTOTRACKCREATIONANDFITALG_H
ActsTrk::ProtoTrackCreationAndFitAlg::m_actsFitter
ToolHandle< ActsTrk::IFitterTool > m_actsFitter
Definition: ProtoTrackCreationAndFitAlg.h:45
TrackParameters.h
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
ActsTrk::ProtoTrackCreationAndFitAlg::m_patternBuilder
ToolHandle< ActsTrk::IProtoTrackCreatorTool > m_patternBuilder
Definition: ProtoTrackCreationAndFitAlg.h:43
ActsTrk::ProtoTrackCreationAndFitAlg::m_extrapolationTool
ToolHandle< IActsExtrapolationTool > m_extrapolationTool
Definition: ProtoTrackCreationAndFitAlg.h:49
ActsTrk::ProtoTrackCreationAndFitAlg::m_trackingGeometryTool
PublicToolHandle< ActsTrk::ITrackingGeometryTool > m_trackingGeometryTool
Definition: ProtoTrackCreationAndFitAlg.h:47
ActsTrk::ProtoTrackCreationAndFitAlg::m_trackContainerKey
SG::WriteHandleKey< ActsTrk::TrackContainer > m_trackContainerKey
Definition: ProtoTrackCreationAndFitAlg.h:51
ActsTrk::ProtoTrackCreationAndFitAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: ProtoTrackCreationAndFitAlg.cxx:28
ActsTrk::ProtoTrackCreationAndFitAlg::m_PixelClusters
SG::ReadHandleKey< xAOD::PixelClusterContainer > m_PixelClusters
Definition: ProtoTrackCreationAndFitAlg.h:39
IProtoTrackCreatorTool.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG::ReadHandleKey< xAOD::StripClusterContainer >
ActsTrk::ProtoTrackCreationAndFitAlg::m_copyParametersFromFit
Gaudi::Property< bool > m_copyParametersFromFit
Definition: ProtoTrackCreationAndFitAlg.h:55
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
ActsTrk::ProtoTrackCreationAndFitAlg::~ProtoTrackCreationAndFitAlg
virtual ~ProtoTrackCreationAndFitAlg()=default
ActsTrk::ProtoTrackCreationAndFitAlg
Definition: ProtoTrackCreationAndFitAlg.h:24
ActsTrk::ProtoTrackCreationAndFitAlg::m_tracksBackendHandlesHelper
ActsTrk::MutableTrackContainerHandlesHelper m_tracksBackendHandlesHelper
Definition: ProtoTrackCreationAndFitAlg.h:57
ActsTrk::ProtoTrackCreationAndFitAlg::initialize
virtual StatusCode initialize() override final
uncomment and implement methods as required
Definition: ProtoTrackCreationAndFitAlg.cxx:14
SG::WriteHandleKey< ActsTrk::TrackContainer >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PixelClusterContainer.h
ActsTrk::MutableTrackContainerHandlesHelper
Definition: TrackContainerHandlesHelper.h:33
CondHandleKeyArray.h
ProtoTrackCollection.h
AthReentrantAlgorithm.h
xAOD::PixelClusterContainer
PixelClusterContainer_v1 PixelClusterContainer
Define the version of the pixel cluster container.
Definition: Event/xAOD/xAODInDetMeasurement/xAODInDetMeasurement/PixelClusterContainer.h:14
ActsTrk::ProtoTrackCreationAndFitAlg::m_StripClusters
SG::ReadHandleKey< xAOD::StripClusterContainer > m_StripClusters
Definition: ProtoTrackCreationAndFitAlg.h:41
IFitterTool.h
ActsTrk::ProtoTrackCreationAndFitAlg::m_protoTrackCollectionKey
SG::WriteHandleKey< ActsTrk::ProtoTrackCollection > m_protoTrackCollectionKey
Definition: ProtoTrackCreationAndFitAlg.h:54
SiDetectorElementCollection.h
StripClusterContainer.h
ITrackingGeometryTool.h
private
#define private
Definition: xAODTruthCnvAlg.h:20
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MSTrackingVolumeBuilder.cxx:24
TrackContainerHandlesHelper.h
IActsExtrapolationTool.h