On Fri, 13 May 2005, Dmitry Naumov wrote:
> 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.
In Geant4, only stemax is applied as step limitation if its value is > 0. Other parameters are ignored.
>
> 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...
This is valid only for TGeant3 (without TGeo);
with TGeant3TGeo, you should use the functions of
TGeoManager:
gGeoManager->GetTopVolume()->Draw();
It is true, that the setting for TGeant3TGeo is missing in set_vis.C; I will add it.
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 - 21:07:20 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:55:21 MET