ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
12#include "GaudiKernel/ServiceHandle.h"
13
15{
16public:
17 EventInfoWriterAlg(const std::string& name, ISvcLocator* loc);
18
19 virtual StatusCode initialize() override;
20 virtual StatusCode execute() override;
21 virtual StatusCode finalize() override;
22
23private:
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 };
34 this, "eventInfo", "EventInfo", "Event info key"};
36 this, "output", "", "output file service"};
37
38 std::unique_ptr<EventInfoWriter> m_writer;
39
40};
41
42
43#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< std::vector< std::string > > m_primitives
SG::ReadHandleKey< xAOD::EventInfo > m_infoKey
virtual StatusCode execute() override
EventInfoWriterAlg(const std::string &name, ISvcLocator *loc)
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_dsName
std::unique_ptr< EventInfoWriter > m_writer
Gaudi::Property< std::map< std::string, std::string > > m_primToType
virtual StatusCode finalize() override
ServiceHandle< IH5GroupSvc > m_output_svc
Property holding a SG store/key/clid from which a ReadHandle is made.