ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloByteStream
src
TrigT1CaloDataAccessV2.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "GaudiKernel/MsgStream.h"
6
#include "GaudiKernel/StatusCode.h"
7
8
#include "
xaod/PpmByteStreamReadV1V2Tool.h
"
9
#include "
ByteStreamCnvSvcBase/IROBDataProviderSvc.h
"
10
#include "
TrigT1CaloDataAccessV2.h
"
11
12
#include "
ToString.h
"
13
#include "
xAODTrigL1Calo/TriggerTowerAuxContainer.h
"
14
15
namespace
LVL1BS
{
16
17
// Constructor
18
19
TrigT1CaloDataAccessV2::TrigT1CaloDataAccessV2
(
const
std::string& name
/*="TrigT1CaloDataAccessV2"*/
)
20
:
AsgTool
(name),
21
m_tool
(
"LVL1BS::PpmByteStreamReadV1V2Tool/PpmByteStreamReadV1V2Tool"
)
22
{
23
24
}
25
26
27
// Initialize
28
29
30
StatusCode
TrigT1CaloDataAccessV2::initialize
()
31
{
32
ATH_MSG_INFO
(
"Initializing "
<< name());
33
34
// Retrieve Tool
35
CHECK
(
m_tool
.retrieve());
36
37
return
StatusCode::SUCCESS;
38
}
39
40
41
42
// Return iterators to required trigger towers
43
44
StatusCode
TrigT1CaloDataAccessV2::loadTriggerTowers
(
xAOD::TriggerTowerContainer
& container)
45
{
46
CHECK
(
m_tool
->convert(Gaudi::Hive::currentContext(), &container));
47
return
StatusCode::SUCCESS;
48
}
49
50
StatusCode
TrigT1CaloDataAccessV2::PrintTriggerTowers
()
51
{
52
xAOD::TriggerTowerContainer
ttCollection;
53
xAOD::TriggerTowerAuxContainer
aux;
54
55
ttCollection.setStore(&aux);
56
CHECK
(
loadTriggerTowers
(ttCollection));
57
ATH_MSG_ALWAYS
(
ToString
(ttCollection));
58
return
StatusCode::SUCCESS;
59
}
60
61
}
// end namespace
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
ATH_MSG_ALWAYS
#define ATH_MSG_ALWAYS(x)
Definition
AthMsgStreamMacros.h:35
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
IROBDataProviderSvc.h
PpmByteStreamReadV1V2Tool.h
ToString.h
TrigT1CaloDataAccessV2.h
TriggerTowerAuxContainer.h
LVL1BS::TrigT1CaloDataAccessV2::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition
TrigT1CaloDataAccessV2.cxx:30
LVL1BS::TrigT1CaloDataAccessV2::TrigT1CaloDataAccessV2
TrigT1CaloDataAccessV2(const std::string &name)
Definition
TrigT1CaloDataAccessV2.cxx:19
LVL1BS::TrigT1CaloDataAccessV2::loadTriggerTowers
virtual StatusCode loadTriggerTowers(xAOD::TriggerTowerContainer &container)
Definition
TrigT1CaloDataAccessV2.cxx:44
LVL1BS::TrigT1CaloDataAccessV2::PrintTriggerTowers
virtual StatusCode PrintTriggerTowers()
Definition
TrigT1CaloDataAccessV2.cxx:50
LVL1BS::TrigT1CaloDataAccessV2::m_tool
ToolHandle< LVL1BS::PpmByteStreamReadV1V2Tool > m_tool
Tool that does the actual work.
Definition
TrigT1CaloDataAccessV2.h:40
asg::AsgTool::AsgTool
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition
AsgTool.cxx:58
LVL1BS
Definition
ZdcModifySlices.h:10
LVL1BS::ToString
std::string ToString(const xAOD::TriggerTower &tt)
Definition
ToString.cxx:23
xAOD::TriggerTowerContainer
TriggerTowerContainer_v2 TriggerTowerContainer
Define the latest version of the TriggerTower container.
Definition
TriggerTowerContainer.h:15
xAOD::TriggerTowerAuxContainer
TriggerTowerAuxContainer_v2 TriggerTowerAuxContainer
Define the latest version of the TriggerTower auxiliary container.
Definition
TriggerTowerAuxContainer.h:14
Generated on
for ATLAS Offline Software by
1.17.0