|Message: Modifying Geometry using Messenger||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I have a very strange problem when modifying my geometry using a macro and messenger the class. The problem is that I get a reduced number of optical photon counts in one of my Sensitive Detectors. The problem only appears when I run my code on the Amazon Cloud and doesn't show up locally.
My geometry has a scintillating crystal, a light guide and 4 'SiPMs'. All are defined as MultiFunctionalDetectors with primitives that count the number of optical photons in each volume. The SiPMs are defined once and copied & positioned four times. (That's the only difference between the way the SiPMs are defined compared to the other sensitive detectors).
When I run the code, I get an output for an event like so: Photons In Crystal: 5123. Photons in Light Guide: 4992. Photons Hitting SiPMs: 4601.
I make a modification using a messenger. For test purposes, I re-write the number of photons/MeV in my crystal, so that I know there are no geometrical changes which could cause the issue. After I make the change using the messenger, I do the following:
G4GeometryManager::GetInstance()->OpenGeometry(); G4PhysicalVolumeStore::GetInstance()->Clean(); G4LogicalVolumeStore::GetInstance()->Clean(); G4SolidStore::GetInstance()->Clean();
With these commands, I can see the effect of the change when I use the visualisation window. So I know that the messenger is working.
The results come out like: Photons In Crystal: 5232. Photons in Light Guide: 4893. Photons Hitting SiPMs: 185 <----- Greatly reduced photons in the SiPMs.
I have also tried only the 'ReinitializeGeometry() command without cleaning, but that results in no changes to the geometry.
I only see the problem when running the code on the Amazon Cloud where we have installed the same version of Geant4 that I use locally on my MacBook. (V 4.10.00p2)
I would appreciate any suggestions of how I can debug this. Should I re-instantiate my sensitive detectors after reinitialising the geometry? Or does the ReinitilizeGeometry() take care of that in Geant4.10.00.p02?
Please let me know what additional information is required to help me tackle this problem.
Best regards, Alan.
|Inline Depth:||Outline Depth:||Add message:|