ATLAS Offline Software
PhysicsAnalysis
AnalysisCommon
HDF5Utils
src
H5FileSvc.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
H5FileSvc.h
"
5
#include "H5Cpp.h"
6
7
H5FileSvc::H5FileSvc
(
const
std::string&
name
, ISvcLocator* pSvcLocator):
8
base_class(
name
, pSvcLocator)
9
{
10
}
11
12
H5FileSvc::~H5FileSvc
() =
default
;
13
14
StatusCode
H5FileSvc::initialize
() {
15
if
(
m_file_path
.empty()) {
16
return
StatusCode::FAILURE;
17
}
18
m_file
= std::make_unique<H5::H5File>(
m_file_path
, H5F_ACC_TRUNC);
19
return
StatusCode::SUCCESS;
20
}
21
22
H5::Group
*
H5FileSvc::group
() {
23
return
m_file
.get();
24
}
H5FileSvc::m_file_path
Gaudi::Property< std::string > m_file_path
Definition:
H5FileSvc.h:28
TrigDefs::Group
Group
Properties of a chain group.
Definition:
GroupProperties.h:13
H5FileSvc::m_file
std::unique_ptr< H5::H5File > m_file
Definition:
H5FileSvc.h:27
H5FileSvc::H5FileSvc
H5FileSvc(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
H5FileSvc.cxx:7
H5FileSvc.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
H5FileSvc::~H5FileSvc
~H5FileSvc()
H5FileSvc::group
virtual H5::Group * group() override
Definition:
H5FileSvc.cxx:22
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
H5FileSvc::initialize
virtual StatusCode initialize() override
Definition:
H5FileSvc.cxx:14
Generated on Thu Nov 7 2024 21:16:01 for ATLAS Offline Software by
1.8.18