ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAlgorithms
TrigT2CaloCommon
src
TestLArRodDecoder.h
Go to the documentation of this file.
1
2
/*
3
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
4
*/
5
6
#ifndef TrigT2CaloCommon_LARRODDECODERTEST_h
7
#define TrigT2CaloCommon_LARRODDECODERTEST_h
8
9
//#include "AthenaBaseComps/AthReentrantAlgorithm.h"
10
#include "
AthenaBaseComps/AthAlgorithm.h
"
11
#include "
TrigT2CaloCommon/LArCellCont.h
"
12
13
#include "
AthenaKernel/SlotSpecificObj.h
"
14
#include "
LArByteStream/LArRodDecoder.h
"
15
#include "
LArRawUtils/LArTT_Selector.h
"
16
#include "
ByteStreamCnvSvcBase/IROBDataProviderSvc.h
"
17
#include "
StoreGate/ReadHandleKey.h
"
18
#include "
StoreGate/ReadCondHandleKey.h
"
19
#include "
CaloEvent/CaloBCIDAverage.h
"
20
#include "
LArRawConditions/LArMCSym.h
"
21
#include "
LArCabling/LArOnOffIdMapping.h
"
22
#include "
LArRecConditions/LArFebRodMapping.h
"
23
#include "
LArRecConditions/LArBadChannelCont.h
"
24
#include "
LArRecConditions/LArRoIMap.h
"
25
#include "
CaloDetDescr/CaloDetDescrManager.h
"
26
27
class
TestLArRodDecoder
28
:
public
::AthAlgorithm
29
{
30
public
:
31
32
TestLArRodDecoder
(
const
std::string& name, ISvcLocator* pSvcLocator );
33
virtual
~TestLArRodDecoder
();
34
virtual
StatusCode
initialize
()
override
;
35
virtual
StatusCode
finalize
()
override
;
36
virtual
StatusCode
execute
(
const
EventContext& context)
override
;
37
private
:
38
PublicToolHandle<LArRodDecoder>
m_larDecoder
{
this
,
"LArDecoderTool"
,
"LArRodDecoder/LArRodDecoder"
,
"Tool to decode LAr raw data"
};
39
40
//ToolHandle<GenericMonitoringTool> m_monTool{ this, "MonTool", "", "Tool to monitor performance of the service" };
41
42
ServiceHandle<IROBDataProviderSvc>
m_robDataProvider
{
this
,
"ROBDataProvider"
,
"ROBDataProviderSvc/ROBDataProviderSvc"
,
""
};
43
SG::ReadCondHandleKey<LArMCSym>
m_mcsymKey
{
this
,
"MCSymKey"
,
"LArMCSym"
,
"SG Key of LArMCSym object"
} ;
44
SG::ReadCondHandleKey<LArOnOffIdMapping>
m_onOffIdMappingKey
{
this
,
"CablingKey"
,
"LArOnOffIdMap"
,
"SG Key for LArOnOffIdMapping"
} ;
45
SG::ReadCondHandleKey<LArFebRodMapping>
m_febRodMappingKey
{
this
,
"RodFebKey"
,
"LArFebRodMap"
,
"SG Key for LArFebRodMapping"
} ;
46
SG::ReadCondHandleKey<LArBadChannelCont>
m_bcContKey
{
this
,
"LArBadChannelKey"
,
"LArBadChannel"
,
"Key of the LArBadChannelCont CDO"
};
47
SG::ReadCondHandleKey<LArRoIMap>
m_larRoIMapKey
{
this
,
"LArRoIMapKey"
,
"LArRoIMap"
,
"Key of the LArRoIMap CDO"
};
48
SG::ReadCondHandleKey<CaloDetDescrManager>
m_caloMgrKey
{
this
,
"CaloDetDescrManager"
,
"CaloDetDescrManager"
,
"SG Key for CaloDetDescrManager in the Condition Store"
};
49
Gaudi::Property<std::vector<uint32_t> >
m_vrodid32fullDet
{
this
,
"ROBIDs"
,{},
"ROD IDs to play with"
};
50
Gaudi::Property<bool>
m_printOut
{
this
,
"PrintDebug"
,
false
,
"Print Debug"
};
51
struct
EventCache
{
52
std::unique_ptr<LArCellCont>
larContainer
;
53
int
count
=0;
54
};
55
SG::SlotSpecificObj< EventCache >
m_testSlot
;
56
void
lateInit
(
const
EventContext& context );
57
mutable
std::once_flag
m_lateInitFlag
;
58
59
};
60
61
#endif
AthAlgorithm.h
SlotSpecificObj.h
Maintain a set of objects, one per slot.
CaloBCIDAverage.h
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
IROBDataProviderSvc.h
LArBadChannelCont.h
LArCellCont.h
LArFebRodMapping.h
LArMCSym.h
LArOnOffIdMapping.h
LArRoIMap.h
Mapping between calorimeter trigger id to offline/online Identifier.
LArRodDecoder.h
LArTT_Selector.h
ReadCondHandleKey.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::SlotSpecificObj
Maintain a set of objects, one per slot.
Definition
AthenaKernel/AthenaKernel/SlotSpecificObj.h:84
ServiceHandle
Definition
ClusterMakerTool.h:36
TestLArRodDecoder::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Definition
TestLArRodDecoder.h:42
TestLArRodDecoder::finalize
virtual StatusCode finalize() override
Definition
TestLArRodDecoder.cxx:42
TestLArRodDecoder::lateInit
void lateInit(const EventContext &context)
Definition
TestLArRodDecoder.cxx:25
TestLArRodDecoder::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition
TestLArRodDecoder.h:48
TestLArRodDecoder::~TestLArRodDecoder
virtual ~TestLArRodDecoder()
Definition
TestLArRodDecoder.cxx:8
TestLArRodDecoder::m_lateInitFlag
std::once_flag m_lateInitFlag
Definition
TestLArRodDecoder.h:57
TestLArRodDecoder::m_printOut
Gaudi::Property< bool > m_printOut
Definition
TestLArRodDecoder.h:50
TestLArRodDecoder::m_vrodid32fullDet
Gaudi::Property< std::vector< uint32_t > > m_vrodid32fullDet
Definition
TestLArRodDecoder.h:49
TestLArRodDecoder::m_testSlot
SG::SlotSpecificObj< EventCache > m_testSlot
Definition
TestLArRodDecoder.h:55
TestLArRodDecoder::initialize
virtual StatusCode initialize() override
Definition
TestLArRodDecoder.cxx:11
TestLArRodDecoder::m_febRodMappingKey
SG::ReadCondHandleKey< LArFebRodMapping > m_febRodMappingKey
Definition
TestLArRodDecoder.h:45
TestLArRodDecoder::m_onOffIdMappingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_onOffIdMappingKey
Definition
TestLArRodDecoder.h:44
TestLArRodDecoder::execute
virtual StatusCode execute(const EventContext &context) override
Execute method.
Definition
TestLArRodDecoder.cxx:49
TestLArRodDecoder::m_larDecoder
PublicToolHandle< LArRodDecoder > m_larDecoder
Definition
TestLArRodDecoder.h:38
TestLArRodDecoder::m_mcsymKey
SG::ReadCondHandleKey< LArMCSym > m_mcsymKey
Definition
TestLArRodDecoder.h:43
TestLArRodDecoder::TestLArRodDecoder
TestLArRodDecoder(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TestLArRodDecoder.cxx:4
TestLArRodDecoder::m_bcContKey
SG::ReadCondHandleKey< LArBadChannelCont > m_bcContKey
Definition
TestLArRodDecoder.h:46
TestLArRodDecoder::m_larRoIMapKey
SG::ReadCondHandleKey< LArRoIMap > m_larRoIMapKey
Definition
TestLArRodDecoder.h:47
TestLArRodDecoder::EventCache
Definition
TestLArRodDecoder.h:51
TestLArRodDecoder::EventCache::larContainer
std::unique_ptr< LArCellCont > larContainer
Definition
TestLArRodDecoder.h:52
TestLArRodDecoder::EventCache::count
int count
Definition
TestLArRodDecoder.h:53
Generated on
for ATLAS Offline Software by
1.17.0