ATLAS Offline Software
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 /*****************************************************************************
9 Name : EventInfoAttListTool.h
10 Purpose : Tool to buid the Global Event Tags
11 *****************************************************************************/
12 
14 #include "xAODEventInfo/EventInfo.h" //typedef
15 
16 #include <memory>
17 
19 namespace coral{
20  class AttributeListSpecification;
21 }
22 
23 
25 
26 public:
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 
40 protected:
41 
43  StatusCode eventTag(AthenaAttributeList& eventTagCol, const xAOD::EventInfo& eventInfo) const;
44 
45  coral::AttributeListSpecification* m_attribListSpec{};
46 
47 };
48 
49 #endif // EVENTINFOATTLISTTOOL_H
EventInfoAttListTool
Definition: EventInfoAttListTool.h:24
EventInfoAttListTool::isValid
bool isValid() const
EventInfoAttListTool::initialize
virtual StatusCode initialize() override
Overriding initialize, finalize and execute.
Definition: EventInfoAttListTool.cxx:22
EventInfoAttListTool::finalize
virtual StatusCode finalize() override
finalize - called once at the end
Definition: EventInfoAttListTool.cxx:112
coral
Definition: ISecondaryEventSelector.h:19
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
EventInfoAttListTool::getAttributeSpecification
const coral::AttributeListSpecification & getAttributeSpecification() const
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
Definition: PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:45
EventInfoAttListTool::getAttributeListPtr
std::unique_ptr< AthenaAttributeList > getAttributeListPtr(const xAOD::EventInfo &einfo) const
Definition: EventInfoAttListTool.cxx:47
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
EventInfo.h
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
EventInfoAttListTool::eventTag
StatusCode eventTag(AthenaAttributeList &eventTagCol, const xAOD::EventInfo &eventInfo) const
the various components to build their own fragments of tag
Definition: EventInfoAttListTool.cxx:65
AthAlgTool
Definition: AthAlgTool.h:26
EventInfoAttListTool::m_attribListSpec
coral::AttributeListSpecification * m_attribListSpec
Definition: EventInfoAttListTool.h:45