Hi Dmitry,
I will need more info to be able to guess what can
get wrong here.
Does the E01 example without your modifications run ok?
Which versions of geant4_vmc, VGM and Root do you use?
Ivana
-- ============================================================== e-mail: Ivana.Hrivnacova_at_cern.ch address: Institut Physique Nucleaire, 91406 Orsay, France phone: (33) 01 69 15 65 94 ============================================================== On Tue, 26 Apr 2005, Dmitry Naumov wrote:Received on Tue Apr 26 2005 - 18:26:57 MEST
> Dear VMC developers,
>
> I am just started to play with VMC which looks very nice way to profit from
> ROOT
> and G4, G3.
>
> I am playing with Ex01 of VMC. I modified two lines of the code in
> void Ex01MCApplication::ConstructGeometry()
> in order to load my detector geometry build with TGeo as follows:
>
> if (gMC->IsRootGeometrySupported()) {
> cout << "Geometry will be defined via TGeo" << endl;
> /* ConstructMaterials(); ConstructVolumes(); */
> TGeoManager::Import("nuclon_geometry.root");
> gMC->SetRootGeometry();
> }
>
>
> The code compliles well, while running run_g4.C I get the following error:
> Geometry will be defined via TGeo
> ### Geometry loaded from file...
> Top volume is TOP. Master volume is TOP
> ### Voxelization retrieved from file
> --- node ID tracking disabled
> ### 2122 nodes/ 2123 volume UID's in nuclon
> ----------------modeler ready----------------
> Converting Root geometry to Geant4 via VGM ...
> #
>
> <skip>
>
> ### EM physics for hadrons constructed.
> ### Step limiter physics constructed.
>
> *** Break *** segmentation violation
> Generating stack trace...
> 0xb3d11e0a in TG4SDConstruction::Construct() + 0x5e from
> /home/naumov/work/geant4/geant4_vmc/lib/tgt_linux/libgeant4vmc.so
> 0xb3d123a4 in TG4SDManager::Initialize() + 0x14 from
> /home/naumov/work/geant4/geant4_vmc/lib/tgt_linux/libgeant4vmc.so
> 0xb3d71e62 in TG4RunManager::Initialize() + 0x42 from
> /home/naumov/work/geant4/geant4_vmc/lib/tgt_linux/libgeant4vmc.so
> 0xb3d760f2 in TGeant4::Init() + 0x22 from
> /home/naumov/work/geant4/geant4_vmc/lib/tgt_linux/libgeant4vmc.so
> 0xb3c84394 in Ex01MCApplication::InitMC(char const*) + 0x8a from
> /home/naumov/work/geant4/geant4_vmc/lib/tgt_linux/libexample01.so
> 0xb3c89101 in <unknown> from
> /home/naumov/work/geant4/geant4_vmc/lib/tgt_linux/libexample01.so
>
>
> Could you please give me a hint why it happens?
>
> Kind regards, Dmitry
>
>
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:55:21 MET