ATLAS Offline Software
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:
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:
50 };
51 
52 } // end AthPoolEx namespace
53 
54 #endif
AthPoolEx::ReadMeta::metaDataStop
virtual StatusCode metaDataStop() override final
Function writing the collected metadata to the output.
Definition: ReadMeta.h:42
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
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
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
IMetaDataTool.h
This file contains the class definition for the IMetaDataTool class.
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:122
AthPoolEx::ReadMeta::~ReadMeta
virtual ~ReadMeta()=default
AthPoolEx::ReadMeta::initialize
virtual StatusCode initialize() override final
Gaudi AlgTool Interface method implementations:
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)
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:49
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 >
AthPoolEx::ReadMeta::handle
virtual void handle(const Incident &incident) override final
Incident service handle listening for BeginInputFile and EndInputFile.
Definition: ReadMeta.cxx:44