ATLAS Offline Software
Loading...
Searching...
No Matches
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"
31class VxContainer;
32
33namespace Trk{
34
44
45class ReFitTrack : public AthAlgorithm {
46
47public:
48
50
52 ReFitTrack(const std::string &name,ISvcLocator *pSvcLocator);
53
54 virtual StatusCode initialize();
55 virtual StatusCode execute();
56 virtual StatusCode finalize();
57
58private:
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
84
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
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
DataVector< Trk::Track > TrackCollection
This typedef represents a collection of Trk::Track objects.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
ToolHandle< Trk::IExtendedTrackSummaryTool > m_trkSummaryTool
the track summary tool
Definition ReFitTrack.h:80
ReFitTrack & operator=(const ReFitTrack &)
const TrackCollection * m_tracks
job option for main track collection
Definition ReFitTrack.h:77
ToolHandle< Trk::ITrackSelectorTool > m_trkSelectorTool
the track selector tool
Definition ReFitTrack.h:85
Trk::RunOutlierRemoval m_runOutlier
switch whether to run outlier logics or not
Definition ReFitTrack.h:71
const Trk::RecVertex * setupConstrainedFit()
virtual StatusCode finalize()
ToolHandle< Trk::IPRDtoTrackMapTool > m_assoTool
Tool to create and populate PRD to track association maps e.g.
Definition ReFitTrack.h:82
ReFitTrack(const ReFitTrack &)
Trk::ParticleHypothesis m_ParticleHypothesis
nomen est omen
Definition ReFitTrack.h:73
SG::ReadHandleKey< TrackCollection > m_trackName
Definition ReFitTrack.h:67
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition ReFitTrack.h:89
virtual StatusCode initialize()
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
Definition ReFitTrack.h:92
SG::ReadHandleKey< VxContainer > m_vxContainerName
Definition ReFitTrack.h:88
ToolHandle< Trk::ITrackFitter > m_ITrackFitter
the refit tool
Definition ReFitTrack.h:78
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Definition ReFitTrack.h:91
ReFitTrack(const std::string &name, ISvcLocator *pSvcLocator)
standard Algorithm constructor
int m_matEffects
type of material interaction in extrapolation
Definition ReFitTrack.h:72
unsigned int m_constrainFitMode
0 - not constrained, 1 - vertex, 2 - beamspot
Definition ReFitTrack.h:87
virtual StatusCode execute()
SG::WriteHandleKey< TrackCollection > m_newTrackName
Definition ReFitTrack.h:68
bool m_usetrackhypo
Fit using particle hypothesis from input track.
Definition ReFitTrack.h:95
ToolHandle< Trk::IExtrapolator > m_extrapolator
the extrapolator for the consistent measurement frame
Definition ReFitTrack.h:93
ToolHandle< Trk::ITrackFitter > m_ITrackFitterTRT
the TRT refit tool
Definition ReFitTrack.h:79
Trk::RecVertex inherits from Trk::Vertex.
Definition RecVertex.h:44
Ensure that the ATLAS eigen extensions are properly loaded.
bool RunOutlierRemoval
switch to toggle quality processing after fit
Definition FitterTypes.h:22
ParticleHypothesis
Enumeration for Particle hypothesis respecting the interaction with material.