ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArL1Sim
src
LArCalibInject_timeSh.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 LARL1SIM_LARCALIBINJECT_TIMESH_H
6
#define LARL1SIM_LARCALIBINJECT_TIMESH_H
7
// +======================================================================+
8
// + +
9
// + Author ........: Denis O. Damazio +
10
// + Institut ......: BNL +
11
// + Creation date .: 18/11/2013 +
12
// + +
13
// +======================================================================+
14
//
15
// ....... include
16
//
17
18
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
19
#include "Gaudi/Property.h"
20
#include "GaudiKernel/ServiceHandle.h"
21
//
22
#include "
CaloDetDescr/CaloDetDescrManager.h
"
23
#include "
CaloIdentifier/CaloIdManager.h
"
24
#include "
LArCabling/LArOnOffIdMapping.h
"
25
#include "
LArDigitization/LArHitEMap.h
"
26
#include "
StoreGate/ReadCondHandleKey.h
"
27
#include "
StoreGate/ReadHandleKey.h
"
28
#include "
StoreGate/WriteHandleKey.h
"
29
//
30
#include "
LArElecCalib/ILArfSampl.h
"
31
47
48
class
LArCalibInject_timeSh
:
public
AthReentrantAlgorithm
{
49
//
50
// >>>>>>>> public methods
51
//
52
public
:
54
LArCalibInject_timeSh
(
const
std::string& name, ISvcLocator* pSvcLocator);
55
57
~LArCalibInject_timeSh
();
58
//
59
// ..... Gaudi algorithm hooks
60
//
62
StatusCode
initialize
();
66
StatusCode
execute
(
const
EventContext& context)
const
;
67
68
StatusCode
finalize
();
69
70
private
:
72
SG::ReadCondHandleKey<ILArfSampl>
m_fracSKey
{
73
this
,
"FracSKey"
,
"LArfSampl"
,
"SG Key of fSamplS conditions object"
};
74
75
template
<
class
T>
76
const
T*
retrieve
(
const
EventContext& context,
77
const
SG::ReadCondHandleKey<T>
& handleKey)
const
{
78
SG::ReadCondHandle<T>
handle(handleKey, context);
79
if
(not handle.isValid()) {
80
ATH_MSG_ERROR
(
"could not retrieve : "
<< handle.key());
81
return
nullptr
;
82
}
else
83
return
handle.cptr();
84
}
85
86
//
87
// >>>>>>>> private algorithm parts
88
//
89
91
SG::ReadHandleKey<LArHitEMap>
m_hitMapKey
{
this
,
"LArHitEMapKey"
,
"LArHitEMap"
,
92
"Input HitMap from cell hits"
};
93
94
SG::WriteHandleKey<LArHitEMap>
m_hitMapOutKey
{
95
this
,
"LArHitEMapOutKey"
,
"LArHitEMapOut"
,
"Output LArDigit container"
};
96
97
98
SG::ReadCondHandleKey<LArOnOffIdMapping>
m_cablingKey
{
99
this
,
"CablingKey"
,
"LArOnOffIdMap"
,
100
"SG Key of LArOnOffIdMapping object"
};
101
102
const
CaloCell_ID
*
m_calocell_id
;
103
SG::ReadCondHandleKey<CaloDetDescrManager>
m_caloMgrKey
{
104
this
,
"CaloDetDescrManager"
,
"CaloDetDescrManager"
,
105
"SG Key for CaloDetDescrManager in the Condition Store"
};
106
107
bool
m_seedLess
;
108
};
109
110
#endif
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition
AthMsgStreamMacros.h:33
AthReentrantAlgorithm.h
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloIdManager.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
LArCalibInject_timeSh::m_seedLess
bool m_seedLess
Definition
LArCalibInject_timeSh.h:107
LArCalibInject_timeSh::m_fracSKey
SG::ReadCondHandleKey< ILArfSampl > m_fracSKey
Property: Fraction of Energy Sampled (conditions input).
Definition
LArCalibInject_timeSh.h:72
LArCalibInject_timeSh::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
seedless option
Definition
LArCalibInject_timeSh.h:98
LArCalibInject_timeSh::LArCalibInject_timeSh
LArCalibInject_timeSh(const std::string &name, ISvcLocator *pSvcLocator)
constructor
Definition
LArCalibInject_timeSh.cxx:36
LArCalibInject_timeSh::m_hitMapOutKey
SG::WriteHandleKey< LArHitEMap > m_hitMapOutKey
output Lar Digits Cell container
Definition
LArCalibInject_timeSh.h:94
LArCalibInject_timeSh::execute
StatusCode execute(const EventContext &context) const
Create LAr object save in TES (2 containers: 1 EM, 1 hadronic).
Definition
LArCalibInject_timeSh.cxx:75
LArCalibInject_timeSh::initialize
StatusCode initialize()
Read ascii files for auxiliary data (puslse shapes, noise, etc...).
Definition
LArCalibInject_timeSh.cxx:53
LArCalibInject_timeSh::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition
LArCalibInject_timeSh.h:103
LArCalibInject_timeSh::retrieve
const T * retrieve(const EventContext &context, const SG::ReadCondHandleKey< T > &handleKey) const
Definition
LArCalibInject_timeSh.h:76
LArCalibInject_timeSh::~LArCalibInject_timeSh
~LArCalibInject_timeSh()
destructor
Definition
LArCalibInject_timeSh.cxx:47
LArCalibInject_timeSh::m_calocell_id
const CaloCell_ID * m_calocell_id
Definition
LArCalibInject_timeSh.h:102
LArCalibInject_timeSh::m_hitMapKey
SG::ReadHandleKey< LArHitEMap > m_hitMapKey
hit map
Definition
LArCalibInject_timeSh.h:91
LArCalibInject_timeSh::finalize
StatusCode finalize()
Definition
LArCalibInject_timeSh.cxx:139
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