ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetH5Writer
src
EventInfoWriterAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef EVENT_INFO_WRITER_ALG_H
5
#define EVENT_INFO_WRITER_ALG_H
6
7
#include "
JetH5Writer/EventInfoWriter.h
"
8
#include "
HDF5Utils/IH5GroupSvc.h
"
9
10
#include "
AthenaBaseComps/AthAlgorithm.h
"
11
#include "
xAODEventInfo/EventInfo.h
"
12
#include "GaudiKernel/ServiceHandle.h"
13
14
class
EventInfoWriterAlg
:
public
AthAlgorithm
15
{
16
public
:
17
EventInfoWriterAlg
(
const
std::string& name, ISvcLocator* loc);
18
19
virtual
StatusCode
initialize
()
override
;
20
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
21
virtual
StatusCode
finalize
()
override
;
22
23
private
:
24
Gaudi::Property<std::vector<std::string>>
m_primitives
{
25
this
,
"primitives"
, {},
"List of primatives to print"
26
};
27
Gaudi::Property<std::map<std::string, std::string>>
m_primToType
{
28
this
,
"primitiveToType"
, {},
"Map from primitive to type"
29
};
30
Gaudi::Property<std::string>
m_dsName
{
31
this
,
"datasetName"
,
""
,
"Name of output dataset"
32
};
33
SG::ReadHandleKey<xAOD::EventInfo>
m_infoKey
{
34
this
,
"eventInfo"
,
"EventInfo"
,
"Event info key"
};
35
ServiceHandle<IH5GroupSvc>
m_output_svc
{
36
this
,
"output"
,
""
,
"output file service"
};
37
38
std::unique_ptr<EventInfoWriter>
m_writer
;
39
40
};
41
42
43
#endif
AthAlgorithm.h
IH5GroupSvc.h
EventInfoWriter.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
EventInfoWriterAlg::m_primitives
Gaudi::Property< std::vector< std::string > > m_primitives
Definition
EventInfoWriterAlg.h:24
EventInfoWriterAlg::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
EventInfoWriterAlg.cxx:38
EventInfoWriterAlg::m_infoKey
SG::ReadHandleKey< xAOD::EventInfo > m_infoKey
Definition
EventInfoWriterAlg.h:33
EventInfoWriterAlg::EventInfoWriterAlg
EventInfoWriterAlg(const std::string &name, ISvcLocator *loc)
Definition
EventInfoWriterAlg.cxx:8
EventInfoWriterAlg::initialize
virtual StatusCode initialize() override
Definition
EventInfoWriterAlg.cxx:15
EventInfoWriterAlg::m_dsName
Gaudi::Property< std::string > m_dsName
Definition
EventInfoWriterAlg.h:30
EventInfoWriterAlg::m_writer
std::unique_ptr< EventInfoWriter > m_writer
Definition
EventInfoWriterAlg.h:38
EventInfoWriterAlg::m_primToType
Gaudi::Property< std::map< std::string, std::string > > m_primToType
Definition
EventInfoWriterAlg.h:27
EventInfoWriterAlg::finalize
virtual StatusCode finalize() override
Definition
EventInfoWriterAlg.cxx:45
EventInfoWriterAlg::m_output_svc
ServiceHandle< IH5GroupSvc > m_output_svc
Definition
EventInfoWriterAlg.h:35
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0