ATLAS Offline Software
Loading...
Searching...
No Matches
CopyEventStreamInfo.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef COPYEVENTSTREAMINFO_H
6#define COPYEVENTSTREAMINFO_H
7
12
13#include "GaudiKernel/ServiceHandle.h"
14
16
19
20#include <string>
21
22class StoreGateSvc;
23
27class CopyEventStreamInfo : public extends<::AthAlgTool, IMetaDataTool> {
28public:
30 CopyEventStreamInfo(const std::string& type, const std::string& name, const IInterface* parent);
32 virtual ~CopyEventStreamInfo() = default;
33
35 virtual StatusCode initialize() override final;
36
38 virtual StatusCode beginInputFile(const SG::SourceID& = "Serial") override final;
39
42 virtual StatusCode endInputFile(const SG::SourceID& = "Serial") override final;
43
45 virtual StatusCode metaDataStop() override final;
46
49 Gaudi::Property<std::vector<std::string>> m_keys{this, "Keys", {},
50 "(optional) list of keys to copy, all if empty. default: empty"};
51
53 ServiceHandle<IAthMetaDataSvc> m_metaDataSvc{this, "MetaDataSvc", "MetaDataSvc"};
55 ServiceHandle<StoreGateSvc> m_inputMetaDataStore{this, "InputMetaDataStore", "StoreGateSvc/InputMetaDataStore"};
56};
57#endif
This file contains the class definition for the IAthMetaDataSvc class.
This file contains the class definition for the IMetaDataTool class.
CopyEventStreamInfo(const std::string &type, const std::string &name, const IInterface *parent)
Standard AlgTool Constructor.
Gaudi::Property< std::vector< std::string > > m_keys
(optional) list of keys to copy, all if empty, default: empty
virtual StatusCode metaDataStop() override final
Function called when the tool should write out its metadata.
ServiceHandle< StoreGateSvc > m_inputMetaDataStore
MetaDataStore for input.
virtual StatusCode initialize() override final
AthAlgTool Interface method implementations:
virtual StatusCode endInputFile(const SG::SourceID &="Serial") override final
Function called when the currently open input file got completely processed.
virtual StatusCode beginInputFile(const SG::SourceID &="Serial") override final
Function called when a new input file is opened.
virtual ~CopyEventStreamInfo()=default
Destructor.
ServiceHandle< IAthMetaDataSvc > m_metaDataSvc
Access to output MetaDataStore through MetaDataSvc (using MetaContainers)
Support class for PropertyMgr.
Definition Property.h:23
The Athena Transient Store API.
=============================================================================
Forward declaration.
STL namespace.
#define private