ATLAS Offline Software
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 
16 #include "CaloEvent/CaloTowerSeg.h"
20 
23 
24 #include <string>
25 
27 class CaloTowerContainer;
28 
30  virtual public ICaloTowerBuilderToolBase
31 {
32  public:
33 
35  CaloTowerBuilderToolBase(const std::string& name, const std::string& type,
36  const IInterface* parent);
38 
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
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ICaloTowerBuilderToolBase.h
CaloTowerBuilderToolBase::execute
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.
initialize
void initialize()
Definition: run_EoverP.cxx:894
CaloTowerBuilderToolBase::m_theTowerSeg
CaloTowerSeg m_theTowerSeg
Definition: CaloTowerBuilderToolBase.h:99
CaloTowerBuilderToolBase::getCells
const CaloCellContainer * getCells() const
Retrieve cells from StoreGate.
Definition: CaloTowerBuilderToolBase.cxx:59
CaloTowerSeg.h
SG::ReadHandleKey< CaloCellContainer >
ReadCondHandle.h
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloTowerSeg::SubSeg
A rectangular window within the segmentation.
Definition: CaloTowerSeg.h:220
ICaloTowerBuilderToolBase
Definition: ICaloTowerBuilderToolBase.h:38
CaloTowerContainer
Storable container class for CaloTower.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloTowerContainer.h:77
CaloTowerBuilderToolBase::~CaloTowerBuilderToolBase
virtual ~CaloTowerBuilderToolBase()
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
CaloTowerBuilderToolBase::towerSeg
const CaloTowerSeg & towerSeg() const
Return the tower segmentation.
Definition: CaloTowerBuilderToolBase.cxx:50
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CaloTowerBuilderToolBase::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: CaloTowerBuilderToolBase.h:95
CaloCellContainer.h
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
SG::ReadCondHandleKey< CaloDetDescrManager >
CaloTowerBuilderToolBase::ATLAS_NOT_THREAD_SAFE
virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE() override
common initialization
CaloTowerBuilderToolBase
Definition: CaloTowerBuilderToolBase.h:31
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloTowerBuilderToolBase::m_cellContainerName
SG::ReadHandleKey< CaloCellContainer > m_cellContainerName
Definition: CaloTowerBuilderToolBase.h:92
CaloTowerBuilderToolBase::CaloTowerBuilderToolBase
CaloTowerBuilderToolBase(const std::string &name, const std::string &type, const IInterface *parent)
AlgTool constructor.
Definition: CaloTowerBuilderToolBase.cxx:14
CaloTowerSeg
Data object stores CaloTower segmentation.
Definition: CaloTowerSeg.h:37
CaloTowerBuilderToolBase::initializeTool
virtual StatusCode initializeTool() override=0
AthAlgTool
Definition: AthAlgTool.h:26
checker_macros.h
Define macros for attributes used to control the static checker.
CaloTowerBuilderToolBase::setTowerSeg
virtual void setTowerSeg(const CaloTowerSeg &theTowerSeg) override
Definition: CaloTowerBuilderToolBase.cxx:37
CaloTowerBuilderToolBase::execute
virtual StatusCode execute(const EventContext &ctx, CaloTowerContainer *theContainer)=0
Run tower building and add results to the tower container.