ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetAlignTools
InDetAlignGenTools
src
InDetAlignTrackSelTool.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
// InDetAlignTrackSelTool.h
6
7
// Sergio Gonzalez Sevilla, started 04/7/05
8
// Miguel Olivo Gomez, extended 07/6/06
9
10
// AlgTool to select high quality tracks for the inner detector
11
// (Pixel+SCT) alignment algorithms.
12
// This AlgTool provides a track selection based on the following cut variables:
13
// Momentum, pt, number of shared hits, number of holes and chi2 probability.
14
// Returns 0 in case a track is not accepted, otherwise 1
15
24
25
#ifndef INDETALIGNGENTOOLS_ALIGNTRACKSELTOOL_H
26
#define INDETALIGNGENTOOLS_ALIGNTRACKSELTOOL_H
27
28
#include "
AthenaBaseComps/AthAlgTool.h
"
29
#include "GaudiKernel/ToolHandle.h"
30
#include "
InDetAlignGenTools/IInDetAlignTrackSelTool.h
"
31
32
namespace
Trk
{
33
class
Track
;
34
class
ITrackParticleCreatorTool
;
35
}
36
37
class
InDetAlignTrackSelTool
:
virtual
public
IInDetAlignTrackSelTool
,
public
AthAlgTool
{
38
public
:
39
InDetAlignTrackSelTool
(
const
std::string&
type
,
const
std::string& name,
40
const
IInterface* parent);
41
virtual
~InDetAlignTrackSelTool
();
42
virtual
StatusCode
initialize
();
43
virtual
StatusCode
finalize
();
44
45
virtual
int
getStatus
(
const
EventContext& ctx,
const
Trk::Track
&)
const
;
46
47
private
:
48
double
Momentum
(
const
Trk::Track
&)
const
;
49
double
Pt
(
const
Trk::Track
&)
const
;
50
int
nShared
(
const
EventContext& ctx,
const
Trk::Track
&)
const
;
51
int
nHoles
(
const
EventContext& ctx,
const
Trk::Track
&)
const
;
52
double
chi2Prob
(
const
Trk::Track
&)
const
;
53
54
ToolHandle <Trk::ITrackParticleCreatorTool>
m_particleCreator
;
55
56
double
m_minMomentum
;
57
double
m_minPt
;
58
int
m_maxShared
;
59
int
m_maxHoles
;
60
double
m_minChi2Prob
;
61
};
62
63
#endif
// INDETALIGNTOOLS_ALIGNTRACKSELTOOL_H
AthAlgTool.h
IInDetAlignTrackSelTool.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
IInDetAlignTrackSelTool
Definition
IInDetAlignTrackSelTool.h:25
InDetAlignTrackSelTool::m_particleCreator
ToolHandle< Trk::ITrackParticleCreatorTool > m_particleCreator
Pointer to track particle creator tool.
Definition
InDetAlignTrackSelTool.h:54
InDetAlignTrackSelTool::nHoles
int nHoles(const EventContext &ctx, const Trk::Track &) const
Definition
InDetAlignTrackSelTool.cxx:147
InDetAlignTrackSelTool::getStatus
virtual int getStatus(const EventContext &ctx, const Trk::Track &) const
Definition
InDetAlignTrackSelTool.cxx:196
InDetAlignTrackSelTool::m_maxShared
int m_maxShared
Maximum number of shared hits of the track.
Definition
InDetAlignTrackSelTool.h:58
InDetAlignTrackSelTool::~InDetAlignTrackSelTool
virtual ~InDetAlignTrackSelTool()
Definition
InDetAlignTrackSelTool.cxx:49
InDetAlignTrackSelTool::nShared
int nShared(const EventContext &ctx, const Trk::Track &) const
Definition
InDetAlignTrackSelTool.cxx:121
InDetAlignTrackSelTool::Momentum
double Momentum(const Trk::Track &) const
Definition
InDetAlignTrackSelTool.cxx:77
InDetAlignTrackSelTool::m_minPt
double m_minPt
Minimum value of the transverse momentum of the track.
Definition
InDetAlignTrackSelTool.h:57
InDetAlignTrackSelTool::finalize
virtual StatusCode finalize()
Definition
InDetAlignTrackSelTool.cxx:70
InDetAlignTrackSelTool::m_minMomentum
double m_minMomentum
Minimum value of the momentum of the track.
Definition
InDetAlignTrackSelTool.h:56
InDetAlignTrackSelTool::chi2Prob
double chi2Prob(const Trk::Track &) const
Definition
InDetAlignTrackSelTool.cxx:172
InDetAlignTrackSelTool::m_maxHoles
int m_maxHoles
Maximum number of holes of the track.
Definition
InDetAlignTrackSelTool.h:59
InDetAlignTrackSelTool::InDetAlignTrackSelTool
InDetAlignTrackSelTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
InDetAlignTrackSelTool.cxx:25
InDetAlignTrackSelTool::m_minChi2Prob
double m_minChi2Prob
Minimum value of the chi2 Probality of the track.
Definition
InDetAlignTrackSelTool.h:60
InDetAlignTrackSelTool::Pt
double Pt(const Trk::Track &) const
Definition
InDetAlignTrackSelTool.cxx:99
InDetAlignTrackSelTool::initialize
virtual StatusCode initialize()
Definition
InDetAlignTrackSelTool.cxx:53
Trk::ITrackParticleCreatorTool
Interface for constructing TrackParticles from complete tracks.
Definition
ITrackParticleCreatorTool.h:38
Trk::Track
The ATLAS Track class.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
type
Generated on
for ATLAS Offline Software by
1.17.0