ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloUtils
CaloUtils
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
15
#include "
CaloInterface/ICaloTowerBuilderToolBase.h
"
16
#include "
CaloEvent/CaloTowerSeg.h
"
17
#include "
CaloEvent/CaloCellContainer.h
"
18
#include "
StoreGate/ReadHandleKey.h
"
19
#include "
AthenaBaseComps/AthAlgTool.h
"
20
21
#include "
CaloDetDescr/CaloDetDescrManager.h
"
22
#include "
StoreGate/ReadCondHandle.h
"
23
24
#include <string>
25
26
#include "
CxxUtils/checker_macros.h
"
27
class
CaloTowerContainer
;
28
29
class
CaloTowerBuilderToolBase
:
public
AthAlgTool
,
30
virtual
public
ICaloTowerBuilderToolBase
31
{
32
public
:
33
35
CaloTowerBuilderToolBase
(
const
std::string& name,
const
std::string&
type
,
36
const
IInterface* parent);
37
virtual
~CaloTowerBuilderToolBase
();
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
92
SG::ReadHandleKey<CaloCellContainer>
m_cellContainerName
;
93
94
// ReadHandle to CaloDetDescr CDO in CondStore
95
SG::ReadCondHandleKey<CaloDetDescrManager>
m_caloMgrKey
{
this
,
"CaloDetDescrManager"
,
"CaloDetDescrManager"
};
96
97
98
private
:
99
CaloTowerSeg
m_theTowerSeg
;
100
101
};
102
#endif
AthAlgTool.h
CaloCellContainer.h
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloTowerSeg.h
ICaloTowerBuilderToolBase.h
ReadCondHandle.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
checker_macros.h
Define macros for attributes used to control the static checker.
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
CaloCellContainer
Container class for CaloCell.
Definition
CaloCellContainer.h:55
CaloTowerBuilderToolBase::~CaloTowerBuilderToolBase
virtual ~CaloTowerBuilderToolBase()
CaloTowerBuilderToolBase::m_theTowerSeg
CaloTowerSeg m_theTowerSeg
Definition
CaloTowerBuilderToolBase.h:99
CaloTowerBuilderToolBase::ATLAS_NOT_THREAD_SAFE
virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE() override
common initialization
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.
CaloTowerBuilderToolBase::initializeTool
virtual StatusCode initializeTool() override=0
CaloTowerBuilderToolBase::towerSeg
const CaloTowerSeg & towerSeg() const
Return the tower segmentation.
Definition
CaloTowerBuilderToolBase.cxx:50
CaloTowerBuilderToolBase::setTowerSeg
virtual void setTowerSeg(const CaloTowerSeg &theTowerSeg) override
Definition
CaloTowerBuilderToolBase.cxx:37
CaloTowerBuilderToolBase::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition
CaloTowerBuilderToolBase.h:95
CaloTowerBuilderToolBase::CaloTowerBuilderToolBase
CaloTowerBuilderToolBase(const std::string &name, const std::string &type, const IInterface *parent)
AlgTool constructor.
Definition
CaloTowerBuilderToolBase.cxx:14
CaloTowerBuilderToolBase::m_cellContainerName
SG::ReadHandleKey< CaloCellContainer > m_cellContainerName
Definition
CaloTowerBuilderToolBase.h:92
CaloTowerBuilderToolBase::execute
virtual StatusCode execute(const EventContext &ctx, CaloTowerContainer *theContainer)=0
Run tower building and add results to the tower container.
CaloTowerBuilderToolBase::getCells
const CaloCellContainer * getCells() const
Retrieve cells from StoreGate.
Definition
CaloTowerBuilderToolBase.cxx:59
CaloTowerContainer
Storable container class for CaloTower.
Definition
Calorimeter/CaloEvent/CaloEvent/CaloTowerContainer.h:77
CaloTowerSeg::SubSeg
A rectangular window within the segmentation.
Definition
CaloTowerSeg.h:202
CaloTowerSeg
Data object stores CaloTower segmentation.
Definition
CaloTowerSeg.h:37
ICaloTowerBuilderToolBase
Definition
ICaloTowerBuilderToolBase.h:37
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
initialize
void initialize()
Definition
run_EoverP.cxx:894
type
Generated on
for ATLAS Offline Software by
1.17.0