44 fFileManager(nullptr),
45 fNtupleManager(nullptr)
57G4bool G4CsvNtupleFileManager::CloseNtupleFiles()
61 auto finalResult =
true;
62 auto ntupleVector = fNtupleManager->GetNtupleDescriptionVector();
63 for (
auto ntupleDescription : ntupleVector) {
64 auto result = fFileManager->CloseNtupleFile(ntupleDescription);
65 finalResult = finalResult && result;
80 fNtupleManager = std::make_shared<G4CsvNtupleManager>(
fState);
81 fNtupleManager->SetFileManager(fFileManager);
83 return fNtupleManager;
93 fNtupleManager->CreateNtuplesFromBooking(
108 auto finalResult =
true;
111 auto result = CloseNtupleFiles();
112 finalResult = finalResult && result;
119 description <<
" " <<
"Resetting data failed";
123 finalResult = finalResult && result;
132 return fNtupleManager->Reset(
true);
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
virtual G4bool ActionAtCloseFile(G4bool reset) override
virtual G4bool ActionAtWrite() override
virtual G4bool ActionAtOpenFile(const G4String &fileName) override
~G4CsvNtupleFileManager()
virtual std::shared_ptr< G4VNtupleManager > CreateNtupleManager() override
virtual G4bool Reset() override
G4CsvNtupleFileManager(const G4AnalysisManagerState &state)
std::shared_ptr< G4NtupleBookingManager > fBookingManager
const G4AnalysisManagerState & fState