Message: Re: how to remove an Imprint of G4AssemblyVolume ? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: how to remove an Imprint of G4AssemblyVolume ? 

Forum: Geometry
Re: None how to remove an Imprint of G4AssemblyVolume ? (Aram Teymurazyan)
Date: 03 Jul, 2008
From: John Apostolakis <John Apostolakis>

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:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 More: Re: how to remove an Imprint of G4AssemblyVolume ?   (Gabriele Cosmo - 03 Jul, 2008)
2 None: Re: how to remove an Imprint of G4AssemblyVolume ?   (Aram Teymurazyan - 08 Jul, 2008)
1 Feedback: Re: how to remove an Imprint of G4AssemblyVolume ?   (Gabriele Cosmo - 08 Jul, 2008)
 Add Message Add Message
to: "Re: how to remove an Imprint of G4AssemblyVolume ?"

 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 ]