ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
AthenaPoolExample
AthenaPoolExampleAlgorithms
src
ReadMeta.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 ATHENAPOOLEXAMPLEALGORITHMS_READMETA_H
6
#define ATHENAPOOLEXAMPLEALGORITHMS_READMETA_H
7
12
13
#include "GaudiKernel/ServiceHandle.h"
14
#include "GaudiKernel/IIncidentListener.h"
15
#include "
AthenaBaseComps/AthAlgTool.h
"
16
#include "
AthenaKernel/IMetaDataTool.h
"
17
18
class
StoreGateSvc
;
19
20
namespace
AthPoolEx
{
21
25
class
ReadMeta
:
public
extends<AthAlgTool, IMetaDataTool, IIncidentListener> {
26
public
:
27
ReadMeta
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent);
28
virtual
~ReadMeta
() =
default
;
29
30
public
:
32
virtual
StatusCode
initialize
() override final;
33
35
virtual StatusCode
beginInputFile
(
const
SG
::SourceID&) override final;
36
39
virtual StatusCode
endInputFile
(
const
SG
::SourceID&) override final {
return
StatusCode::SUCCESS;}
40
42
virtual
StatusCode
metaDataStop
() override final {
return
StatusCode::SUCCESS;}
43
45
virtual
void
handle
(
const
Incident& incident)
override
final
;
46
47
private
:
48
ServiceHandle<StoreGateSvc>
m_pMetaDataStore
;
49
ServiceHandle<StoreGateSvc>
m_pInputStore
;
50
};
51
52
}
// end AthPoolEx namespace
53
54
#endif
AthAlgTool.h
IMetaDataTool.h
This file contains the class definition for the IMetaDataTool class.
AthPoolEx::ReadMeta::endInputFile
virtual StatusCode endInputFile(const SG::SourceID &) override final
Function called when the currently open input file got completely processed.
Definition
ReadMeta.h:39
AthPoolEx::ReadMeta::beginInputFile
virtual StatusCode beginInputFile(const SG::SourceID &) override final
Function called when a new input file is opened.
Definition
ReadMeta.cxx:54
AthPoolEx::ReadMeta::m_pMetaDataStore
ServiceHandle< StoreGateSvc > m_pMetaDataStore
Definition
ReadMeta.h:48
AthPoolEx::ReadMeta::ReadMeta
ReadMeta(const std::string &type, const std::string &name, const IInterface *parent)
Definition
ReadMeta.cxx:23
AthPoolEx::ReadMeta::~ReadMeta
virtual ~ReadMeta()=default
AthPoolEx::ReadMeta::handle
virtual void handle(const Incident &incident) override final
Incident service handle listening for BeginInputFile and EndInputFile.
Definition
ReadMeta.cxx:44
AthPoolEx::ReadMeta::m_pInputStore
ServiceHandle< StoreGateSvc > m_pInputStore
Definition
ReadMeta.h:49
AthPoolEx::ReadMeta::initialize
virtual StatusCode initialize() override final
Gaudi AlgTool Interface method implementations:
Definition
ReadMeta.cxx:29
AthPoolEx::ReadMeta::metaDataStop
virtual StatusCode metaDataStop() override final
Function writing the collected metadata to the output.
Definition
ReadMeta.h:42
ServiceHandle
Definition
ClusterMakerTool.h:36
StoreGateSvc
The Athena Transient Store API.
Definition
StoreGateSvc.h:120
const
AthPoolEx
Definition
PassNoneFilter.h:16
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
type
Generated on
for ATLAS Offline Software by
1.17.0