ATLAS Offline Software
ReFitTrack.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // ReFit.h, (c) ATLAS Detector Softwareop
8 
9 #ifndef TRKREFITALG_REFITTRACK_H
10 #define TRKREFITALG_REFITTRACK_H
11 
12 // Base class
14 #include "GaudiKernel/ToolHandle.h"
15 #include "GaudiKernel/ServiceHandle.h"
16 #include "GaudiKernel/MsgStream.h"
17 #include "TrkTrack/Track.h"
31 class VxContainer;
32 
33 namespace Trk{
34 
45 class ReFitTrack : public AthAlgorithm {
46 
47 public:
48 
49  typedef Trk::Track Track;
50 
52  ReFitTrack(const std::string &name,ISvcLocator *pSvcLocator);
53 
54  virtual StatusCode initialize();
55  virtual StatusCode execute();
56  virtual StatusCode finalize();
57 
58 private:
62 
64 
65 
66  // --- job options
69 
70  // --- fitter steering
74 
75 
76  // -- algorithm members
78  ToolHandle<Trk::ITrackFitter> m_ITrackFitter;
79  ToolHandle<Trk::ITrackFitter> m_ITrackFitterTRT;
80  ToolHandle<Trk::IExtendedTrackSummaryTool> m_trkSummaryTool;
81  ToolHandle<Trk::IPRDtoTrackMapTool> m_assoTool
82  {this, "AssociationTool", "" };
83 
85  ToolHandle<Trk::ITrackSelectorTool> m_trkSelectorTool;
86 
87  unsigned int m_constrainFitMode;
89  SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
90  // For P->T conversion ID tracks
91  SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_pixelDetEleCollKey{this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"};
92  SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_SCTDetEleCollKey{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
93  ToolHandle<Trk::IExtrapolator> m_extrapolator;
94 
96 
97 
98 };
99 
100 }
101 
102 #endif //TRKREFITALG_REFITTRACK_H
103 
Trk::ReFitTrack::m_runOutlier
Trk::RunOutlierRemoval m_runOutlier
switch whether to run outlier logics or not
Definition: ReFitTrack.h:71
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
Trk::ReFitTrack::m_extrapolator
ToolHandle< Trk::IExtrapolator > m_extrapolator
the extrapolator for the consistent measurement frame
Definition: ReFitTrack.h:93
Trk::ReFitTrack::ReFitTrack
ReFitTrack()
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Trk::ReFitTrack
Algorithm using an instance of a ITrackFitter to refit the tracks of a given track collection.
Definition: ReFitTrack.h:45
Trk::ReFitTrack::m_assoTool
ToolHandle< Trk::IPRDtoTrackMapTool > m_assoTool
Tool to create and populate PRD to track association maps e.g.
Definition: ReFitTrack.h:82
IExtrapolator.h
FitterTypes.h
Trk::ReFitTrack::setupConstrainedFit
const Trk::RecVertex * setupConstrainedFit()
Definition: ReFitTrack.cxx:315
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
Trk::ReFitTrack::m_vxContainerName
SG::ReadHandleKey< VxContainer > m_vxContainerName
Definition: ReFitTrack.h:88
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition: RecVertex.h:44
Trk::RunOutlierRemoval
bool RunOutlierRemoval
switch to toggle quality processing after fit
Definition: FitterTypes.h:22
Trk::ReFitTrack::m_ParticleHypothesis
Trk::ParticleHypothesis m_ParticleHypothesis
nomen est omen
Definition: ReFitTrack.h:73
Track.h
AthAlgorithm.h
Trk::ParticleHypothesis
ParticleHypothesis
Definition: ParticleHypothesis.h:25
Trk::ReFitTrack::finalize
virtual StatusCode finalize()
Definition: ReFitTrack.cxx:309
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::ReFitTrack::m_ITrackFitterTRT
ToolHandle< Trk::ITrackFitter > m_ITrackFitterTRT
the TRT refit tool
Definition: ReFitTrack.h:79
Trk::ReFitTrack::Track
Trk::Track Track
Definition: ReFitTrack.h:49
Trk::ReFitTrack::initialize
virtual StatusCode initialize()
Definition: ReFitTrack.cxx:74
TrackCollection.h
Trk::ReFitTrack::m_ITrackFitter
ToolHandle< Trk::ITrackFitter > m_ITrackFitter
the refit tool
Definition: ReFitTrack.h:78
Trk::ReFitTrack::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
Definition: ReFitTrack.h:92
VxContainer
Definition: VxContainer.h:28
DataVector< Trk::Track >
ParticleHypothesis.h
Trk::ReFitTrack::operator=
ReFitTrack & operator=(const ReFitTrack &)
Trk::ReFitTrack::m_matEffects
int m_matEffects
type of material interaction in extrapolation
Definition: ReFitTrack.h:72
AthAlgorithm
Definition: AthAlgorithm.h:47
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
Trk::ReFitTrack::m_newTrackName
SG::WriteHandleKey< TrackCollection > m_newTrackName
Definition: ReFitTrack.h:68
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::ReFitTrack::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition: ReFitTrack.h:89
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
Trk::ReFitTrack::m_trkSummaryTool
ToolHandle< Trk::IExtendedTrackSummaryTool > m_trkSummaryTool
the track summary tool
Definition: ReFitTrack.h:80
IPRDtoTrackMapTool.h
Trk::ReFitTrack::m_tracks
const TrackCollection * m_tracks
job option for main track collection
Definition: ReFitTrack.h:77
Trk::ReFitTrack::ReFitTrack
ReFitTrack(const ReFitTrack &)
Trk::ReFitTrack::m_trkSelectorTool
ToolHandle< Trk::ITrackSelectorTool > m_trkSelectorTool
the track selector tool
Definition: ReFitTrack.h:85
SiDetectorElementCollection.h
Trk::ReFitTrack::m_constrainFitMode
unsigned int m_constrainFitMode
0 - not constrained, 1 - vertex, 2 - beamspot
Definition: ReFitTrack.h:87
Trk::ReFitTrack::m_trackName
SG::ReadHandleKey< TrackCollection > m_trackName
Definition: ReFitTrack.h:67
SG::ReadCondHandleKey< InDet::BeamSpotData >
IExtendedTrackSummaryTool.h
Trk::ReFitTrack::execute
virtual StatusCode execute()
Definition: ReFitTrack.cxx:136
Trk::ReFitTrack::m_usetrackhypo
bool m_usetrackhypo
Fit using particle hypothesis from input track
Definition: ReFitTrack.h:95
BeamSpotData.h
Trk::ReFitTrack::m_pixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Definition: ReFitTrack.h:91
ITrackSelectorTool.h
ITrackFitter.h
TrkParametersComparisonFunction.h