ATLAS Offline Software
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 
13 #include "GaudiKernel/ServiceHandle.h"
14 
16 
19 
20 #include <string>
21 
22 class StoreGateSvc;
23 
27 class CopyEventStreamInfo : public extends<::AthAlgTool, IMetaDataTool> {
28 public:
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 
47 private:
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
CopyEventStreamInfo::metaDataStop
virtual StatusCode metaDataStop() override final
Function called when the tool should write out its metadata.
Definition: CopyEventStreamInfo.cxx:91
CopyEventStreamInfo::initialize
virtual StatusCode initialize() override final
AthAlgTool Interface method implementations:
Definition: CopyEventStreamInfo.cxx:23
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
IAthMetaDataSvc.h
This file contains the class definition for the IAthMetaDataSvc class.
CopyEventStreamInfo::m_inputMetaDataStore
ServiceHandle< StoreGateSvc > m_inputMetaDataStore
MetaDataStore for input.
Definition: CopyEventStreamInfo.h:55
IMetaDataTool.h
This file contains the class definition for the IMetaDataTool class.
CopyEventStreamInfo::~CopyEventStreamInfo
virtual ~CopyEventStreamInfo()=default
Destructor.
CopyEventStreamInfo::m_keys
Gaudi::Property< std::vector< std::string > > m_keys
(optional) list of keys to copy, all if empty, default: empty
Definition: CopyEventStreamInfo.h:49
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
Property
Support class for PropertyMgr.
Definition: Property.h:23
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:120
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
vector
Definition: MultiHisto.h:13
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
columnar::final
CM final
Definition: ColumnAccessor.h:106
CopyEventStreamInfo::m_metaDataSvc
ServiceHandle< IAthMetaDataSvc > m_metaDataSvc
Access to output MetaDataStore through MetaDataSvc (using MetaContainers)
Definition: CopyEventStreamInfo.h:53
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
CopyEventStreamInfo::CopyEventStreamInfo
CopyEventStreamInfo(const std::string &type, const std::string &name, const IInterface *parent)
Standard AlgTool Constructor.
Definition: CopyEventStreamInfo.cxx:17
CopyEventStreamInfo
This class provides an algorithm to make the EventStreamInfo object and update it.
Definition: CopyEventStreamInfo.h:27
CopyEventStreamInfo::endInputFile
virtual StatusCode endInputFile(const SG::SourceID &="Serial") override final
Function called when the currently open input file got completely processed.
Definition: CopyEventStreamInfo.cxx:87
SG::SourceID
std::string SourceID
Definition: AthenaKernel/AthenaKernel/SourceID.h:25
Gaudi
=============================================================================
Definition: CaloGPUClusterAndCellDataMonitorOptions.h:273
private
#define private
Definition: xAODTruthCnvAlg.h:20
CopyEventStreamInfo::beginInputFile
virtual StatusCode beginInputFile(const SG::SourceID &="Serial") override final
Function called when a new input file is opened.
Definition: CopyEventStreamInfo.cxx:33
ServiceHandle< IAthMetaDataSvc >