Re: Reading in TGeo objects from file, using geomRootToGeant4 and getting "No elements defined"

From: Ivana Hrivnacova <Ivana.Hrivnacova_at_cern.ch>
Date: Thu, 3 May 2012 17:19:24 +0200

Hi Brett,

The problem is in your definition of Vacuum, which seems to be defined as a mixture of 0 elements:
root [1] gGeoManager->GetMaterial("Vacuum")->Print() Mixture Vacuum Aeff=0 Zeff=0 rho=0 radlen=0 intlen=0 index=9

Please, change your definition to:

   TGeoMaterial* material = new TGeoMaterial("Vacuum", 0, 0, 0);

I will add a protection against such a case in VGM. Let me know if after this change the conversion goes ok.

Thank you,

Ivana

On 05/03/2012 04:09 PM, Brett Viren wrote:
> Ivana Hrivnacova<Ivana.Hrivnacova_at_cern.ch> writes:
>
>> I am not able to reproduce the problem.
>> Can you limit your geometry to just a few materials and volumes,
>> export it in a Root file and test it within one VMC example where you
>> replace the ConctructGeometry function with:
>> TGeoManager::Import("geometry.root");
>> gMC->SetRootGeometry();
>> Send me then your code used for building geometry and your geometry
>> Root file.
>> Also let me know your versions of Root, VGM and Geant4 VMC.
>
> Okay, thanks, will do. I was hopping I was just making a simple,
> high-level misstep. I'll make a version of Ex06 that uses a pre-made
> geometry as you suggest. Here is a copy of the current geometry I'm
> working with:
>
> http://www.phy.bnl.gov/~bviren/wbls/example-geo.root
>
> It is an assembly of three long, concentric cylinders capped at both
> ends with an assembly of three layers of flat cylinders.
>
> Installation of the dependencies was done with:
>
> https://github.com/brettviren/WbLS/blob/master/people/bv/inst.sh
>
> I tried to pick the newest releases of everything as of a few weeks ago.
> Specifically, the versioned URLs I used are:
>
> http://www.cmake.org/files/v2.8/cmake-2.8.7.tar.gz
> http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz
> http://archive.ipython.org/release/0.12/ipython-0.12.tar.gz
> http://geant4.cern.ch/support/source/geant4.9.5.p01.tar.gz
> http://downloads.sourceforge.net/project/boost/boost/1.49.0/boost_1_49_0.tar.gz
> ftp://root.cern.ch/root/root_v5.32.02.source.tar.gz
> ftp://root.cern.ch/root/vmc/geant4_vmc.2.13a.tar.gz
> https://vgm.svn.sourceforge.net/svnroot/vgm/tags/v3-05/vgm
>
> Please let me know if you spot any obvious incompatibilities.
>
> -Brett.

-- 
==============================================================
e-mail:  Ivana.Hrivnacova_at_cern.ch
address: Institut de Physique Nucléaire, 91406 Orsay, France
phone:   +33 169156594
==============================================================
Received on Thu May 03 2012 - 17:19:29 CEST

This archive was generated by hypermail 2.2.0 : Thu May 03 2012 - 23:25:01 CEST