ATLAS Offline Software
InnerDetector
InDetRecTools
InDetTrackSelectorTool
InDetTrackSelectorTool
InDetCosmicTrackSelectorTool.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
#ifndef InDetTrackSelectorTool_InDetCosmicTrackSelectorTool_H
6
#define InDetTrackSelectorTool_InDetCosmicTrackSelectorTool_H
7
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "GaudiKernel/ToolHandle.h"
10
#include "GaudiKernel/ServiceHandle.h"
11
#include "
TrkToolInterfaces/ITrackSelectorTool.h
"
12
#include "
TrkEventPrimitives/ParticleHypothesis.h
"
13
#include "
TrkParameters/TrackParameters.h
"
14
// MagField cache
15
#include "
MagFieldConditions/AtlasFieldCacheCondObj.h
"
16
#include "
MagFieldElements/AtlasFieldCache.h
"
17
18
namespace
Trk
19
{
20
class
ITrackSummaryTool;
21
class
Vertex
;
22
class
TrackParticleBase;
23
class
Track
;
24
}
25
26
27
namespace
InDet
28
{
29
30
class
InDetCosmicTrackSelectorTool
:
virtual
public
Trk::ITrackSelectorTool
,
public
AthAlgTool
31
{
32
33
public
:
34
35
virtual
StatusCode
initialize
()
override
;
36
37
InDetCosmicTrackSelectorTool
(
const
std::string&
t
,
const
std::string&
n
,
const
IInterface*
p
);
38
39
~InDetCosmicTrackSelectorTool
();
40
41
virtual
bool
decision
(
const
Trk::Track
&
track
,
const
Trk::Vertex
*
vertex
)
const override
;
42
43
virtual
bool
decision
(
const
Trk::TrackParticleBase
&
track
,
const
Trk::Vertex
*
vertex
)
const override
;
44
45
virtual
bool
decision
(
const
xAOD::TrackParticle
&,
const
xAOD::Vertex
*)
const override
{
46
ATH_MSG_WARNING
(
"xAOD::TrackParticle selection not implemented yet"
);
47
return
false
;
48
}
49
50
private
:
51
52
static
int
getNSiHits
(
const
Trk::Track
*
track
,
bool
top
) ;
53
bool
decision
(
const
Trk::TrackParameters
*
track
,
const
Trk::Vertex
*
vertex
,
const
Trk::ParticleHypothesis
)
const
;
54
double
m_maxZ0
;
55
double
m_maxD0
;
56
double
m_minPt
;
57
int
m_numberOfPixelHits
;
58
int
m_numberOfSCTHits
;
59
int
m_numberOfTRTHits
;
60
int
m_numberOfSiHits
;
61
int
m_numberOfSiHitsTop
;
62
int
m_numberOfSiHitsBottom
;
63
64
ToolHandle<Trk::ITrackSummaryTool>
m_trackSumTool
;
65
bool
m_trackSumToolAvailable
;
66
67
// Read handle for conditions object to get the field cache
68
SG::ReadCondHandleKey<AtlasFieldCacheCondObj>
m_fieldCacheCondObjInputKey
{
this
,
"AtlasFieldCacheCondObj"
,
"fieldCondObj"
,
"Name of the Magnetic Field conditions object key"
};
69
70
71
};
//end of class definitions
72
}
//end of namespace definitions
73
74
#endif //TrkMultipleVertexSeedFinders_PVFindingTrackSelectoTool_H
Trk::ITrackSelectorTool
The abstract interface base class for track selector tools.
Definition:
ITrackSelectorTool.h:35
InDet::InDetCosmicTrackSelectorTool::decision
virtual bool decision(const xAOD::TrackParticle &, const xAOD::Vertex *) const override
Definition:
InDetCosmicTrackSelectorTool.h:45
Trk::Vertex
Definition:
Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h:26
top
TopConfig A simple configuration that is NOT a singleton.
Definition:
AnalysisTrackingHelper.cxx:58
python.PerfMonSerializer.p
def p
Definition:
PerfMonSerializer.py:743
TrackParameters.h
InDet::InDetCosmicTrackSelectorTool::m_numberOfSCTHits
int m_numberOfSCTHits
Minimum number of SCT hits.
Definition:
InDetCosmicTrackSelectorTool.h:58
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition:
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
Trk::Track
The ATLAS Track class.
Definition:
Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
AtlasFieldCacheCondObj.h
InDet
DUMMY Primary Vertex Finder.
Definition:
VP1ErrorUtils.h:36
InDet::InDetCosmicTrackSelectorTool::m_numberOfTRTHits
int m_numberOfTRTHits
Minimum number of TRT hits.
Definition:
InDetCosmicTrackSelectorTool.h:59
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
InDet::InDetCosmicTrackSelectorTool::m_trackSumToolAvailable
bool m_trackSumToolAvailable
Definition:
InDetCosmicTrackSelectorTool.h:65
InDet::InDetCosmicTrackSelectorTool
Definition:
InDetCosmicTrackSelectorTool.h:31
Trk::TrackParticleBase
Definition:
TrackParticleBase.h:41
Trk::ParticleHypothesis
ParticleHypothesis
Definition:
ParticleHypothesis.h:25
InDet::InDetCosmicTrackSelectorTool::getNSiHits
static int getNSiHits(const Trk::Track *track, bool top)
Definition:
InDetCosmicTrackSelectorTool.cxx:246
InDet::InDetCosmicTrackSelectorTool::m_maxD0
double m_maxD0
Maximum d0 of tracks.
Definition:
InDetCosmicTrackSelectorTool.h:55
InDet::InDetCosmicTrackSelectorTool::m_minPt
double m_minPt
Minimum pT of tracks.
Definition:
InDetCosmicTrackSelectorTool.h:56
beamspotman.n
n
Definition:
beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
AtlasFieldCache.h
Trk::ParametersBase
Definition:
ParametersBase.h:55
ParticleHypothesis.h
InDet::InDetCosmicTrackSelectorTool::m_numberOfSiHits
int m_numberOfSiHits
Minimum number of Silicon hits.
Definition:
InDetCosmicTrackSelectorTool.h:60
InDet::InDetCosmicTrackSelectorTool::initialize
virtual StatusCode initialize() override
Definition:
InDetCosmicTrackSelectorTool.cxx:46
InDet::InDetCosmicTrackSelectorTool::m_numberOfSiHitsBottom
int m_numberOfSiHitsBottom
Minimum number of Silicon hits.
Definition:
InDetCosmicTrackSelectorTool.h:62
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition:
FakeTrackBuilder.h:9
InDet::InDetCosmicTrackSelectorTool::m_fieldCacheCondObjInputKey
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCacheCondObjInputKey
Definition:
InDetCosmicTrackSelectorTool.h:68
SG::ReadCondHandleKey< AtlasFieldCacheCondObj >
InDet::InDetCosmicTrackSelectorTool::InDetCosmicTrackSelectorTool
InDetCosmicTrackSelectorTool(const std::string &t, const std::string &n, const IInterface *p)
Definition:
InDetCosmicTrackSelectorTool.cxx:24
InDet::InDetCosmicTrackSelectorTool::m_trackSumTool
ToolHandle< Trk::ITrackSummaryTool > m_trackSumTool
Definition:
InDetCosmicTrackSelectorTool.h:64
Trk::vertex
@ vertex
Definition:
MeasurementType.h:21
xAOD::Vertex_v1
Class describing a Vertex.
Definition:
Vertex_v1.h:42
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition:
AthMsgStreamMacros.h:32
InDet::InDetCosmicTrackSelectorTool::m_numberOfSiHitsTop
int m_numberOfSiHitsTop
Minimum number of Silicon hits.
Definition:
InDetCosmicTrackSelectorTool.h:61
InDet::InDetCosmicTrackSelectorTool::~InDetCosmicTrackSelectorTool
~InDetCosmicTrackSelectorTool()
InDet::InDetCosmicTrackSelectorTool::m_maxZ0
double m_maxZ0
Maximum z0 of tracks.
Definition:
InDetCosmicTrackSelectorTool.h:54
Track
Definition:
TriggerChamberClusterOnTrackCreator.h:21
xAOD::track
@ track
Definition:
TrackingPrimitives.h:512
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition:
TrackParticle_v1.h:43
AthAlgTool
Definition:
AthAlgTool.h:26
ITrackSelectorTool.h
InDet::InDetCosmicTrackSelectorTool::m_numberOfPixelHits
int m_numberOfPixelHits
Minimum number of Pixel hits.
Definition:
InDetCosmicTrackSelectorTool.h:57
InDet::InDetCosmicTrackSelectorTool::decision
virtual bool decision(const Trk::Track &track, const Trk::Vertex *vertex) const override
Definition:
InDetCosmicTrackSelectorTool.cxx:65
Generated on Thu Jul 4 2024 21:17:25 for ATLAS Offline Software by
1.8.18