ATLAS Offline Software
CaloClusterCellAssociationTool.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id$
16 #ifndef CALOD3PDMAKER_CALOCLUSTERCELLASSOCIATIONTOOL_H
17 #define CALOD3PDMAKER_CALOCLUSTERCELLASSOCIATIONTOOL_H
18 
21 #include "CaloEvent/CaloCluster.h"
22 #include "CaloEvent/CaloCell.h"
23 
24 
25 
26 namespace D3PD {
27 
28 
33  : public MultiAssociationTool<Types<CaloCluster, xAOD::CaloCluster>, CaloCell>
34 {
35 public:
37 
38 
45  CaloClusterCellAssociationTool (const std::string& type,
46  const std::string& name,
47  const IInterface* parent);
48 
49 
57  virtual StatusCode reset (const CaloCluster& p);
58 
59 
67  virtual StatusCode reset (const xAOD::CaloCluster& p);
68 
69 
75  virtual const CaloCell* next();
76 
77 
78 private:
79  std::vector<const CaloCell*> m_cells;
80  size_t m_icell;
81 };
82 
83 } // namespace D3PD
84 
85 
86 
87 #endif // not EGAMMAD3PDMAKER_EGAMMACLUSTERASSOCIATIONTOOL_H
D3PD::CaloClusterCellAssociationTool::m_cells
std::vector< const CaloCell * > m_cells
Definition: CaloClusterCellAssociationTool.h:79
MultiAssociationTool.h
Type-safe wrapper for multiple-target associator tools.
CaloCell.h
D3PD::MultiAssociationTool
Type-safe wrapper for multiple-target associator tools.
Definition: MultiAssociationTool.h:153
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
Associate from a CaloCluster to CaloCell.
Definition: CaloClusterCellAssociationTool.h:34
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: CaloCellDetailsFillerTool.cxx:29
D3PD::CaloClusterCellAssociationTool::Base
MultiAssociationTool< Types< CaloCluster, xAOD::CaloCluster >, CaloCell > Base
Definition: CaloClusterCellAssociationTool.h:36
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
CaloCluster.h
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:228
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