ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
AthAlgTool.h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition
AthMsgStreamMacros.h:31
AtlasFieldCacheCondObj.h
AtlasFieldCache.h
ITrackSelectorTool.h
ParticleHypothesis.h
TrackParameters.h
ITrackSummaryTool.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
InDet::InDetCosmicTrackSelectorTool::m_minPt
DoubleProperty m_minPt
Definition
InDetCosmicTrackSelectorTool.h:56
InDet::InDetCosmicTrackSelectorTool::m_maxZ0
DoubleProperty m_maxZ0
Definition
InDetCosmicTrackSelectorTool.h:54
InDet::InDetCosmicTrackSelectorTool::m_numberOfSiHitsTop
IntegerProperty m_numberOfSiHitsTop
Definition
InDetCosmicTrackSelectorTool.h:65
InDet::InDetCosmicTrackSelectorTool::decision
virtual bool decision(const Trk::Track &track, const Trk::Vertex *vertex) const override
Definition
InDetCosmicTrackSelectorTool.cxx:53
InDet::InDetCosmicTrackSelectorTool::decision
virtual bool decision(const xAOD::TrackParticle &, const xAOD::Vertex *) const override
Definition
InDetCosmicTrackSelectorTool.h:45
InDet::InDetCosmicTrackSelectorTool::m_numberOfPixelHits
IntegerProperty m_numberOfPixelHits
Definition
InDetCosmicTrackSelectorTool.h:58
InDet::InDetCosmicTrackSelectorTool::m_maxD0
DoubleProperty m_maxD0
Definition
InDetCosmicTrackSelectorTool.h:55
InDet::InDetCosmicTrackSelectorTool::getNSiHits
static int getNSiHits(const Trk::Track *track, bool top)
Definition
InDetCosmicTrackSelectorTool.cxx:234
InDet::InDetCosmicTrackSelectorTool::m_numberOfTRTHits
IntegerProperty m_numberOfTRTHits
Definition
InDetCosmicTrackSelectorTool.h:62
InDet::InDetCosmicTrackSelectorTool::m_fieldCacheCondObjInputKey
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCacheCondObjInputKey
Definition
InDetCosmicTrackSelectorTool.h:72
InDet::InDetCosmicTrackSelectorTool::m_numberOfSiHitsBottom
IntegerProperty m_numberOfSiHitsBottom
Definition
InDetCosmicTrackSelectorTool.h:66
InDet::InDetCosmicTrackSelectorTool::m_trackSumTool
ToolHandle< Trk::ITrackSummaryTool > m_trackSumTool
Definition
InDetCosmicTrackSelectorTool.h:68
InDet::InDetCosmicTrackSelectorTool::m_numberOfSCTHits
IntegerProperty m_numberOfSCTHits
Definition
InDetCosmicTrackSelectorTool.h:60
InDet::InDetCosmicTrackSelectorTool::~InDetCosmicTrackSelectorTool
~InDetCosmicTrackSelectorTool()
InDet::InDetCosmicTrackSelectorTool::InDetCosmicTrackSelectorTool
InDetCosmicTrackSelectorTool(const std::string &t, const std::string &n, const IInterface *p)
Definition
InDetCosmicTrackSelectorTool.cxx:23
InDet::InDetCosmicTrackSelectorTool::m_numberOfSiHits
IntegerProperty m_numberOfSiHits
Definition
InDetCosmicTrackSelectorTool.h:64
InDet::InDetCosmicTrackSelectorTool::m_trackSumToolAvailable
bool m_trackSumToolAvailable
Definition
InDetCosmicTrackSelectorTool.h:69
InDet::InDetCosmicTrackSelectorTool::initialize
virtual StatusCode initialize() override
Definition
InDetCosmicTrackSelectorTool.cxx:34
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
Trk::ITrackSelectorTool
The abstract interface base class for track selector tools.
Definition
ITrackSelectorTool.h:35
Trk::TrackParticleBase
Definition
TrackParticleBase.h:41
Trk::Track
The ATLAS Track class.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Trk::Vertex
This class is a simplest representation of a vertex candidate.
Definition
Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h:26
InDet
Primary Vertex Finder.
Definition
VP1ErrorUtils.h:36
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::ParticleHypothesis
ParticleHypothesis
Enumeration for Particle hypothesis respecting the interaction with material.
Definition
ParticleHypothesis.h:28
Trk::TrackParameters
ParametersBase< TrackParametersDim, Charged > TrackParameters
Definition
Tracking/TrkEvent/TrkParameters/TrkParameters/TrackParameters.h:27
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition
Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
Generated on
for ATLAS Offline Software by
1.17.0