Message: Re: finding physical volume defind in textgeom Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: finding physical volume defind in textgeom 

Forum: Geometry
Re: Question finding physical volume defind in textgeom
Date: 27 May, 2016
From: Pedro Arce <Pedro Arce>

That method is for internal use. If you want to find all volumes with a given name, just do a loop to the G4PhysicalVolumeStore

G4PhysicalVolumeStore* pvs = G4PhysicalVolumeStore::GetInstance();
std::vector<G4VPhysicalVolume*>::iterator citepv;
for( citepv = pvs->begin(); citepv != pvs->end(); citepv++ ) {
  if(  volume_name == (*citepv)->GetName() )  ......

Pedro

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

1 Ok: Re: finding physical volume defind in textgeom   (byljcron - 27 May, 2016)
 Add Message Add Message
to: "Re: finding physical volume defind in textgeom"

 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 ]