Message: Merging all ROOT H1 problem Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Merging all ROOT H1 problem 

Forum: Analysis
Date: 18 Aug, 2018
From: Abhijit Bhattacharyya <Abhijit Bhattacharyya>

I am using "fAnalysisManager->SetNtupleMerging(true)" to merge all ROOT output data to a single file using Geant4-10-5.0. I see there one single ROOT file as expected.

However, the code crashes to produce core while Writing the final data in "fAnlysisManager->Write()" line of the EndOfRunAction() method in RunAction.cxx.

The GDB shows core was dumped around 
Core was generated by `./neutC Data/GeomData/tarc_geometry.gdml -m run.mac'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f1cac2df086 in G4THnManager<tools::histo::h1d>::AddTVector(std::vector<tools::histo::h1d*, std::allocator<tools::histo::h1d*> > const&) ()
   from /opt/G4MT_Master/share/Geant4-10.5.0/../../lib/libG4analysis.so
[Current thread is 1 (Thread 0x7f1c8c62a700 (LWP 24106))]
(gdb) 
(gdb) 
(gdb) bt
#0  0x00007f1cac2df086 in G4THnManager<tools::histo::h1d>::AddTVector(std::vector<tools::histo::h1d*, std::allocator<tools::histo::h1d*> > const&) ()
   from /opt/G4MT_Master/share/Geant4-10.5.0/../../lib/libG4analysis.so
#1  0x00007f1cac451ef2 in G4RootAnalysisManager::WriteH1() () from /opt/G4MT_Master/share/Geant4-10.5.0/../../lib/libG4analysis.so
#2  0x00007f1cac45490a in G4RootAnalysisManager::WriteImpl() () from /opt/G4MT_Master/share/Geant4-10.5.0/../../lib/libG4analysis.so
#3  0x00007f1cac44580f in G4VAnalysisManager::Write() () from /opt/G4MT_Master/share/Geant4-10.5.0/../../lib/libG4analysis.so
#4  0x0000555c857da3fa in NeutRunAction::EndOfRunAction (this=0x7f1c840ab6d0, thisRun=0x7f1c403d7dd0)
    at /home/vega/decrypted/G4_APPLI/src/NeutRunAction.cxx:43
#5  0x00007f1cae965bad in G4RunManager::RunTermination() () from /opt/G4MT_Master/share/Geant4-10.5.0/../../lib/libG4run.so
#6  0x00007f1cae97dc8a in G4WorkerRunManager::RunTermination() () from /opt/G4MT_Master/share/Geant4-10.5.0/../../lib/libG4run.so
#7  0x00007f1cae9642ed in G4RunManager::BeamOn(int, char const*, int) () from /opt/G4MT_Master/share/Geant4-10.5.0/../../lib/libG4run.so
#8  0x00007f1cae97c673 in G4WorkerRunManager::DoWork() () from /opt/G4MT_Master/share/Geant4-10.5.0/../../lib/libG4run.so
#9  0x00007f1cae9872fe in G4MTRunManagerKernel::StartThread(G4WorkerThread*) () from /opt/G4MT_Master/share/Geant4-10.5.0/../../lib/libG4run.so
#10 0x00007f1caa64c733 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#11 0x00007f1ca74696db in start_thread (arg=0x7f1c8c62a700) at pthread_create.c:463
#12 0x00007f1ca9d0888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

I am confused. I checked with "fAnalysisManager->SetVerboseLevel(4)" while I did not see any error message. What is the bug in my code?

Thanks

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Merging all ROOT H1 problem   (Ivana Hrivnacova - 20 Aug, 2018)
(_ Feedback: Re: Merging all ROOT H1 problem   (Abhijit Bhattacharyya - 20 Aug, 2018)
(_ None: Re: Merging all ROOT H1 problem   (Ivana Hrivnacova - 21 Aug, 2018)
(_ Feedback: Re: Merging all ROOT H1 problem   (Abhijit Bhattacharyya - 21 Aug, 2018)
(_ None: Re: Merging all ROOT H1 problem   (Ivana Hrivnacova - 21 Aug, 2018)
(_ Feedback: Re: Merging all ROOT H1 problem   (Abhijit Bhattacharyya - 21 Aug, 2018)
(_ None: Re: Merging all ROOT H1 problem   (Ivana Hrivnacova - 21 Aug, 2018)
(_ Feedback: Re: Merging all ROOT H1 problem   (Abhijit Bhattacharyya - 21 Aug, 2018)
1 More: Re: Merging all ROOT H1 problem   (Abhijit Bhattacharyya - 22 Aug, 2018)
1 None: Re: Merging all ROOT H1 problem   (Ivana Hrivnacova - 22 Aug, 2018)
2 None: Re: Merging all ROOT H1 problem   (Ivana Hrivnacova - 22 Aug, 2018)
2 None: Re: Merging all ROOT H1 problem   (Ivana Hrivnacova - 22 Aug, 2018)
1 Feedback: Re: Merging all ROOT H1 problem   (Abhijit Bhattacharyya - 22 Aug, 2018)
2 Feedback: Re: Merging all ROOT H1 problem   (Abhijit Bhattacharyya - 22 Aug, 2018)
... 11 Message(s)
 Add Message Add Message
to: "Merging all ROOT H1 problem"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]