ATLAS Offline Software
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
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
xAOD::name
name
Definition:
TriggerMenuJson_v1.cxx:29
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
Definition:
TrackParticlesInConeTool.h:20
xAOD::TrackParticlesInConeTool::TrackParticlesInConeTool
TrackParticlesInConeTool(const std::string &type, const std::string &name, const IInterface *parent)
constructor
Definition:
TrackParticlesInConeTool.cxx:15
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition:
ICaloAffectedTool.h:24
xAOD::TrackParticlesInConeTool::getTable
const LookUpTable * getTable() const
Definition:
TrackParticlesInConeTool.cxx:33
xAOD::TrackParticlesInConeTool::LookUpTable
IParticlesLookUpTable< TrackParticle > LookUpTable
Definition:
TrackParticlesInConeTool.h:38
python.TurnDataReader.dr
dr
Definition:
TurnDataReader.py:112
xAOD::TrackParticlesInConeTool::~TrackParticlesInConeTool
virtual ~TrackParticlesInConeTool(void)
destructor
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition:
StoreGate/StoreGate/ReadHandleKey.h:39
xAOD::TrackParticlesInConeTool::finalize
virtual StatusCode finalize() override
finalize
Definition:
TrackParticlesInConeTool.cxx:28
xAOD::phi
setEt phi
Definition:
TrigEMCluster_v1.cxx:29
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ITrackParticlesInConeTool.h
AthAlgTool.h
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
xAOD::TrackParticlesInConeTool::m_indetTrackParticleLocation
SG::ReadHandleKey< TrackParticleContainer > m_indetTrackParticleLocation
ID track collection name.
Definition:
TrackParticlesInConeTool.h:45
merge.output
output
Definition:
merge.py:17
xAOD::ITrackParticlesInConeTool
interface for collecting tracks inside a code
Definition:
ITrackParticlesInConeTool.h:24
TrackParticle.h
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
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:64
xAOD::IParticlesLookUpTable
2D look up table for iParticles
Definition:
IParticlesLookUpTable.h:17
AthAlgTool
Definition:
AthAlgTool.h:26
CLASS_DEF.h
macros to associate a CLID to a type
xAOD::TrackParticlesInConeTool::initialize
virtual StatusCode initialize() override
initialize
Definition:
TrackParticlesInConeTool.cxx:23
TrackParticleContainer.h
IParticlesLookUpTable.h
Generated on Fri Jan 10 2025 21:19:49 for ATLAS Offline Software by
1.8.18