Message: From geant 9.4 to geant 9.6 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None From geant 9.4 to geant 9.6 

Forum: Processes Involving Optical Photons
Date: 03 Jul, 2013
From: Beatrice Panico <Beatrice Panico>

Hi, I have a problem with the last Geant version. Previously I run the following code with Geant 9.4

        G4MaterialPropertiesTable* aMaterialPropertiesTable;
        G4MaterialPropertyVector* Rindex;
        aMaterialPropertiesTable = Material1->GetMaterialPropertiesTable();
        if (aMaterialPropertiesTable) {
                Rindex = aMaterialPropertiesTable->GetProperty("RINDEX");

        if (Rindex) {
                Rindex1 = Rindex->GetProperty(thePhotonMomentum);

and I have no problem. If I use geant 9.6 the following error appears:

G4MaterialPropertyVector has no member named GetProperty(). I see that in G4PhysicsOrderedFreeVector there is a method named GetEnergy(), but I want the value of property associated to the corresponding energy. So, anyone can help me? Thanks

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

1 Idea: Re: From geant 9.4 to geant 9.6   (Zach Hartwig - 03 Jul, 2013)
(_ None: Re: From geant 9.4 to geant 9.6   (Beatrice Panico - 04 Jul, 2013)
 Add Message Add Message
to: "From geant 9.4 to geant 9.6"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews