ATLAS Offline Software
Loading...
Searching...
No Matches
TrigT1CaloDataAccessV2.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
12#include "ToString.h"
14
15namespace LVL1BS {
16
17// Constructor
18
19TrigT1CaloDataAccessV2::TrigT1CaloDataAccessV2(const std::string& name /*="TrigT1CaloDataAccessV2"*/)
20 : AsgTool(name),
21 m_tool("LVL1BS::PpmByteStreamReadV1V2Tool/PpmByteStreamReadV1V2Tool")
22{
23
24}
25
26
27// Initialize
28
29
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
45{
46 CHECK(m_tool->convert(&container));
47 return StatusCode::SUCCESS;
48}
49
51{
52 xAOD::TriggerTowerContainer ttCollection;
54
55 ttCollection.setStore(&aux);
56 CHECK(loadTriggerTowers(ttCollection));
57 ATH_MSG_ALWAYS(ToString(ttCollection));
58 return StatusCode::SUCCESS;
59}
60
61} // end namespace
#define ATH_MSG_INFO(x)
#define ATH_MSG_ALWAYS(x)
#define CHECK(...)
Evaluate an expression and check for errors.
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
TrigT1CaloDataAccessV2(const std::string &name)
virtual StatusCode loadTriggerTowers(xAOD::TriggerTowerContainer &container)
ToolHandle< LVL1BS::PpmByteStreamReadV1V2Tool > m_tool
Tool that does the actual work.
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
std::string ToString(const xAOD::TriggerTower &tt)
Definition ToString.cxx:23
TriggerTowerContainer_v2 TriggerTowerContainer
Define the latest version of the TriggerTower container.
TriggerTowerAuxContainer_v2 TriggerTowerAuxContainer
Define the latest version of the TriggerTower auxiliary container.