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
12namespace GIDI {
13
14namespace ExternalFiles {
15
16/*!
17 * loop over external files, if any represent binary store then open up HAPI::DataManager for that file
18 */
19void 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}
#define LUPI_maybeUnused
void registerBinaryFiles(std::string const &a_parentDir, SetupInfo &a_setupInfo)
bool has(std::string const &a_label) const
Definition GIDI.hpp:2616
T * get(std::size_t a_Index)
Definition GIDI.hpp:2642
Definition GIDI.hpp:32