57 if ( ! isUserFileName ) {
58 fullFileName =
fFileManager->GetNtupleFileName(ntupleName);
62 if ( ! dirName.empty() ) {
63 fullFileName =
"./" + dirName +
"/" + fullFileName;
71 auto rntuple =
new tools::rcsv::ntuple(*ntupleFile);
83 auto ntuple = ntupleDescription->
fNtuple;
88 if ( ! ntuple->initialize(
G4cout, *ntupleBinding) ) {
89 Warn(
"Ntuple initialization failed !!",
fkClass,
"GetTNtupleRow");
96 auto next = ntuple->next();
98 if ( ! ntuple->get_row() ) {
99 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
static constexpr std::string_view fkClass
virtual G4int ReadNtupleImpl(const G4String &ntupleName, const G4String &fileName, const G4String &dirName, G4bool isUserFileName) final
virtual G4bool GetTNtupleRow(G4TRNtupleDescription< tools::rcsv::ntuple > *ntupleDescription) final
std::shared_ptr< G4CsvRFileManager > fFileManager
G4CsvRNtupleManager()=delete
G4int SetNtuple(G4TRNtupleDescription< tools::rcsv::ntuple > *rntupleDescription)
constexpr G4int kInvalidId
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)
tools::ntuple_binding * fNtupleBinding