ATLAS Offline Software
Loading...
Searching...
No Matches
EventInfoAttListTool.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 EVENTINFOATTLISTTOOL_H
6#define EVENTINFOATTLISTTOOL_H
7
8/*****************************************************************************
9Name : EventInfoAttListTool.h
10Purpose : Tool to buid the Global Event Tags
11*****************************************************************************/
12
14#include "xAODEventInfo/EventInfo.h" //typedef
15
16#include <memory>
17
19namespace coral{
20 class AttributeListSpecification;
21}
22
23
25
26public:
27
30
32 virtual StatusCode initialize() override;
33 virtual StatusCode finalize() override;
34
35 // interface
36 bool isValid() const;
37 const coral::AttributeListSpecification& getAttributeSpecification() const;
38 std::unique_ptr<AthenaAttributeList> getAttributeListPtr(const xAOD::EventInfo& einfo) const;
39
40protected:
41
43 StatusCode eventTag(AthenaAttributeList& eventTagCol, const xAOD::EventInfo& eventInfo) const;
44
45 coral::AttributeListSpecification* m_attribListSpec{};
46
47};
48
49#endif // EVENTINFOATTLISTTOOL_H
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
An AttributeList represents a logical row of attributes in a metadata table.
coral::AttributeListSpecification * m_attribListSpec
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
const coral::AttributeListSpecification & getAttributeSpecification() const
bool isValid() const
virtual StatusCode initialize() override
Overriding initialize, finalize and execute.
StatusCode eventTag(AthenaAttributeList &eventTagCol, const xAOD::EventInfo &eventInfo) const
the various components to build their own fragments of tag
virtual StatusCode finalize() override
finalize - called once at the end
std::unique_ptr< AthenaAttributeList > getAttributeListPtr(const xAOD::EventInfo &einfo) const
EventInfo_v1 EventInfo
Definition of the latest event info version.