ATLAS Offline Software
InDetAlignTrackSelTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 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 
25 #ifndef INDETALIGNGENTOOLS_ALIGNTRACKSELTOOL_H
26 #define INDETALIGNGENTOOLS_ALIGNTRACKSELTOOL_H
27 
29 #include "GaudiKernel/ToolHandle.h"
31 
32 namespace Trk {
33  class Track;
34  class ITrackParticleCreatorTool;
35 }
36 
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 Trk::Track&) const;
46 
47  private:
48  double Momentum(const Trk::Track&) const;
49  double Pt(const Trk::Track&) const;
50  int nShared(const Trk::Track&) const;
51  int nHoles(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;
59  int m_maxHoles;
60  double m_minChi2Prob;
61 };
62 
63 #endif // INDETALIGNTOOLS_ALIGNTRACKSELTOOL_H
InDetAlignTrackSelTool::m_particleCreator
ToolHandle< Trk::ITrackParticleCreatorTool > m_particleCreator
Pointer to track particle creator tool.
Definition: InDetAlignTrackSelTool.h:54
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
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::Momentum
double Momentum(const Trk::Track &) const
Definition: InDetAlignTrackSelTool.cxx:77
InDetAlignTrackSelTool::chi2Prob
double chi2Prob(const Trk::Track &) const
Definition: InDetAlignTrackSelTool.cxx:177
InDetAlignTrackSelTool::m_minChi2Prob
double m_minChi2Prob
Minimum value of the chi2 Probality of the track.
Definition: InDetAlignTrackSelTool.h:60
IInDetAlignTrackSelTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
InDetAlignTrackSelTool::nShared
int nShared(const Trk::Track &) const
Definition: InDetAlignTrackSelTool.cxx:121
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
InDetAlignTrackSelTool::m_minPt
double m_minPt
Minimum value of the transverse momentum of the track.
Definition: InDetAlignTrackSelTool.h:57
InDetAlignTrackSelTool::Pt
double Pt(const Trk::Track &) const
Definition: InDetAlignTrackSelTool.cxx:99
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
InDetAlignTrackSelTool::nHoles
int nHoles(const Trk::Track &) const
Definition: InDetAlignTrackSelTool.cxx:149
InDetAlignTrackSelTool::InDetAlignTrackSelTool
InDetAlignTrackSelTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: InDetAlignTrackSelTool.cxx:25
InDetAlignTrackSelTool::finalize
virtual StatusCode finalize()
Definition: InDetAlignTrackSelTool.cxx:70
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
IInDetAlignTrackSelTool
Definition: IInDetAlignTrackSelTool.h:25
InDetAlignTrackSelTool
The InDetAlignTrackSelTool serves to select high quality tracks for the inner detector (Pixel+SCT) al...
Definition: InDetAlignTrackSelTool.h:37
InDetAlignTrackSelTool::getStatus
virtual int getStatus(const Trk::Track &) const
Definition: InDetAlignTrackSelTool.cxx:201
InDetAlignTrackSelTool::m_maxHoles
int m_maxHoles
Maximum number of holes of the track.
Definition: InDetAlignTrackSelTool.h:59
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
AthAlgTool
Definition: AthAlgTool.h:26
InDetAlignTrackSelTool::m_minMomentum
double m_minMomentum
Minimum value of the momentum of the track.
Definition: InDetAlignTrackSelTool.h:56
InDetAlignTrackSelTool::initialize
virtual StatusCode initialize()
Definition: InDetAlignTrackSelTool.cxx:53