ATLAS Offline Software
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 {
16 public:
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 
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  };
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
IH5GroupSvc.h
EventInfoWriterAlg::EventInfoWriterAlg
EventInfoWriterAlg(const std::string &name, ISvcLocator *loc)
Definition: EventInfoWriterAlg.cxx:8
EventInfoWriterAlg::m_primToType
Gaudi::Property< std::map< std::string, std::string > > m_primToType
Definition: EventInfoWriterAlg.h:27
SG::ReadHandleKey< xAOD::EventInfo >
EventInfoWriterAlg::m_primitives
Gaudi::Property< std::vector< std::string > > m_primitives
Definition: EventInfoWriterAlg.h:24
AthAlgorithm.h
EventInfoWriterAlg::m_writer
std::unique_ptr< EventInfoWriter > m_writer
Definition: EventInfoWriterAlg.h:38
EventInfoWriterAlg
Definition: EventInfoWriterAlg.h:15
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EventInfoWriterAlg::m_dsName
Gaudi::Property< std::string > m_dsName
Definition: EventInfoWriterAlg.h:30
EventInfoWriter.h
AthAlgorithm
Definition: AthAlgorithm.h:47
EventInfoWriterAlg::m_infoKey
SG::ReadHandleKey< xAOD::EventInfo > m_infoKey
Definition: EventInfoWriterAlg.h:33
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
EventInfo.h
EventInfoWriterAlg::finalize
virtual StatusCode finalize() override
Definition: EventInfoWriterAlg.cxx:45
EventInfoWriterAlg::execute
virtual StatusCode execute() override
Definition: EventInfoWriterAlg.cxx:38
EventInfoWriterAlg::initialize
virtual StatusCode initialize() override
Definition: EventInfoWriterAlg.cxx:15
EventInfoWriterAlg::m_output_svc
ServiceHandle< IH5GroupSvc > m_output_svc
Definition: EventInfoWriterAlg.h:35
ServiceHandle< IH5GroupSvc >