ATLAS Offline Software
Loading...
Searching...
No Matches
CaloTowerBuilderToolBase.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef CALOUTILS_CALOTOWERBUILDERTOOLBASE_H
6#define CALOUTILS_CALOTOWERBUILDERTOOLBASE_H
7
14
20
23
24#include <string>
25
28
30 virtual public ICaloTowerBuilderToolBase
31{
32 public:
33
35 CaloTowerBuilderToolBase(const std::string& name, const std::string& type,
36 const IInterface* parent);
38
40 virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE () override;
41
42 virtual void setTowerSeg(const CaloTowerSeg& theTowerSeg) override;
43
44
60 virtual StatusCode execute(const EventContext& ctx,
61 CaloTowerContainer* theContainer,
62 const CaloCellContainer* theCell = nullptr,
63 const CaloTowerSeg::SubSeg* subseg = nullptr) const override = 0;
64
73 virtual StatusCode execute (const EventContext& ctx,
74 CaloTowerContainer* theContainer) = 0;
75
76
77 virtual StatusCode initializeTool() override = 0;
78
79 protected:
80
84 const CaloTowerSeg& towerSeg() const;
85
86
90 const CaloCellContainer* getCells() const;
91
93
94 // ReadHandle to CaloDetDescr CDO in CondStore
95 SG::ReadCondHandleKey<CaloDetDescrManager> m_caloMgrKey{this,"CaloDetDescrManager","CaloDetDescrManager"};
96
97
98 private:
100
101};
102#endif
Definition of CaloDetDescrManager.
Property holding a SG store/key/clid from which a ReadHandle is made.
Define macros for attributes used to control the static checker.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Container class for CaloCell.
virtual ~CaloTowerBuilderToolBase()
virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE() override
common initialization
virtual StatusCode execute(const EventContext &ctx, CaloTowerContainer *theContainer, const CaloCellContainer *theCell=nullptr, const CaloTowerSeg::SubSeg *subseg=nullptr) const override=0
Run tower building and add results to the tower container.
virtual StatusCode initializeTool() override=0
const CaloTowerSeg & towerSeg() const
Return the tower segmentation.
virtual void setTowerSeg(const CaloTowerSeg &theTowerSeg) override
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
CaloTowerBuilderToolBase(const std::string &name, const std::string &type, const IInterface *parent)
AlgTool constructor.
SG::ReadHandleKey< CaloCellContainer > m_cellContainerName
virtual StatusCode execute(const EventContext &ctx, CaloTowerContainer *theContainer)=0
Run tower building and add results to the tower container.
const CaloCellContainer * getCells() const
Retrieve cells from StoreGate.
Storable container class for CaloTower.
A rectangular window within the segmentation.
Data object stores CaloTower segmentation.
Property holding a SG store/key/clid from which a ReadHandle is made.
void initialize()