Message: Problen running ROOT in a Geant4 simulation (g4.10.03.p03) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Problen running ROOT in a Geant4 simulation (g4.10.03.p03) 

Forum: Installation and Configuration
Date: 21 Mar, 2018
From: Hector Gomez <Hector Gomez>

Dear all,

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

-- CMAKE_MODULE_PATH=/local/home/hgomez/root_v5.34.36/etc/cmake

-- Found ROOT: /local/home/hgomez/root_v5.34.36/bin/root-config

-- ROOT_INCLUDE_DIR=/local/home/hgomez/root_v5.34.36/include

-- ROOT_INCLUDE_DIRS=/local/home/hgomez/root_v5.34.36/include

-- 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

-- ROOT_LIBRARY_DIR=/local/home/hgomez/root_v5.34.36/lib

-- 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 available
Error 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

Best regards

Hector

 Add Message Add Message
to: "Problen running ROOT in a Geant4 simulation (g4.10.03.p03)"

 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 ]