Geant4
11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
GIDI_externalFiles.cc
Go to the documentation of this file.
1
/*
2
# <<BEGIN-copyright>>
3
# Copyright 2019, Lawrence Livermore National Security, LLC.
4
# This file is part of the gidiplus package (https://github.com/LLNL/gidiplus).
5
# gidiplus is licensed under the MIT license (see https://opensource.org/licenses/MIT).
6
# SPDX-License-Identifier: MIT
7
# <<END-copyright>>
8
*/
9
10
#include "
GIDI.hpp
"
11
12
namespace
GIDI
{
13
14
namespace
ExternalFiles
{
15
16
/*!
17
* loop over external files, if any represent binary store then open up HAPI::DataManager for that file
18
*/
19
void
Suite::registerBinaryFiles
(
LUPI_maybeUnused
std::string
const
&a_parentDir,
LUPI_maybeUnused
SetupInfo
&a_setupInfo ) {
20
21
#ifdef HAPI_USE_HDF5
22
if
(this->
has
(
"HDF"
)) {
23
a_setupInfo.m_protare->setDataManager(
new
HAPI::HDFDataManager( a_parentDir +
"/"
+ this->
get<ExternalFile>
(
"HDF"
)->path( ) ) );
24
}
25
#endif
26
}
27
28
}
29
30
}
GIDI.hpp
LUPI_maybeUnused
#define LUPI_maybeUnused
Definition
LUPI_defines.hpp:16
GIDI::ExternalFiles::Suite::registerBinaryFiles
void registerBinaryFiles(std::string const &a_parentDir, SetupInfo &a_setupInfo)
Definition
GIDI_externalFiles.cc:19
GIDI::SetupInfo
Definition
GIDI.hpp:594
GIDI::Suite::has
bool has(std::string const &a_label) const
Definition
GIDI.hpp:2616
GIDI::Suite::get
T * get(std::size_t a_Index)
Definition
GIDI.hpp:2642
GIDI::ExternalFiles
Definition
GIDI.hpp:72
GIDI
Definition
GIDI.hpp:32
geant4-v11.4.0
source
processes
hadronic
models
lend
src
GIDI_externalFiles.cc
Generated by
1.16.1