ATLAS Offline Software
Loading...
Searching...
No Matches
ZdcDataAccessV2.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "GaudiKernel/MsgStream.h"
6#include "GaudiKernel/StatusCode.h"
7
11
14
15//namespace LVL1BS {
16
17// Constructor
18
19ZdcDataAccessV2::ZdcDataAccessV2(const std::string& name /*="ZdcDataAccessV2"*/)
20 : AsgTool(name),
21 m_tool("ZdcByteStreamReadV1V2Tool/ZdcByteStreamReadV1V2Tool")
22{
23
24}
25
26
27// Initialize
28
30{
31 // Retrieve Tool
32 CHECK(m_tool.retrieve());
33
34 return StatusCode::SUCCESS;
35}
36
37
38
39// Return iterators to required trigger towers
40
42{
43 CHECK((m_tool->convert(&container)));
44 return StatusCode::SUCCESS;
45}
46
48{
49 xAOD::TriggerTowerContainer ttCollection;
51
52 ttCollection.setStore(&aux);
53 CHECK(loadTriggerTowers(ttCollection));
54 ATH_MSG_ALWAYS(ZdcToString(ttCollection));
55 return StatusCode::SUCCESS;
56}
57
58//} // end namespace
#define ATH_MSG_ALWAYS(x)
#define CHECK(...)
Evaluate an expression and check for errors.
std::string ZdcToString(const std::vector< T > &vv)
virtual StatusCode PrintTriggerTowers()
ZdcDataAccessV2(const std::string &name)
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
ToolHandle< ZdcByteStreamReadV1V2Tool > m_tool
Tool that does the actual work.
virtual StatusCode loadTriggerTowers(xAOD::TriggerTowerContainer &container)
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
TriggerTowerContainer_v2 TriggerTowerContainer
Define the latest version of the TriggerTower container.
TriggerTowerAuxContainer_v2 TriggerTowerAuxContainer
Define the latest version of the TriggerTower auxiliary container.