ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecoTools
ParticlesInConeTools
src
TrackParticlesInConeTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef PARTICLESINCONETOOLS_TRACKSINCONETOOL_H
6
#define PARTICLESINCONETOOLS_TRACKSINCONETOOL_H
7
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "GaudiKernel/ServiceHandle.h"
10
#include "
StoreGate/ReadHandleKey.h
"
11
12
#include "
ParticlesInConeTools/ITrackParticlesInConeTool.h
"
13
#include "
IParticlesLookUpTable.h
"
14
#include "
xAODTracking/TrackParticle.h
"
15
#include "
xAODTracking/TrackParticleContainer.h
"
16
#include "
AthenaKernel/CLASS_DEF.h
"
17
18
namespace
xAOD
{
19
20
class
TrackParticlesInConeTool
:
public
AthAlgTool
,
virtual
public
ITrackParticlesInConeTool
{
21
public
:
23
TrackParticlesInConeTool
(
const
std::string&
type
,
const
std::string&
name
,
const
IInterface* parent);
24
26
virtual
~TrackParticlesInConeTool
(
void
);
27
29
virtual
StatusCode
initialize
()
override
;
30
32
virtual
StatusCode
finalize
()
override
;
33
35
virtual
36
bool
particlesInCone
(
float
eta
,
float
phi
,
float
dr, std::vector< const TrackParticle*>& output )
const override
;
37
38
typedef
IParticlesLookUpTable<TrackParticle>
LookUpTable
;
39
40
private
:
41
// init look-up table
42
const
LookUpTable
*
getTable
()
const
;
43
45
SG::ReadHandleKey<TrackParticleContainer>
m_indetTrackParticleLocation
{
this
,
46
"TrackParticleLocation"
,
"InDetTrackParticles"
};
47
};
48
49
}
// end of namespace
50
51
CLASS_DEF
(
xAOD::TrackParticlesInConeTool::LookUpTable
, 134433981, 0 )
52
53
#endif
54
55
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
AthAlgTool.h
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
TrackParticleContainer.h
TrackParticle.h
IParticlesLookUpTable.h
ITrackParticlesInConeTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
xAOD::IParticlesLookUpTable
2D look up table for iParticles
Definition
IParticlesLookUpTable.h:17
xAOD::ITrackParticlesInConeTool
interface for collecting tracks inside a code
Definition
ITrackParticlesInConeTool.h:24
xAOD::TrackParticlesInConeTool::TrackParticlesInConeTool
TrackParticlesInConeTool(const std::string &type, const std::string &name, const IInterface *parent)
constructor
Definition
TrackParticlesInConeTool.cxx:15
xAOD::TrackParticlesInConeTool::particlesInCone
virtual bool particlesInCone(float eta, float phi, float dr, std::vector< const TrackParticle * > &output) const override
ITrackParticlesInConeTool interface.
Definition
TrackParticlesInConeTool.cxx:52
xAOD::TrackParticlesInConeTool::finalize
virtual StatusCode finalize() override
finalize
Definition
TrackParticlesInConeTool.cxx:28
xAOD::TrackParticlesInConeTool::m_indetTrackParticleLocation
SG::ReadHandleKey< TrackParticleContainer > m_indetTrackParticleLocation
ID track collection name.
Definition
TrackParticlesInConeTool.h:45
xAOD::TrackParticlesInConeTool::LookUpTable
IParticlesLookUpTable< TrackParticle > LookUpTable
Definition
TrackParticlesInConeTool.h:38
xAOD::TrackParticlesInConeTool::initialize
virtual StatusCode initialize() override
initialize
Definition
TrackParticlesInConeTool.cxx:23
xAOD::TrackParticlesInConeTool::~TrackParticlesInConeTool
virtual ~TrackParticlesInConeTool(void)
destructor
xAOD::TrackParticlesInConeTool::getTable
const LookUpTable * getTable() const
Definition
TrackParticlesInConeTool.cxx:33
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
xAOD::phi
setEt phi
Definition
TrigEMCluster_v1.cxx:29
type
Generated on
for ATLAS Offline Software by
1.17.0