54 if ( ! isUserFileName ) {
59 auto directory =
fFileManager->GetNtupleRDirectory(fullFileName, dirName,
false);
63 auto rntuple =
new tools::hdf5::ntuple(
G4cout, directory, ntupleName);
76 auto ntuple = ntupleDescription->
fNtuple;
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
virtual G4int ReadNtupleImpl(const G4String &ntupleName, const G4String &fileName, const G4String &dirName, G4bool isUserFileName) final
static constexpr std::string_view fkClass
std::shared_ptr< G4Hdf5RFileManager > fFileManager
virtual G4bool GetTNtupleRow(G4TRNtupleDescription< tools::hdf5::ntuple > *ntupleDescription) final
G4Hdf5RNtupleManager()=delete
G4int SetNtuple(G4TRNtupleDescription< tools::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