44G4int G4Hdf5RNtupleManager::ReadNtupleImpl(
const G4String& ntupleName,
54 if ( ! isUserFileName ) {
55 fullFileName = fFileManager->GetFullFileName();
59 auto directory = fFileManager->GetNtupleRDirectory(fullFileName, dirName,
false);
63 auto rntuple =
new toolx::hdf5::ntuple(
G4cout, directory, ntupleName);
73G4bool G4Hdf5RNtupleManager::GetTNtupleRow(
76 auto ntuple = ntupleDescription->
fNtuple;
79 if ( ! isInitialized ) {
81 if ( ! ntuple->initialize(
G4cout, *ntupleBinding) ) {
82 Warn(
"Ntuple initialization failed !!", fkClass,
"GetTNtupleRow");
88 if ( ! ntuple->get_row() ) {
89 Warn(
"Ntuple get_row() failed !!", fkClass,
"GetTNtupleRow");
G4GLOB_DLL std::ostream G4cout
void Message(G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
G4Hdf5RNtupleManager()=delete
G4int SetNtuple(G4TRNtupleDescription< toolx::hdf5::ntuple > *rntupleDescription)
constexpr G4int kInvalidId
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)
tools::ntuple_binding * fNtupleBinding