32 #ifndef G4RootNtupleManager_h
33 #define G4RootNtupleManager_h 1
38 #include "tools/wroot/ntuple"
74 G4int nofMainManagers,
86 void SetFileManager(std::shared_ptr<G4RootFileManager> fileManager);
138 inline const std::vector<G4TNtupleDescription<tools::wroot::ntuple>* >&
154 if ( !
ntuple )
return false;
157 if ( index < 0 || index >=
G4int(
ntuple->columns().size()) ) {
159 description <<
" " <<
"ntupleId " << ntupleId
160 <<
" columnId " << columnId <<
" does not exist.";
161 G4Exception(
"G4RootNtupleManager::FillNtupleTColumn()",
166 auto icolumn =
ntuple->columns()[index];
167 auto column =
dynamic_cast<tools::wroot::ntuple::column_string*
>(icolumn);
170 description <<
" Column type does not match: "
171 <<
" ntupleId " << ntupleId
172 <<
" columnId " << columnId <<
" value " <<
value;
173 G4Exception(
"G4RootNtupleManager:FillNtupleColumn",
183 description <<
" ntupleId " << ntupleId
184 <<
" columnId " << columnId <<
" value " <<
value;