|Message: Problen running ROOT in a Geant4 simulation (g4.10.03.p03)||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I run a Geant4 simulation which requires root to read an histogram in the PrimaryGeneratorAction, and to save data in a Tree structure in a root file.
This simulation works fine in a machine having Genat4.10.01 and root v.5.34.23
I have copied this simulation to another machine having Geant4.10.03.p03 and root v.5.34.36. It compiles and links without any error, including the root libraries during the cmake step as you can see in the cmake output:
hgomez@sphnlx220:~/G2G3/G4Simulations/G4TomoMu_GDML/build$ cmake .. -DCMAKE_MODULE_PATH=$ROOTSYS/etc/cmake
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /etc/alternatives/cc
-- Check for working C compiler: /etc/alternatives/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /etc/alternatives/c++
-- Check for working CXX compiler: /etc/alternatives/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ROOT: /local/home/hgomez/root_v5.34.36/bin/root-config
-- ROOT_LIBRARIES=/local/home/hgomez/root_v5.34.36/lib/libCore.so;/local /home/hgomez/root_v5.34.36/lib/libCint.so;/local/home/hgomez/root_v5.34.36/lib/libRIO.so;/local/home/hgomez/root_v5.34.36/lib/libNet.so;/local/home/hgomez/root_v5.34.36/lib/libHist.so;/local/home/hgomez/root_v5.34.36/lib/libGraf.so;/local/home/hgomez/root_v5.34.36/lib/libGraf3d.so;/local/home/hgomez/root_v5.34.36/lib/libGpad.so;/local/home/hgomez/root_v5.34.36/lib/libTree.so;/local/home/hgomez/root_v5.34.36/lib/libRint.so;/local/home/hgomez/root_v5.34.36/lib/libPostscript.so;/local/home/hgomez/root_v5.34.36/lib/libMatrix.so;/local/home/hgomez/root_v5.34.36/lib/libPhysics.so;/local/home/hgomez/root_v5.34.36/lib/libMathCore.so;/local/home/hgomez/root_v5.34.36/lib/libThread.so
-- Configuring done
-- Generating done
-- Build files have been written to: /local/home/hgomez/G2G3/G4Simulations/G4TomoMu_GDML/build
However, when I run the simulation, I have the following messages:
Warning in <TClass::TClass>: no dictionary for class TH2F is available Warning in <TClass::TClass>: no dictionary for class TH2 is available Warning in <TClass::TClass>: no dictionary for class TH1 is available Warning in <TClass::TClass>: no dictionary for class TAxis is availableError in <TBufferFile::ReadClassBuffer>: Could not find the StreamerInfo for version 3 of the class TNamed, object skipped at offset 88
Error in <TBufferFile::CheckByteCount>: object of class TNamed read too few bytes: 2 instead of 400804662 Error in <TNamed::>:
And the stops with a segmentation fault.
I would really appreciate any suggestion about the origin of the problem. May be is related with some configuration issues or incompatibility among versions and I am not realizing about that.
Thanks a lot in advance