|Message: Re: how to remove an Imprint of G4AssemblyVolume ?||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)|
Dear Aram, To my knowledge, there is no easy way to delete all the parts of an imprint of an assembly. An imprint creates a physical volume for each of the constituent volumes of an assembly. Once the imprint is created it loses all memory of how it was created. To delete one of these physical volumes, you need to know the mother logical volumes and cycle through its daughter (physical) volumes checking to find it (or them.) Of course you can use the copy numbers to help identify the one you want. * Use Case * Could you explain your use case, though ? It is a bit unusual to want to remove a complicated part of a structure (as is the imprint of a G4Assembly) from an existing geometry. * Potential different solution * I expect that it would be better to rewrite the Geometry Construction so that it has a new method that creates all the daughters of that mother volume - in a way that the volume can be recreated. If that mother contains daughters, that method could deleted them all first, and then create the physical volumes of all needed daughters - including placements and imprints of G4Assembly (ies). You would not need to create again the G4Assembly itself (unless you wanted to change it) or the logical volumes of which all these are instances. Only the physical volumes (placements & imprints of G4Assembly) would need to be constructed anew. I hope the information and suggestion help. * Removing a volume from a G4Assembly * As I do not have an answer at hand, I leave it to knowledgeable users (or in their absence, Geant4 colleagues) to answer regarding removing a volume from a G4Assembly. Best regards, John Apostolakis Aram Teymurazyan wrote: > *** Discussion title: Geometry > > Hi, > > I am using G4AssemblyVolume for construction of my geometry. I was > wondering if there is an easy way to delete an imprint of an assembly? > or remove a placed volume from a G4Assembly? > > Aram > > ------------------------------------------------------------- > Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: > http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry/916.html >
|Inline Depth:||Outline Depth:||Add message:|