Re: (no subject)

From: Dmitry Naumov <naumov_at_nusun.jinr.ru>
Date: Fri, 13 May 2005 10:47:33 +0200


Hi Ivana and Andrei,

thank you both! Commenting call to IsRootGeometrySupported() initialize my geometry.
I had yesterday further problem (that is why I reply only today) : TGeoMedim must be
defined with all parameters like

   fParams[0] = isvol;
   fParams[1] = ifield;
   fParams[2] = fieldm;
   fParams[3] = tmaxfd;
   fParams[4] = stemax;
   fParams[5] = deemax;
   fParams[6] = epsil;
   fParams[7] = stmin;

I did not know that before because G4 worked well without that, while G3 was crashing with float
exception. If I remember well from debugger it was something like: LOG(den/A) with A = 0.
But OK, now it seems working (not crashing), thank you again.

How can I display with G3 ? I put

    if (TString(gMC->GetName()) == "TGeant3") {     // add scale (1.4)

        gMC->Gdraw("TOP", 30., 30., 0, 10., 10., .75, .75);     }

In MCApplication::FinishEvent()

and
 if (TString(gMC->GetName()) == "TGeant3") {

    // Set drawing options
    gMC->Gsatt("*", "seen", 16);
}
in set_vis.C

but nothing appears...

Dmitry

P.S. Andrei, if I understand correctly TGeant3TGeo inherits from TGeant3 thus it is not forbidden
to make that line

TGeant3* t = new TGeant3TGeo("test")

. Also this is written in :
geant4_vmc/examples/E03/g3tgeoConfig.C

Ivana Hrivnacova wrote:

>On Thu, 12 May 2005, Dmitry Naumov wrote:
>
>
>
>>And finally, just a very trivial example. In root session I do:
>>root[].x g3libs.C
>>root[] MCApplication* appl = new MCApplication("nuclon", "The NUCLON MC
>>application");
>>root[] TGeant3* t = new TGeant3TGeo("test")
>>root[] t->IsRootGeometrySupported()
>> 0
>>
>>
>
> This problem has been fixed recently in geant3;
> with my CVS head version, it return correctly true value;
> but I think, the fix is included already in version 1.1.
>
> In your case, put in void Ex01MCApplication::ConstructGeometry()
> only:
> TGeoManager::Import("nuclon_geometry.root");
> gMC->SetRootGeometry();
> You have also to comment out the code in Ex01MCApplication::InitGeometry(),
> which is specific the the geometry in Ex01.
>
> I have tested your file with CVS head version of geant3,
> and it passed ok:
>### 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
>
> I hope it helps.
> Best regards,
>
> Ivana
>
>==============================================================
>e-mail: Ivana.Hrivnacova_at_cern.ch
>address: Institut Physique Nucleaire, 91406 Orsay, France
>phone: (33) 01 69 15 65 94
>==============================================================
>
>
Received on Fri May 13 2005 - 08:46:59 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:55:21 MET