GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Problem with Root geometrys from CAD
Problem with Root geometrys from CAD [message #10633] Thu, 06 May 2010 11:14 Go to previous message
Christian Hammann is currently offline  Christian Hammann
Messages: 24
Registered: July 2009
Location: Bonn
continuous participant

From: *cb.uni-bonn.de
Hi all

I was trying to create a geometry for proto60 emc prototype using the CadConverter. The created geometry looks correct but I get some problems in the Geant4 simulation.

To find the source of the problem I reduced the geometry to a single crystal. The shape of the crystal is a Trapezoid (can be described by a TGeoTrap). It has two parallel endfaces and two sides which are orthogonal to the endfaces and each other.

The CadConverter creates these shapes as TGeoArb8.

I modified the code of PndEmc slightly to read the Root file and parse the volume name etc, similar to the code for the forward endcap part.

I tested the geometries by generating photons in front of the crystal with random position in x and y. Also a small angle to the z-axis is generated.

When I run the simulation I observed three problems, affecting primary and secondary particles alike. It is likely that these problems have the same cause.

The first problem I get is that a particle seems to get "stuck" at the surface of a Crystal, the particle is transported into and out of the crystalvolume indefinetly:
*** Particle reached max step number (10000). ***

*********************************************************************************************************
* G4Track Information:   Particle = gamma,   Track ID = 88,   Parent ID = 81
*********************************************************************************************************

Step#    X(mm)    Y(mm)    Z(mm) KinE(MeV)  dE(MeV) StepLeng TrackLeng  NextVolume ProcName
10002    -11.6    -22.2      990     0.703        0        0      1.07 CrystalType6a Transportation
10003    -11.6    -22.2      990     0.703        0        0      1.07        cave Transportation
10004    -11.6    -22.2      990     0.703        0        0      1.07 CrystalType6a Transportation
10005    -11.6    -22.2      990     0.703        0        0      1.07        cave Transportation


This can also be seen in the event display: The track of this particle ends at the surface of the crystal.

A second problem can be seen in the eventdisplay, where a particle would clearly enter the volume, but have no reactions inside the volume. This could, for example, lead to a 100 MeV photon crossing 10cm of PWO without any reaction.

Problem three can be seen when one plots the position of EmcPoints for a singe crystal. One would expect to find them all inside the crystalvolume, but I observed quite a lot of points with a position outside of the volume.

I have tried to narrow the problem down. I checked that the center of the volume in the cad file is at the geometrical center of the shape. The dimensions of the created TGeoArb8 are correct. The vertices of the endfaces are specified in the correct clockwise order.

The positioning of the volume makes a difference: If I place the crystal on the z-axis I observe no problems. Only if the crystal is not on that axis (as is the case for the proto60) I get the problems mentioned above.

I tried to create a root geometry by hand to reproduce these errors, but all handmade geometries worked for me. This could be a hint that the problem is connected to the cad converter.

On the other hand the error I get from Geant 4 is the same as the one mentioned by Dmitry in his post ( http://forum.gsi.de/index.php?t=rview&th=2816 ).

I also tried using geant3 and I had no problems there.


I have no ideas what else I could try to solve that problem, so any help would be welcome.
If you want to have a look at some of the files (code, rootfiles, cadfiles ...) just tell me what you need.

Thanks very much

Christian


Christian Hammann
Universität Bonn
Helmholz-Institut für Strahlen und Kernphysik
Nußallee 14-16
53115 Bonn
Tel: +49 228 733895
Fax: +49 228 732505
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem installing External package
Next Topic: daily doxygen - genfit missing
Goto Forum:
  


Current Time: Tue Mar 19 04:04:10 CET 2024

Total time taken to generate the page: 0.01014 seconds