ATLAS Offline Software
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$
15 
16 
17 
18 namespace D3PD {
19 
20 
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 
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 
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 
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
D3PD::CaloClusterCellAssociationTool::m_cells
std::vector< const CaloCell * > m_cells
Definition: CaloClusterCellAssociationTool.h:79
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
D3PD::MultiAssociationTool< Types< CaloCluster, xAOD::CaloCluster >, CaloCell >
CaloClusterCellAssociationTool.h
D3PD::CaloClusterCellAssociationTool::next
virtual const CaloCell * next()
Return a pointer to the next element in the association.
Definition: CaloClusterCellAssociationTool.cxx:83
D3PD::CaloClusterCellAssociationTool::reset
virtual StatusCode reset(const CaloCluster &p)
Return the target object.
Definition: CaloClusterCellAssociationTool.cxx:46
D3PD::CaloClusterCellAssociationTool::CaloClusterCellAssociationTool
CaloClusterCellAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: CaloClusterCellAssociationTool.cxx:29
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CaloCluster
Principal data class for CaloCell clusters.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloCluster.h:79
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::CaloClusterCellAssociationTool::m_icell
size_t m_icell
Definition: CaloClusterCellAssociationTool.h:80