31 #ifndef G4Hdf5NtupleManager_h
32 #define G4Hdf5NtupleManager_h 1
37 #include "tools/hdf5/ntuple"
66 void SetFileManager(std::shared_ptr<G4Hdf5FileManager> fileManager);
97 inline const std::vector<G4TNtupleDescription<tools::hdf5::ntuple>*>&
113 if ( !
ntuple )
return false;
117 if ( index < 0 || index >=
G4int(
ntuple->columns().size()) ) {
119 description <<
" " <<
"ntupleId " << ntupleId
120 <<
" columnId " << columnId <<
" does not exist.";
121 G4Exception(
"G4TNtupleManager::FillNtupleTColumn()",
125 auto icolumn =
ntuple->columns()[index];
128 auto column =
dynamic_cast<tools::hdf5::ntuple::column_string*
>(icolumn);
131 description <<
" Column type does not match: "
132 <<
" ntupleId " << ntupleId
133 <<
" columnId " << columnId <<
" value " <<
value;
144 description <<
" ntupleId " << ntupleId
145 <<
" columnId " << columnId <<
" value " <<
value;