Message: Modifying the geometry via messenger class Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Modifying the geometry via messenger class 

Forum: Geometry
Date: 23 Dec, 2010
From: Lukas Schulte <Lukas Schulte>

Hello there!

My problem is the following:

The detector I have defined basically consists of a lot of PMTs placed in some grid within an optical medium while the basic parameters of the grid (size of grid and spacing of PMTs) are stored as private members of the detector construction class an accessible via set/get methods. I also have a detector messenger class to change those parameters interactively.

This complete thing SEEMS to work as reasonable things happen on the first glance, i.e. I get fewer hits when I increase the spacing between the PMTs and so on.

BUT: I also write the hit information to a file where among other things the positions of the PMTs that were hit are stored, and there it looks as the detector geometry wouldn't have been changed at all. The PMT positions are always the same as in the default detector setting, even if I made all spacings way larger before!

Also, when I use some visualization the viewer doesn't change the displayed geometry either.

And no, I didn't forget to type /run/geometryModified or /vis/viewer/refresh each time I changed something. By the way, this is also a question I have: What does exactly happen after /run/geometryModified and what doesn't?

Pooh, that was a long thing but now I'm finished. I hope someone out there can help me in some way...

Thank you and merry Christmas! Lukas

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Modifying the geometry via messenger class   (John Allison - 23 Dec, 2010)
2 None: RE: Modifying the geometry via messenger class   (Asai, Makoto - 23 Dec, 2010)
1 None: Re: RE: Modifying the geometry via messenger class   (Lukas Schulte - 28 Dec, 2010)
(_ More: Re: RE: Modifying the geometry via messenger class   (Lukas Schulte - 04 Jan, 2011)
(_ None: Re: RE: Modifying the geometry via messenger class   (Michael H. Kelsey - 05 Jan, 2011)
 Add Message Add Message
to: "Modifying the geometry via messenger class"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]