ATLAS Offline Software
ByteStreamMetadataTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef BYTESTREAMMETADATATOOL_H
6 #define BYTESTREAMMETADATATOOL_H
7 
15 #include "GaudiKernel/ServiceHandle.h"
17 #include "AthenaKernel/SourceID.h"
19 
20 #include <string>
21 #include <set>
22 
23 class StoreGateSvc;
24 
25 
30 : public ::AthAlgTool,
31  virtual public IMetaDataTool
32 {
33 public:
35  ByteStreamMetadataTool(const std::string& type, const std::string& name,
36  const IInterface* parent);
37 
38 
40  virtual ~ByteStreamMetadataTool();
41 
42 
46 
47 
49  virtual StatusCode beginInputFile();
50  virtual StatusCode beginInputFile(const SG::SourceID&);
51  virtual StatusCode metaDataStop ();
52  virtual StatusCode metaDataStop (const SG::SourceID&);
53  virtual StatusCode endInputFile ();
54  virtual StatusCode endInputFile (const SG::SourceID&);
55 
56 
57 private:
61 
62  std::set<std::string> keysFromInput() const;
63 };
64 
65 #endif // BYTESTREAMMETADATATOOL_H
ByteStreamMetadataTool::ByteStreamMetadataTool
ByteStreamMetadataTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Service Constructor.
Definition: ByteStreamMetadataTool.cxx:17
ByteStreamMetadataTool::finalize
StatusCode finalize()
Definition: ByteStreamMetadataTool.cxx:50
IMetaDataTool.h
This file contains the class definition for the IMetaDataTool class.
ByteStreamMetadataTool::endInputFile
virtual StatusCode endInputFile()
Definition: ByteStreamMetadataTool.cxx:162
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:125
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
ByteStreamMetadataTool::StoreGateSvc_t
ServiceHandle< StoreGateSvc > StoreGateSvc_t
Definition: ByteStreamMetadataTool.h:58
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SourceID.h
Type used to identify a metadata source.
ByteStreamMetadataTool::initialize
StatusCode initialize()
Gaudi Service Interface method implementations:
Definition: ByteStreamMetadataTool.cxx:36
ByteStreamMetadataTool::m_metadataStore
StoreGateSvc_t m_metadataStore
Definition: ByteStreamMetadataTool.h:59
ByteStreamMetadataTool
This class provides the MetaDataTool for ByteStreamMetadata objects.
Definition: ByteStreamMetadataTool.h:32
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
SG::SourceID
std::string SourceID
Definition: AthenaKernel/AthenaKernel/SourceID.h:23
ByteStreamMetadataTool::m_inputStore
StoreGateSvc_t m_inputStore
Definition: ByteStreamMetadataTool.h:60
ByteStreamMetadataTool::beginInputFile
virtual StatusCode beginInputFile()
Incident service handle listening for BeginInputFile and EndInputFile.
Definition: ByteStreamMetadataTool.cxx:67
ByteStreamMetadataTool::keysFromInput
std::set< std::string > keysFromInput() const
Definition: ByteStreamMetadataTool.cxx:138
IMetaDataTool
This class provides the interface for MetaDataTools.
Definition: IMetaDataTool.h:21
AthAlgTool
Definition: AthAlgTool.h:26
ByteStreamMetadataTool::~ByteStreamMetadataTool
virtual ~ByteStreamMetadataTool()
Destructor.
Definition: ByteStreamMetadataTool.cxx:30
ByteStreamMetadataTool::metaDataStop
virtual StatusCode metaDataStop()
Function called when the tool should prepare to write its metadata.
Definition: ByteStreamMetadataTool.cxx:176
ServiceHandle< StoreGateSvc >