Hi Dmitry,
On Tue, 3 May 2005, Dmitry Naumov wrote:
> Dear VMC developers,
>
> I am adapting Ex03 for my application in which I build geometry via TGeo
> and use vgm for converting it into g4 internally in memory. Some things
> are not yet clear to me:
>
> - naming conventions. My TGeoVolumes have names like: ScintPlateL_1_2
> it seems that G4 does not recongnize when the name contains underscores,
> G4 releases warnings. I modified names to like follows: ScintPlateLX1X2
> and they are recognized, while a warning persists:
The reason is that underscore is used by default as a special character in G3toG4 in naming of logical volumes. Even if you don't use g3tog4, the underscores are still treated as special characters. You can override this default value with e.g. '%' by applying the command:
/mcDet/volNameSeparator %
in g4config.in.
Then, the underscores should be ok in your volumes names.
> ++++ TG4Warning: ++++
> TG4StepManager::GetCurrentOffPhysicalVolume:
> Volume ScintPlateLX1X2 has not defined mother in the required level.
>
This warning is issued each time when the depth of the volume hierarchy is lower then that asked in gMC->CurrentVolOffID(2, copyNo);
> - When the event is generated I see with G4 OpenGL viewer my detector and
> tracks
> inside it. That viewer does not look too nice and I would like to use root
> TGeo
> package as a viewer. The detector can be viweved without any problems, however
> I would like to fetch G4 generated tracks and draw them with TGeo "viewer".
> What
> is the way these tracks can be accessed and drawn?
>
There is no way to draw directly G4 tracks via TGeo,
as the tracks are not interfaced between the two programs.
Besides OpenGL, you can use other Geant4 tools,
such as Dawn and Wired; see eg:
http://geant4.slac.stanford.edu/g4cd/January2004/Documentation/Visualization/G4WIREDTutorial/G4WIREDTutorial.html
http://geant4.slac.stanford.edu/g4cd/January2004/Documentation/Visualization/G4DAWNTutorial/G4DAWNTutorial.html
Or, with TGeo, you can base your display on your hits objects and draw the hits positions. Andrei, probably, can give you more hints for this direction.
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 Tue May 03 2005 - 10:37:48 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:55:21 MET