Message: Re: Number of touchables associated to a G4LogicalVolume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Number of touchables associated to a G4LogicalVolume 

Forum: Geometry
Re: Question Number of touchables associated to a G4LogicalVolume (Nicola Mori)
Date: 17 Jul, 2014
From: Michael H. Kelsey <Michael H. Kelsey>

On Tue, 15 Jul 2014 17:24:00 GMT, Nicola Mori wrote:
> I'd need to retrieve how many touchables of a certain kind (i.e. with
> the same G4LogicalVolume) I have in a geometry. Since there is no
> "G4LogicalVolume::GetMultiplicity()" or similar, I guess that it is not
> feasible, but before giving up I'd like to know the opinion of the
> experts. Thanks.

No, there isn't a built-in way to map from a given LV to all of the PVs which use it (the LVs do not keep back pointers). Once your geometry is closed, you could write your own function (e.g., something you can trigger from a macro command) to iterate of the contents of the PV Store, and ask each PV for the pointer to it's LV.

The GAMOS experiment developed a rather nice set of tools to make inquiries into the geometry stores (PV, LV, and Solids) without having to create a G4Navigator or know the coordinate systems involved. You may want to contact the G4 collaborator Pedro Arce for more information.

  -- Michael Kelsey

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

1 Feedback: Re: Number of touchables associated to a G4LogicalVolume   (Pedro Arce - 18 Jul, 2014)
(_ Ok: Re: Number of touchables associated to a G4LogicalVolume   (Nicola Mori - 18 Jul, 2014)
 Add Message Add Message
to: "Re: Number of touchables associated to a G4LogicalVolume"

 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 ]