ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetAlignTools
InDetAlignGenTools
src
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
21
#include "
AthenaBaseComps/AthAlgTool.h
"
22
#include "GaudiKernel/ToolHandle.h"
23
#include "
InDetAlignToolInterfaces/ICollectionProcessor.h
"
24
#include "
TrkFitterInterfaces/ITrackFitter.h
"
25
#include "
TrkEventUtils/TrkParametersComparisonFunction.h
"
//typedef, cannot fwd declare
26
#include "
TrkEventPrimitives/ParticleHypothesis.h
"
27
28
namespace
Trk
{
29
class
Track
;
30
}
31
32
class
AtlasDetectorID
;
33
34
namespace
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
();
48
virtual
const
DataVector<Trk::Track>
*
processTrackCollection
(
const
DataVector<Trk::Track>
* trks);
49
const
AtlasDetectorID
*
m_idHelper
{};
50
51
void
dumpTrackCol
(
DataVector<Trk::Track>
* tracks);
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
63
Trk::TrkParametersComparisonFunction
*
m_comPar
{
nullptr
};
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};
73
Trk::ParticleHypothesis
m_ParticleHypothesis
{
Trk::nonInteracting
};
74
int
m_trkindex
{};
75
76
77
78
};
79
}
//namespace
80
81
#endif
// INDETALIGNGENTOOLS_REFITSIONLYTOOL_H
AthAlgTool.h
ICollectionProcessor.h
ITrackFitter.h
ParticleHypothesis.h
TrkParametersComparisonFunction.h
AtlasDetectorID
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Definition
AtlasDetectorID.h:53
DataVector
Derived DataVector<T>.
Definition
DataVector.h:818
InDetAlignment::RefitSiOnlyTool
Definition
RefitSiOnlyTool.h:35
InDetAlignment::RefitSiOnlyTool::m_OutlierRemoval
Gaudi::Property< bool > m_OutlierRemoval
flag for outlier removal
Definition
RefitSiOnlyTool.h:66
InDetAlignment::RefitSiOnlyTool::processTrackCollection
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.
Definition
RefitSiOnlyTool.cxx:88
InDetAlignment::RefitSiOnlyTool::m_doCosmic
Gaudi::Property< bool > m_doCosmic
Flag for cosmics.
Definition
RefitSiOnlyTool.h:65
InDetAlignment::RefitSiOnlyTool::configure
virtual StatusCode configure()
does necessary configuration to the tool
Definition
RefitSiOnlyTool.cxx:82
InDetAlignment::RefitSiOnlyTool::m_trkindex
int m_trkindex
Definition
RefitSiOnlyTool.h:74
InDetAlignment::RefitSiOnlyTool::m_comPar
Trk::TrkParametersComparisonFunction * m_comPar
Definition
RefitSiOnlyTool.h:63
InDetAlignment::RefitSiOnlyTool::finalize
virtual StatusCode finalize()
Athena Tool methods.
Definition
RefitSiOnlyTool.cxx:76
InDetAlignment::RefitSiOnlyTool::~RefitSiOnlyTool
virtual ~RefitSiOnlyTool()
Definition
RefitSiOnlyTool.cxx:40
InDetAlignment::RefitSiOnlyTool::refit
Trk::Track * refit(const Trk::Track *tr) const
refits a track not using non-silicon hits
Definition
RefitSiOnlyTool.cxx:118
InDetAlignment::RefitSiOnlyTool::initialize
virtual StatusCode initialize()
Athena Tool methods.
Definition
RefitSiOnlyTool.cxx:43
InDetAlignment::RefitSiOnlyTool::m_stripSCTHits
Gaudi::Property< bool > m_stripSCTHits
flag to not consider SCT hits in the refit
Definition
RefitSiOnlyTool.h:68
InDetAlignment::RefitSiOnlyTool::m_ITrkFitter
PublicToolHandle< Trk::ITrackFitter > m_ITrkFitter
Definition
RefitSiOnlyTool.h:61
InDetAlignment::RefitSiOnlyTool::m_stripTRTHits
Gaudi::Property< bool > m_stripTRTHits
flag to not consider TRT hits in the refit
Definition
RefitSiOnlyTool.h:70
InDetAlignment::RefitSiOnlyTool::m_stripPixelHits
Gaudi::Property< bool > m_stripPixelHits
flag to not consider Pixel hits in the refit
Definition
RefitSiOnlyTool.h:69
InDetAlignment::RefitSiOnlyTool::dumpTrackCol
void dumpTrackCol(DataVector< Trk::Track > *tracks)
Definition
RefitSiOnlyTool.cxx:211
InDetAlignment::RefitSiOnlyTool::m_idHelper
const AtlasDetectorID * m_idHelper
Definition
RefitSiOnlyTool.h:49
InDetAlignment::RefitSiOnlyTool::m_ParticleHypothesis
Trk::ParticleHypothesis m_ParticleHypothesis
Definition
RefitSiOnlyTool.h:73
InDetAlignment::RefitSiOnlyTool::m_ParticleNumber
Gaudi::Property< int > m_ParticleNumber
Definition
RefitSiOnlyTool.h:72
InDetAlignment::RefitSiOnlyTool::filterHit
bool filterHit(const Identifier &id) const
determines from flags, if this hit should be included in the fit or not
Definition
RefitSiOnlyTool.cxx:201
Trk::Track
The ATLAS Track class.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Identifier
Definition
IdentifierFieldParser.cxx:14
InDetAlignment
Definition
CreateMisalignAlg.cxx:72
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::TrkParametersComparisonFunction
ComparisonFunction< TrackParameters > TrkParametersComparisonFunction
Definition
TrkParametersComparisonFunction.h:26
Trk::ParticleHypothesis
ParticleHypothesis
Enumeration for Particle hypothesis respecting the interaction with material.
Definition
ParticleHypothesis.h:28
Trk::nonInteracting
@ nonInteracting
Definition
ParticleHypothesis.h:28
Generated on
for ATLAS Offline Software by
1.17.0