ATLAS Offline Software
InnerDetector
InDetRecTools
InDetTrackSelectorTool
InDetTrackSelectorTool
InDetCosmicTrackSelectorTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 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 "
TrkToolInterfaces/ITrackSummaryTool.h
"
13
#include "
TrkEventPrimitives/ParticleHypothesis.h
"
14
#include "
TrkParameters/TrackParameters.h
"
15
// MagField cache
16
#include "
MagFieldConditions/AtlasFieldCacheCondObj.h
"
17
#include "
MagFieldElements/AtlasFieldCache.h
"
18
19
namespace
Trk
20
{
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
DoubleProperty
m_maxZ0
{
this
,
"maxZ0"
, 150.,
"Maximum z0 of tracks"
};
55
DoubleProperty
m_maxD0
{
this
,
"maxD0"
, 2.5,
"Maximum d0 of tracks"
};
56
DoubleProperty
m_minPt
{
this
,
"minPt"
, 0.,
"Minimum pT of tracks"
};
57
IntegerProperty
m_numberOfPixelHits
58
{
this
,
"numberOfPixelHits"
, 0,
"Minimum number of Pixel hits"
};
59
IntegerProperty
m_numberOfSCTHits
60
{
this
,
"numberOfSCTHits"
, 0,
"Minimum number of SCT hits"
};
61
IntegerProperty
m_numberOfTRTHits
62
{
this
,
"numberOfTRTHits"
, 15,
"Minimum number of TRT hits"
};
63
IntegerProperty
m_numberOfSiHits
64
{
this
,
"numberOfSiliconHits"
, 8,
"Minimum number of Silicon hits"
};
65
IntegerProperty
m_numberOfSiHitsTop
{
this
,
"numberOfSiliconHitsTop"
, -1};
66
IntegerProperty
m_numberOfSiHitsBottom
{
this
,
"numberOfSiliconHitsBottom"
, -1};
67
68
ToolHandle<Trk::ITrackSummaryTool>
m_trackSumTool
{
this
,
"TrackSummaryTool"
,
""
};
69
bool
m_trackSumToolAvailable
=
false
;
70
71
// Read handle for conditions object to get the field cache
72
SG::ReadCondHandleKey<AtlasFieldCacheCondObj>
m_fieldCacheCondObjInputKey
{
this
,
"AtlasFieldCacheCondObj"
,
"fieldCondObj"
,
"Name of the Magnetic Field conditions object key"
};
73
74
75
};
//end of class definitions
76
}
//end of namespace definitions
77
78
#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
ITrackSummaryTool.h
TrackParameters.h
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
InDet::InDetCosmicTrackSelectorTool::m_numberOfSCTHits
IntegerProperty m_numberOfSCTHits
Definition:
InDetCosmicTrackSelectorTool.h:60
AtlasFieldCacheCondObj.h
InDet
Primary Vertex Finder.
Definition:
VP1ErrorUtils.h:36
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
InDet::InDetCosmicTrackSelectorTool::m_trackSumToolAvailable
bool m_trackSumToolAvailable
Definition:
InDetCosmicTrackSelectorTool.h:69
InDet::InDetCosmicTrackSelectorTool::m_maxZ0
DoubleProperty m_maxZ0
Definition:
InDetCosmicTrackSelectorTool.h:54
InDet::InDetCosmicTrackSelectorTool
Definition:
InDetCosmicTrackSelectorTool.h:31
Trk::TrackParticleBase
Definition:
TrackParticleBase.h:41
Trk::ParticleHypothesis
ParticleHypothesis
Definition:
ParticleHypothesis.h:25
InDet::InDetCosmicTrackSelectorTool::m_numberOfSiHitsBottom
IntegerProperty m_numberOfSiHitsBottom
Definition:
InDetCosmicTrackSelectorTool.h:66
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
InDet::InDetCosmicTrackSelectorTool::getNSiHits
static int getNSiHits(const Trk::Track *track, bool top)
Definition:
InDetCosmicTrackSelectorTool.cxx:234
InDet::InDetCosmicTrackSelectorTool::m_numberOfSiHits
IntegerProperty m_numberOfSiHits
Definition:
InDetCosmicTrackSelectorTool.h:64
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
InDet::InDetCosmicTrackSelectorTool::m_minPt
DoubleProperty m_minPt
Definition:
InDetCosmicTrackSelectorTool.h:56
ParticleHypothesis.h
InDet::InDetCosmicTrackSelectorTool::initialize
virtual StatusCode initialize() override
Definition:
InDetCosmicTrackSelectorTool.cxx:34
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:72
InDet::InDetCosmicTrackSelectorTool::m_maxD0
DoubleProperty m_maxD0
Definition:
InDetCosmicTrackSelectorTool.h:55
SG::ReadCondHandleKey< AtlasFieldCacheCondObj >
InDet::InDetCosmicTrackSelectorTool::InDetCosmicTrackSelectorTool
InDetCosmicTrackSelectorTool(const std::string &t, const std::string &n, const IInterface *p)
Definition:
InDetCosmicTrackSelectorTool.cxx:23
InDet::InDetCosmicTrackSelectorTool::m_trackSumTool
ToolHandle< Trk::ITrackSummaryTool > m_trackSumTool
Definition:
InDetCosmicTrackSelectorTool.h:68
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::~InDetCosmicTrackSelectorTool
~InDetCosmicTrackSelectorTool()
InDet::InDetCosmicTrackSelectorTool::m_numberOfPixelHits
IntegerProperty m_numberOfPixelHits
Definition:
InDetCosmicTrackSelectorTool.h:58
Track
Definition:
TriggerChamberClusterOnTrackCreator.h:21
top
@ top
Definition:
TruthClasses.h:64
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::decision
virtual bool decision(const Trk::Track &track, const Trk::Vertex *vertex) const override
Definition:
InDetCosmicTrackSelectorTool.cxx:53
InDet::InDetCosmicTrackSelectorTool::m_numberOfSiHitsTop
IntegerProperty m_numberOfSiHitsTop
Definition:
InDetCosmicTrackSelectorTool.h:65
InDet::InDetCosmicTrackSelectorTool::m_numberOfTRTHits
IntegerProperty m_numberOfTRTHits
Definition:
InDetCosmicTrackSelectorTool.h:62
Generated on Sun Dec 22 2024 21:11:35 for ATLAS Offline Software by
1.8.18