I have this problem that I don’t understand. In EndOfRunAction I want to print an hdf5 output by using the analsysis Manager. The lines of codes (simplified with respect the original version, in order to debug) are the following:
auto analysisManager = G4AnalysisManager::Instance(); analysisManager->SetVerboseLevel(1); analysisManager->SetFileName("project_output"); analysisManager->CreateNtuple("project", "Particles"); analysisManager->CreateNtupleDColumn("InPositionX"); analysisManager->FinishNtuple(); analysisManager->FillNtupleIColumn(0,1); analysisManager->Write(); analysisManager->CloseFile();
I receveid the following message:
Segmentation fault (core dumped)
and I tried to use the GDB debug, getting the following message:
Thread 32 "essn" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fff81ffb700 (LWP 1146001)] 0x000000000041ea2a in ESSNRunAction::EndOfRunAction(G4Run const*) ()
I tried to debug by decommenting different lines of the code and I started to get the error when I fill the column, by adding:
Any suggestion, please?
Thank you very much in advance for your time.