ATLAS Offline Software
Reconstruction
RecoTools
ParticlesInConeTools
src
CaloClustersInConeTool.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_CALOCLUSTERSINCONETOOL_H
6
#define PARTICLESINCONETOOLS_CALOCLUSTERSINCONETOOL_H
7
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "GaudiKernel/ServiceHandle.h"
10
#include "
StoreGate/ReadHandleKey.h
"
11
12
#include "
ParticlesInConeTools/ICaloClustersInConeTool.h
"
13
#include "
IParticlesLookUpTable.h
"
14
#include "
xAODCaloEvent/CaloCluster.h
"
15
#include "
xAODCaloEvent/CaloClusterContainer.h
"
16
#include "
AthenaKernel/CLASS_DEF.h
"
17
18
namespace
xAOD
{
19
20
class
CaloClustersInConeTool
:
public
AthAlgTool
,
virtual
public
ICaloClustersInConeTool
{
21
public
:
23
CaloClustersInConeTool
(
const
std::string&
type
,
const
std::string&
name
,
const
IInterface*
parent
);
24
26
virtual
~CaloClustersInConeTool
(
void
);
27
29
virtual
StatusCode
initialize
()
override
;
30
32
virtual
StatusCode
finalize
()
override
;
33
35
virtual
bool
particlesInCone
(
float
eta,
float
phi
,
float
dr
, std::vector< const CaloCluster*>&
output
)
const override
;
36
38
virtual
bool
particlesInCone
(
float
eta,
float
phi
,
float
dr
, std::vector<
ElementLink<CaloClusterContainer>
>&
output
)
const override
;
39
40
typedef
IParticlesLookUpTable<CaloCluster>
LookUpTable
;
41
42
private
:
43
// init look-up table
44
const
LookUpTable
*
getTable
()
const
;
45
47
SG::ReadHandleKey<CaloClusterContainer>
m_caloClusterLocation
{
this
,
48
"CaloClusterLocation"
,
"CaloCalTopoClusters"
};
49
};
50
51
}
// end of namespace
52
53
54
CLASS_DEF
(
xAOD::CaloClustersInConeTool::LookUpTable
, 192366895, 0 )
55
56
#endif
57
58
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
xAOD::name
name
Definition:
TriggerMenuJson_v1.cxx:29
xAOD::CaloClustersInConeTool::LookUpTable
IParticlesLookUpTable< CaloCluster > LookUpTable
Definition:
CaloClustersInConeTool.h:40
xAOD::CaloClustersInConeTool::CaloClustersInConeTool
CaloClustersInConeTool(const std::string &type, const std::string &name, const IInterface *parent)
constructor
Definition:
CaloClustersInConeTool.cxx:17
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition:
ICaloAffectedTool.h:24
python.TurnDataReader.dr
dr
Definition:
TurnDataReader.py:112
xAOD::CaloClustersInConeTool
Definition:
CaloClustersInConeTool.h:20
SG::ReadHandleKey< CaloClusterContainer >
xAOD::CaloClustersInConeTool::~CaloClustersInConeTool
virtual ~CaloClustersInConeTool(void)
destructor
xAOD::phi
setEt phi
Definition:
TrigEMCluster_v1.cxx:29
xAOD::CaloClustersInConeTool::m_caloClusterLocation
SG::ReadHandleKey< CaloClusterContainer > m_caloClusterLocation
ID track collection name.
Definition:
CaloClustersInConeTool.h:47
xAOD::CaloClustersInConeTool::finalize
virtual StatusCode finalize() override
finalize
Definition:
CaloClustersInConeTool.cxx:31
xAOD::CaloClustersInConeTool::particlesInCone
virtual bool particlesInCone(float eta, float phi, float dr, std::vector< const CaloCluster * > &output) const override
ICaloClustersInConeTool interface.
Definition:
CaloClustersInConeTool.cxx:55
CaloCluster.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
xAOD::CaloClustersInConeTool::initialize
virtual StatusCode initialize() override
initialize
Definition:
CaloClustersInConeTool.cxx:26
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
ElementLink< CaloClusterContainer >
ICaloClustersInConeTool.h
merge.output
output
Definition:
merge.py:17
xAOD::ICaloClustersInConeTool
interface for collecting truth particles inside a cone
Definition:
ICaloClustersInConeTool.h:27
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
CaloClusterContainer.h
AthAlgTool
Definition:
AthAlgTool.h:26
CLASS_DEF.h
macros to associate a CLID to a type
xAOD::CaloClustersInConeTool::getTable
const LookUpTable * getTable() const
Definition:
CaloClustersInConeTool.cxx:36
IParticlesLookUpTable.h
Generated on Thu Nov 7 2024 21:11:23 for ATLAS Offline Software by
1.8.18