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 <string>
17 #include <memory> //unique_ptr
18 
20 namespace coral{
21  class AttributeListSpecification;
22 }
23 
24 
26 
27 public:
28 
31 
33  virtual StatusCode initialize() override;
34  virtual StatusCode finalize() override;
35 
36  // interface
37  bool isValid() const;
38  const coral::AttributeListSpecification& getAttributeSpecification() const;
39  std::unique_ptr<AthenaAttributeList> getAttributeListPtr(const xAOD::EventInfo& einfo) const;
40 
41 protected:
42 
44  StatusCode eventTag(AthenaAttributeList& eventTagCol, const xAOD::EventInfo& eventInfo) const;
45 
46  coral::AttributeListSpecification* m_attribListSpec{};
47 
48 };
49 
50 #endif // EVENTINFOATTLISTTOOL_H
EventInfoAttListTool
Definition: EventInfoAttListTool.h:25
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
finialize - called once at the end
Definition: EventInfoAttListTool.cxx:113
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:48
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:66
AthAlgTool
Definition: AthAlgTool.h:26
EventInfoAttListTool::m_attribListSpec
coral::AttributeListSpecification * m_attribListSpec
Definition: EventInfoAttListTool.h:46