ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
CaloD3PDMaker
src
CaloClusterCellAssociationTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// $Id$
12
13
14
#include "
CaloClusterCellAssociationTool.h
"
15
16
17
18
namespace
D3PD
{
19
20
27
28
CaloClusterCellAssociationTool::CaloClusterCellAssociationTool
29
(
const
std::string&
type
,
30
const
std::string& name,
31
const
IInterface* parent)
32
:
Base
(
type
, name, parent),
33
m_icell
(0)
34
{
35
36
37
}
38
39
46
StatusCode
CaloClusterCellAssociationTool::reset
(
const
CaloCluster
& p)
47
{
48
m_icell
= 0;
49
m_cells
.clear();
50
51
// Protect against missing cells.
52
if
(p.isCellLinkValid())
53
m_cells
.assign (p.cell_begin(), p.cell_end());
54
55
return
StatusCode::SUCCESS;
56
}
57
58
65
StatusCode
CaloClusterCellAssociationTool::reset
(
const
xAOD::CaloCluster
& p)
66
{
67
m_icell
= 0;
68
m_cells
.clear();
69
70
// Protect against missing cells.
71
if
(p.getCellLinks())
72
m_cells
.assign (p.cell_begin(), p.cell_end());
73
74
return
StatusCode::SUCCESS;
75
}
76
77
83
const
CaloCell
*
CaloClusterCellAssociationTool::next
()
84
{
85
const
CaloCell
* out= 0;
86
if
(
m_icell
<
m_cells
.size())
87
out =
m_cells
[
m_icell
++];
88
return
out;
89
}
90
91
}
// namespace D3PD
CaloClusterCellAssociationTool.h
CaloCell
Data object for each calorimeter readout cell.
Definition
CaloCell.h:57
CaloCluster
Principal data class for CaloCell clusters.
Definition
Calorimeter/CaloEvent/CaloEvent/CaloCluster.h:79
D3PD::CaloClusterCellAssociationTool::m_icell
size_t m_icell
Definition
CaloClusterCellAssociationTool.h:80
D3PD::CaloClusterCellAssociationTool::reset
virtual StatusCode reset(const CaloCluster &p)
Return the target object.
Definition
CaloClusterCellAssociationTool.cxx:46
D3PD::CaloClusterCellAssociationTool::next
virtual const CaloCell * next()
Return a pointer to the next element in the association.
Definition
CaloClusterCellAssociationTool.cxx:83
D3PD::CaloClusterCellAssociationTool::m_cells
std::vector< const CaloCell * > m_cells
Definition
CaloClusterCellAssociationTool.h:79
D3PD::CaloClusterCellAssociationTool::Base
MultiAssociationTool< Types< CaloCluster, xAOD::CaloCluster >, CaloCell > Base
Definition
CaloClusterCellAssociationTool.h:36
D3PD::CaloClusterCellAssociationTool::CaloClusterCellAssociationTool
CaloClusterCellAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
CaloClusterCellAssociationTool.cxx:29
D3PD
Block filler tool for noisy FEB information.
Definition
CaloCellDetailsFillerTool.cxx:29
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
type
Generated on
for ATLAS Offline Software by
1.17.0