ATLAS Offline Software
CopyEventStreamInfo.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 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 ::AthAlgTool, virtual public IMetaDataTool {
28 public:
30  CopyEventStreamInfo(const std::string& type, const std::string& name, const IInterface* parent);
32  virtual ~CopyEventStreamInfo();
33 
37 
39  virtual StatusCode beginInputFile(const SG::SourceID& = "Serial");
40 
43  virtual StatusCode endInputFile(const SG::SourceID& = "Serial");
44 
46  virtual StatusCode metaDataStop();
47 
48 private:
50  Gaudi::Property<std::vector<std::string> > m_keys{this, "Keys", {},
51  "(optional) list of keys to copy, all if empty. default: empty"};
52 
57 };
58 #endif
IAthMetaDataSvc.h
This file contains the class definition for the IAthMetaDataSvc class.
CopyEventStreamInfo::initialize
StatusCode initialize()
AthAlgTool Interface method implementations:
Definition: CopyEventStreamInfo.cxx:29
CopyEventStreamInfo::m_inputMetaDataStore
ServiceHandle< StoreGateSvc > m_inputMetaDataStore
MetaDataStore for input.
Definition: CopyEventStreamInfo.h:56
IMetaDataTool.h
This file contains the class definition for the IMetaDataTool class.
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:50
CopyEventStreamInfo::beginInputFile
virtual StatusCode beginInputFile(const SG::SourceID &="Serial")
Function called when a new input file is opened.
Definition: CopyEventStreamInfo.cxx:56
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CopyEventStreamInfo::~CopyEventStreamInfo
virtual ~CopyEventStreamInfo()
Destructor.
Definition: CopyEventStreamInfo.cxx:26
CopyEventStreamInfo::m_metaDataSvc
ServiceHandle< IAthMetaDataSvc > m_metaDataSvc
Access to output MetaDataStore through MetaDataSvc (using MetaContainers)
Definition: CopyEventStreamInfo.h:54
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
CopyEventStreamInfo::metaDataStop
virtual StatusCode metaDataStop()
Function called when the tool should write out its metadata.
Definition: CopyEventStreamInfo.cxx:133
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")
Function called when the currently open input file got completely processed.
Definition: CopyEventStreamInfo.cxx:129
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
SG::SourceID
std::string SourceID
Definition: AthenaKernel/AthenaKernel/SourceID.h:23
IMetaDataTool
This class provides the interface for MetaDataTools.
Definition: IMetaDataTool.h:21
CopyEventStreamInfo::finalize
StatusCode finalize()
Definition: CopyEventStreamInfo.cxx:43
AthAlgTool
Definition: AthAlgTool.h:26
ServiceHandle< IAthMetaDataSvc >