31#ifndef G4CsvNtupleManager_h
32#define G4CsvNtupleManager_h 1
37#include "tools/wcsv_ntuple"
63 void SetFileManager(std::shared_ptr<G4CsvFileManager> fileManager);
66 const std::vector<CsvNtupleDescription*>& GetNtupleDescriptionVector()
const;
68 void SetIsCommentedHeader(
G4bool isCommentedHeader);
69 void SetIsHippoHeader(
G4bool isHippoHeader);
77 G4bool WriteHeader(tools::wcsv::ntuple* ntuple)
const;
80 static constexpr std::string_view fkClass {
"G4CsvNtupleManager" };
83 std::shared_ptr<G4CsvFileManager> fFileManager {
nullptr };
84 G4bool fIsCommentedHeader {
true };
85 G4bool fIsHippoHeader {
false };
91G4CsvNtupleManager::SetFileManager(std::shared_ptr<G4CsvFileManager> fileManager)
93 fFileManager = std::move(fileManager);
96inline const std::vector<G4TNtupleDescription<tools::wcsv::ntuple, std::ofstream>*>&
97G4CsvNtupleManager::GetNtupleDescriptionVector()
const
100inline void G4CsvNtupleManager::SetIsCommentedHeader(
G4bool isCommentedHeader)
101{ fIsCommentedHeader = isCommentedHeader; }
103inline void G4CsvNtupleManager::SetIsHippoHeader(
G4bool isHippoHeader)
104{ fIsHippoHeader = isHippoHeader; }
G4CsvNtupleManager()=delete
~G4CsvNtupleManager() override=default
std::vector< G4TNtupleDescription< tools::wcsv::ntuple, std::ofstream > * > fNtupleDescriptionVector