Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
13 #include "GaudiKernel/ServiceHandle.h"
14 #include "GaudiKernel/IIncidentListener.h"
17 
18 class StoreGateSvc;
19 
20 namespace AthPoolEx {
21 
25 class ReadMeta : public extends<AthAlgTool, IMetaDataTool, IIncidentListener> {
26 public: // Constructor and Destructor
28  ReadMeta(const std::string& type, const std::string& name, const IInterface* parent);
30  virtual ~ReadMeta();
31 
32 public:
34  virtual StatusCode initialize() override;
35 
37  virtual StatusCode beginInputFile(const SG::SourceID&) override;
38 
41  virtual StatusCode endInputFile(const SG::SourceID&) override {return StatusCode::SUCCESS;}
42 
44  virtual StatusCode metaDataStop() override {return StatusCode::SUCCESS;}
45 
47  virtual void handle(const Incident& incident) override;
48 
49 private:
52 };
53 
54 } // end AthPoolEx namespace
55 
56 #endif
AthPoolEx::ReadMeta::initialize
virtual StatusCode initialize() override
Gaudi AlgTool Interface method implementations:
Definition: ReadMeta.cxx:32
AthPoolEx::ReadMeta::handle
virtual void handle(const Incident &incident) override
Incident service handle listening for BeginInputFile and EndInputFile.
Definition: ReadMeta.cxx:47
AthPoolEx::ReadMeta::m_pMetaDataStore
ServiceHandle< StoreGateSvc > m_pMetaDataStore
Definition: ReadMeta.h:50
AthPoolEx::ReadMeta::beginInputFile
virtual StatusCode beginInputFile(const SG::SourceID &) override
Function called when a new input file is opened.
Definition: ReadMeta.cxx:57
IMetaDataTool.h
This file contains the class definition for the IMetaDataTool class.
AthPoolEx::ReadMeta::endInputFile
virtual StatusCode endInputFile(const SG::SourceID &) override
Function called when the currently open input file got completely processed.
Definition: ReadMeta.h:41
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:124
AthPoolEx::ReadMeta::metaDataStop
virtual StatusCode metaDataStop() override
Function writing the collected metadata to the output.
Definition: ReadMeta.h:44
AthPoolEx::ReadMeta::~ReadMeta
virtual ~ReadMeta()
Destructor.
Definition: ReadMeta.cxx:29
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthPoolEx::ReadMeta::ReadMeta
ReadMeta(const std::string &type, const std::string &name, const IInterface *parent)
Standard Service Constructor.
Definition: ReadMeta.cxx:23
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
AthPoolEx::ReadMeta
This class provides an example for reading in file meta data objects from Pool.
Definition: ReadMeta.h:25
AthPoolEx::ReadMeta::m_pInputStore
ServiceHandle< StoreGateSvc > m_pInputStore
Definition: ReadMeta.h:51
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
SG::SourceID
std::string SourceID
Definition: AthenaKernel/AthenaKernel/SourceID.h:25
AthPoolEx
Definition: PassNoneFilter.h:16
ServiceHandle< StoreGateSvc >