ATLAS Offline Software
EventInfoTagBuilder.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EVENTTAGALGS_EVENTINFOTAGBUILDER_H
6 #define EVENTTAGALGS_EVENTINFOTAGBUILDER_H
7 
8 /*****************************************************************************
9 Name : EventInfoTagBuilder.h
10 Author : Ketevi A. Assamagan, Kristo Karr
11 Created : July 2004
12 Updated : February 2006
13 
14 DESCRIPTION:
15 
16 Retrieves event tag data from an AOD file, stores this data in an attribute
17 list object and records the attribute list object in the TDS for subsequent
18 inclusion in an event tag database.
19 
20 *****************************************************************************/
21 
30 #include <GaudiKernel/ToolHandle.h>
35 
36 #include "EventInfoAttListTool.h"
37 
39 {
40 public:
41 
44 
46  ~EventInfoTagBuilder() = default;
47 
48  virtual StatusCode initialize() override;
49  virtual StatusCode execute() override;
50 
51 private:
52 
54  ToolHandle<EventInfoAttListTool> m_tool{this, "Tool", "EventInfoAttListTool/EventInfoAttListTool", "EventInfoAttListTool used"};
55 
56  SG::ReadHandleKey<xAOD::EventInfo> m_evtKey{this, "EventInfoKey", "EventInfo", "xAOD::EventInfo ReadHandleKey"};
57  SG::ReadHandleKey<AthenaAttributeList> m_inputAttList{this, "InputList", "Input", "Input Athena attribute list ReadHandleKey"};
58  SG::WriteHandleKey<AthenaAttributeList> m_attributeListName{this, "AttributeList", "SimpleTag", "Output Athena attribute list WriteHandleKey"};
59 
60  Gaudi::Property<bool> m_propInput{this, "PropagateInput", true, "Propagate input attribute list to the output"};
61  Gaudi::Property<std::string> m_filter{this, "FilterString", "", "Filter input attribute list when propagating to the output"};
62 
63 };
64 
65 #endif // EVENTTAGALGS_EVENTINFOTAGBUILDER_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
EventInfoTagBuilder::m_evtKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtKey
Definition: EventInfoTagBuilder.h:56
EventInfoTagBuilder::m_propInput
Gaudi::Property< bool > m_propInput
Definition: EventInfoTagBuilder.h:60
EventInfoTagBuilder::~EventInfoTagBuilder
~EventInfoTagBuilder()=default
Destructor.
EventInfoAttListTool.h
EventInfoTagBuilder::m_attributeListName
SG::WriteHandleKey< AthenaAttributeList > m_attributeListName
Definition: EventInfoTagBuilder.h:58
SG::ReadHandleKey< xAOD::EventInfo >
AthAlgorithm.h
SG::WriteHandleKey< AthenaAttributeList >
EventInfoTagBuilder
Definition: EventInfoTagBuilder.h:39
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition: AthAlgorithm.h:47
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
EventInfoTagBuilder::m_filter
Gaudi::Property< std::string > m_filter
Definition: EventInfoTagBuilder.h:61
AthenaAttributeList.h
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
EventInfo.h
EventInfoTagBuilder::m_inputAttList
SG::ReadHandleKey< AthenaAttributeList > m_inputAttList
Definition: EventInfoTagBuilder.h:57
EventInfoTagBuilder::m_tool
ToolHandle< EventInfoAttListTool > m_tool
Global Event Tag Tool.
Definition: EventInfoTagBuilder.h:54
EventInfoTagBuilder::initialize
virtual StatusCode initialize() override
Definition: EventInfoTagBuilder.cxx:10
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
EventInfoTagBuilder::execute
virtual StatusCode execute() override
Definition: EventInfoTagBuilder.cxx:29