ATLAS Offline Software
Loading...
Searching...
No Matches
RefitSiOnlyTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef INDETALIGNGENTOOLS_REFITSIONLYTOOL_H
6#define INDETALIGNGENTOOLS_REFITSIONLYTOOL_H
7
9// ================================================
10// RefitSiOnly
11// ================================================
12//
13// RefitSiOnlyTool.h
14// Header file for RefitSiOnlyTool
15//
16// Namespace SiRobustAlign
17//
18// AlgTool to create refitted tracks with only silicon hits present
19
20
22#include "GaudiKernel/ToolHandle.h"
25#include "TrkEventUtils/TrkParametersComparisonFunction.h"//typedef, cannot fwd declare
27
28namespace Trk {
29 class Track;
30}
31
32class AtlasDetectorID;
33
34namespace InDetAlignment {
35 class RefitSiOnlyTool : public extends<AthAlgTool, InDetAlignment::ICollectionProcessor> {
36 public:
37 using base_class::base_class;
38 virtual ~RefitSiOnlyTool(); //destructor
39
40 virtual StatusCode initialize();
41 virtual StatusCode finalize();
42
44 //virtual void configure();
45 virtual StatusCode configure();
50
52
53 private:
55 Trk::Track* refit(const Trk::Track* tr) const;
56
58 bool filterHit(const Identifier& id) const;
59
60
61 PublicToolHandle<Trk::ITrackFitter> m_ITrkFitter{this, "FitterTool", "Trk::KalmanFitter"};
62
64
65 Gaudi::Property<bool> m_doCosmic{this, "Cosmic", false};
66 Gaudi::Property<bool> m_OutlierRemoval{this, "OutlierRemoval", true};
67
68 Gaudi::Property<bool> m_stripSCTHits{this, "StripSCTHits", false};
69 Gaudi::Property<bool> m_stripPixelHits{this, "StripPixelHits", false};
70 Gaudi::Property<bool> m_stripTRTHits{this, "StripTRTHits", true};
71
72 Gaudi::Property<int> m_ParticleNumber{this, "ParticleNumber", 2};
75
76
77
78 };
79} //namespace
80
81#endif // INDETALIGNGENTOOLS_REFITSIONLYTOOL_H
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Derived DataVector<T>.
Definition DataVector.h:818
Gaudi::Property< bool > m_OutlierRemoval
flag for outlier removal
virtual const DataVector< Trk::Track > * processTrackCollection(const DataVector< Trk::Track > *trks)
main processing of track collection - refits a track using only filtered hits (e.g.
Gaudi::Property< bool > m_doCosmic
Flag for cosmics.
virtual StatusCode configure()
does necessary configuration to the tool
Trk::TrkParametersComparisonFunction * m_comPar
virtual StatusCode finalize()
Athena Tool methods.
Trk::Track * refit(const Trk::Track *tr) const
refits a track not using non-silicon hits
virtual StatusCode initialize()
Athena Tool methods.
Gaudi::Property< bool > m_stripSCTHits
flag to not consider SCT hits in the refit
PublicToolHandle< Trk::ITrackFitter > m_ITrkFitter
Gaudi::Property< bool > m_stripTRTHits
flag to not consider TRT hits in the refit
Gaudi::Property< bool > m_stripPixelHits
flag to not consider Pixel hits in the refit
void dumpTrackCol(DataVector< Trk::Track > *tracks)
const AtlasDetectorID * m_idHelper
Trk::ParticleHypothesis m_ParticleHypothesis
Gaudi::Property< int > m_ParticleNumber
bool filterHit(const Identifier &id) const
determines from flags, if this hit should be included in the fit or not
Ensure that the ATLAS eigen extensions are properly loaded.
ComparisonFunction< TrackParameters > TrkParametersComparisonFunction
ParticleHypothesis
Enumeration for Particle hypothesis respecting the interaction with material.