Message: Mother Volume name??? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Mother Volume name??? 

Forum: Hits, Digitization and Pileup
Date: 23 Oct, 2012
From: Carlos Ayerbe Gayoso <Carlos Ayerbe Gayoso>

Hi all

in my geometry (based roughly in N03), I would like to know if it is possible to obtain the name of the mother volume. From examples:

    G4TouchableHandle touch1 = point1->GetTouchableHandle();
    G4VPhysicalVolume* volume = touch1->GetVolume();
    G4String name = volume->GetName();
    G4int copyNumber = touch1->GetCopyNumber();

So, I go a little far, it is possible:

   G4VPhysicalVolume* mother = touch1->GetVolume(1);

and I tried the next, similar as before, but doesn't work

---> G4String nameMom = mother->GetName();

Is there any way to get the name?

Anyhow excuse me if it is more a matter of C++ programming than Geant4... I"m not pretty sure about the inheritance of the methods in this case, but I thought it was possible.

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

1 None: Re: Mother Volume name???   (Tsukasa Aso - 23 Oct, 2012)
(_ None: Re: Mother Volume name???   (Carlos Ayerbe Gayoso - 24 Oct, 2012)
 Add Message Add Message
to: "Mother Volume name???"

 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 ]