ATLAS Offline Software
Loading...
Searching...
No Matches
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
15
16
17
18namespace D3PD {
19
20
27
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
Data object for each calorimeter readout cell.
Definition CaloCell.h:57
Principal data class for CaloCell clusters.
virtual StatusCode reset(const CaloCluster &p)
Return the target object.
virtual const CaloCell * next()
Return a pointer to the next element in the association.
MultiAssociationTool< Types< CaloCluster, xAOD::CaloCluster >, CaloCell > Base
CaloClusterCellAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Block filler tool for noisy FEB information.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.