|Message: Re: G4VSolid to G4Box||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)|
Thank you very much, I solved my problem with your suggestion.
I would like your help. This kind of declaration (G4Box*) myLogicalVolume .... ( or something like that) I saw in some examples in Geant4 but I do not understand that very well. What do that mean? In this case (G4Box*) are you forcing that myLogicalVolume->GetSolid to be of G4Box type or ..?
On Mon, 08 Apr 2013 14:29:21 GMT, Marc Verderi wrote:
> Hello Manuel, > > if you are sure that the G4VSolid you look at is of actual G4Box type, > just make a cast: > > G4Box* theBox = (G4Box *) myLogicalVolume->GetSolid(); > > Cheers, > Marc > > On 04/08/2013 04:21 PM, Manuel Castro Avila wrote: > > *** Discussion title: Geometry > > > > Hi Geant4 Users, > > > > I created a geometry and inside some volumes, I placed a daughter > > volumes. When I run the simulation, I am checking if the geometry is > > fine and the number of daughter volumes (if is the case) inside a mother > > volume. In order to perform that, I use the GetNoDaughters() and > > GetDaughter (const G4int i ) methods from G4LogicalVolume class. > > GetDaughter returns a G4VPhysicalVolume element and from it, I can get > > the logical volume associated with the daughter volume. Now, I want to > > know the dimensions (solid volume) of the daughter volume. From the > > logical volume, I can get the solid volume using GetSolid method, but > > this variable is of the G4VSolid type. G4VSolid does not have any method > > to get the dimensions. I know the daughter volume was created with the > > class G4Box, but I do not know how associate the solid from GetSolid > > with G4Box (if possible), any idea? > > > > Thanks in advance, > > > > Manuel > > > > ------------------------------------------------------------- > > Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: > > http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry/1265.html >
|Inline Depth:||Outline Depth:||Add message:|