ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArROD
src
LArHITtoCell.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef LARROD_LARHITTOCELL_H
6
#define LARROD_LARHITTOCELL_H
7
// +======================================================================+
8
// + +
9
// + Author ........: Denis Oliveira Damazio +
10
// + Institute ......: BNL +
11
// + Creation date .: 29/04/2021 +
12
// + +
13
// +======================================================================+
14
//
15
// ....... include
16
//
17
18
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
19
#include "GaudiKernel/ToolHandle.h"
20
#include "
AthAllocators/DataPool.h
"
21
#include "
StoreGate/ReadHandleKey.h
"
22
#include "
StoreGate/ReadCondHandleKey.h
"
23
#include "
StoreGate/WriteHandleKey.h
"
24
#include "
CaloEvent/CaloCellContainer.h
"
25
#include "
CaloConditions/CaloNoiseSigmaDiff.h
"
26
#include "
CaloEvent/CaloBCIDAverage.h
"
27
#include "
LArDigitization/LArHitEMap.h
"
28
#include "
LArCabling/LArOnOffIdMapping.h
"
29
#include "
LArElecCalib/ILArfSampl.h
"
30
#include "
CaloDetDescr/CaloDetDescrManager.h
"
31
32
33
class
CaloSuperCellDetDescrManager
;
34
class
ICaloSuperCellIDTool
;
35
class
CaloDetDescrElement
;
36
class
CaloCell
;
37
class
CaloIdManager
;
38
class
LArOnline_SuperCellID
;
39
44
class
LArHITtoCell
:
public
AthReentrantAlgorithm
45
{
46
public
:
48
LArHITtoCell
(
const
std::string& name, ISvcLocator* pSvcLocator);
49
~LArHITtoCell
() {};
50
51
53
StatusCode
initialize
();
54
56
StatusCode
execute
(
const
EventContext& context)
const
;
57
58
private
:
59
60
SG::ReadCondHandleKey<LArOnOffIdMapping>
m_cablingKey
{
this
,
"ScCablingKey"
,
"LArOnOffIdMapSC"
,
"SG Key of SC LArOnOffIdMapping object"
};
61
63
SG::ReadCondHandleKey<ILArfSampl>
m_fracSKey
64
{
this
,
"FracSKey"
,
"LArfSamplSC"
,
"SG Key of fSamplS conditions object"
};
65
66
SG::ReadCondHandleKey<CaloDetDescrManager>
m_caloMgrKey
67
{
this
,
"CaloDetDescrManager"
,
"CaloDetDescrManager"
,
"SG Key for CaloDetDescrManager in the Condition Store"
};
68
69
SG::ReadCondHandleKey<CaloSuperCellDetDescrManager>
m_caloSuperCellMgrKey
70
{
this
,
"CaloSuperCellDetDescrManager"
,
"CaloSuperCellDetDescrManager"
,
"SG key of the resulting CaloSuperCellDetDescrManager"
};
71
73
ToolHandle<ICaloSuperCellIDTool>
m_scidtool
74
{
this
,
"SCIDTool"
,
"CaloSuperCellIDTool"
,
75
"Offline / supercell mapping tool."
};
76
78
SG::ReadHandleKey<LArHitEMap>
m_hitMapKey
{
this
,
"LArHitEMapKey"
,
"LArHitEMap"
};
79
81
SG::WriteHandleKey<CaloCellContainer>
m_cellKey
{
this
,
"CaloCellKey"
,
"SCellHITs"
,
82
"SG key of the output CaloCellContainer"
};
83
85
Gaudi::Property<bool>
m_isSC
{
this
,
"IsSuperCell"
,
true
,
86
"Is Super Cell"
};
87
89
const
CaloIdManager
*
m_calo_id_manager
;
90
92
const
CaloCell_SuperCell_ID
*
m_scHelper
=
nullptr
;
94
const
CaloCell_ID
*
m_OflHelper
=
nullptr
;
95
96
97
template
<
class
T>
98
const
T*
retrieve
(
const
EventContext& context,
const
SG::ReadCondHandleKey<T>
& handleKey)
const
{
99
SG::ReadCondHandle<T>
handle( handleKey, context);
100
if
( not handle.isValid() ) {
101
ATH_MSG_ERROR
(
"could not retrieve : "
<< handle.key() );
102
return
nullptr
;
103
}
else
return
handle.cptr();
104
}
105
106
107
};
108
109
110
#endif
// not LARROD_LARHITTOCELL_H
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition
AthMsgStreamMacros.h:33
AthReentrantAlgorithm.h
CaloBCIDAverage.h
CaloCellContainer.h
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloNoiseSigmaDiff.h
DataPool.h
ILArfSampl.h
LArHitEMap.h
LArOnOffIdMapping.h
ReadCondHandleKey.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
CaloCell_ID
Helper class for offline cell identifiers.
Definition
CaloCell_ID.h:34
CaloCell_SuperCell_ID
Helper class for offline supercell identifiers.
Definition
CaloCell_SuperCell_ID.h:45
CaloCell
Data object for each calorimeter readout cell.
Definition
CaloCell.h:57
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell.
Definition
Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloIdManager
This class initializes the Calo (LAr and Tile) offline identifiers.
Definition
CaloIdManager.h:45
CaloSuperCellDetDescrManager
Definition
CaloDetDescrManager.h:486
ICaloSuperCellIDTool
Interface for tool to map between calorimeter cells and supercells.
Definition
ICaloSuperCellIDTool.h:31
LArHITtoCell::~LArHITtoCell
~LArHITtoCell()
Definition
LArHITtoCell.h:49
LArHITtoCell::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition
LArHITtoCell.h:60
LArHITtoCell::m_isSC
Gaudi::Property< bool > m_isSC
if is SuperCell
Definition
LArHITtoCell.h:85
LArHITtoCell::LArHITtoCell
LArHITtoCell(const std::string &name, ISvcLocator *pSvcLocator)
Standard Gaudi algorithm constructor.
Definition
LArHITtoCell.cxx:31
LArHITtoCell::m_calo_id_manager
const CaloIdManager * m_calo_id_manager
Entry point for calorimeter ID helpers.
Definition
LArHITtoCell.h:89
LArHITtoCell::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition
LArHITtoCell.h:67
LArHITtoCell::m_cellKey
SG::WriteHandleKey< CaloCellContainer > m_cellKey
Property Output Container.
Definition
LArHITtoCell.h:81
LArHITtoCell::m_scidtool
ToolHandle< ICaloSuperCellIDTool > m_scidtool
Property: Offline / supercell mapping tool.
Definition
LArHITtoCell.h:74
LArHITtoCell::m_scHelper
const CaloCell_SuperCell_ID * m_scHelper
pointer to the offline TT helper
Definition
LArHITtoCell.h:92
LArHITtoCell::m_fracSKey
SG::ReadCondHandleKey< ILArfSampl > m_fracSKey
Property: Fraction of Energy Sampled (conditions input).
Definition
LArHITtoCell.h:64
LArHITtoCell::m_caloSuperCellMgrKey
SG::ReadCondHandleKey< CaloSuperCellDetDescrManager > m_caloSuperCellMgrKey
Definition
LArHITtoCell.h:70
LArHITtoCell::m_hitMapKey
SG::ReadHandleKey< LArHitEMap > m_hitMapKey
hit map
Definition
LArHITtoCell.h:78
LArHITtoCell::retrieve
const T * retrieve(const EventContext &context, const SG::ReadCondHandleKey< T > &handleKey) const
Definition
LArHITtoCell.h:98
LArHITtoCell::m_OflHelper
const CaloCell_ID * m_OflHelper
pointer to the offline id helper
Definition
LArHITtoCell.h:94
LArHITtoCell::initialize
StatusCode initialize()
Standard Gaudi initialize method.
Definition
LArHITtoCell.cxx:38
LArHITtoCell::execute
StatusCode execute(const EventContext &context) const
Algorithm execute method.
Definition
LArHITtoCell.cxx:72
LArOnline_SuperCellID
Definition
LArOnline_SuperCellID.h:21
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::ReadCondHandle
Definition
ReadCondHandle.h:40
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
Generated on
for ATLAS Offline Software by
1.17.0