ATLAS Offline Software
Loading...
Searching...
No Matches
IParticleWriterAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef IPARTICLE_WRITER_ALG_H
6#define IPARTICLE_WRITER_ALG_H
7
10
13#include "GaudiKernel/ServiceHandle.h"
14
16{
17public:
18 IParticleWriterAlg(const std::string& name, ISvcLocator* loc);
19
20 virtual StatusCode initialize() override;
21 virtual StatusCode execute() override;
22 virtual StatusCode finalize() override;
23
24private:
25 Gaudi::Property<std::vector<std::string>> m_primitives {
26 this, "primitives", {}, "List of primatives to print"
27 };
28 Gaudi::Property<std::map<std::string, std::string>> m_primToType {
29 this, "primitiveToType", {}, "Map from primitive to type"
30 };
31 Gaudi::Property<std::map<std::string, std::string>> m_primToAssociation {
32 this, "primitiveToAssociation", {}, "Map from primitive to association"
33 };
34 Gaudi::Property<std::string> m_dsName {
35 this, "datasetName", "", "Name of output dataset"
36 };
37 Gaudi::Property<unsigned long long> m_maxSize {
38 this, "maximumSize", 10, "Maximum number of particles to store"
39 };
40 Gaudi::Property<std::string> m_arrayFormat {
41 this, "arrayFormat", "PADDED", "Array format"
42 };
44 this, "container", "", "IParticle container key"};
46 this, "output", "", "output file service"};
47
48 std::unique_ptr<IParticleWriter> m_writer;
49
50};
51
52
53#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< std::map< std::string, std::string > > m_primToType
virtual StatusCode execute() override
virtual StatusCode finalize() override
Gaudi::Property< std::string > m_arrayFormat
Gaudi::Property< std::string > m_dsName
Gaudi::Property< unsigned long long > m_maxSize
Gaudi::Property< std::map< std::string, std::string > > m_primToAssociation
std::unique_ptr< IParticleWriter > m_writer
IParticleWriterAlg(const std::string &name, ISvcLocator *loc)
SG::ReadHandleKey< xAOD::IParticleContainer > m_partKey
virtual StatusCode initialize() override
ServiceHandle< IH5GroupSvc > m_output_svc
Gaudi::Property< std::vector< std::string > > m_primitives
Property holding a SG store/key/clid from which a ReadHandle is made.