Message: Adding MaterialPropertiesTable to gdml Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Adding MaterialPropertiesTable to gdml 

Keywords: gdml geometry
Forum: Geometry
Date: 01 May, 2007
From: Hans Wenzel <Hans Wenzel>

I want to use GDML to add  optical properties like the refraction index 
as a function of photon energy (so G4MaterialPropertiesTable)
to a material corresponding to 
the following c++ code: 
(I found the opticalsurfaces.gdml in the gdml examples area but that's that's not exactly what I tried to do) 

If anyone can point me to an example that would be appreciated


thanks hans 

below is the c++ snipet
----------------------------------------
 const G4int nEntries = 32;

  G4double PhotonEnergy[nEntries] =
            { 2.034*eV, 2.068*eV, 2.103*eV, 2.139*eV,
              2.177*eV, 2.216*eV, 2.256*eV, 2.298*eV,
              2.341*eV, 2.386*eV, 2.433*eV, 2.481*eV,
              2.532*eV, 2.585*eV, 2.640*eV, 2.697*eV,
              2.757*eV, 2.820*eV, 2.885*eV, 2.954*eV,
              3.026*eV, 3.102*eV, 3.181*eV, 3.265*eV,
              3.353*eV, 3.446*eV, 3.545*eV, 3.649*eV,
              3.760*eV, 3.877*eV, 4.002*eV, 4.136*eV };
//
// lead glass
//         
  G4double RefractiveIndex1[nEntries] =
            { 1.65, 1.65, 1.65, 1.65, 1.65, 1.65, 1.65,
              1.65, 1.65, 1.65, 1.65, 1.65, 1.65, 1.65,
              1.65, 1.65, 1.65, 1.65, 1.65, 1.65, 1.65,
              1.65, 1.65, 1.65, 1.65, 1.65, 1.65, 1.65,
              1.65, 1.65, 1.65, 1.65 };

  G4MaterialPropertiesTable* myMPT1 = new G4MaterialPropertiesTable();
  myMPT1->AddProperty("RINDEX",       PhotonEnergy, RefractiveIndex1,nEntries);

  PbGl->SetMaterialPropertiesTable(myMPT1);

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

1 None: Re: Adding MaterialPropertiesTable to gdml   (Hans Wenzel - 02 May, 2007)
(_ None: Re: Adding MaterialPropertiesTable to gdml   (Witek Pokorski - 03 May, 2007)
(_ None: Re: Adding MaterialPropertiesTable to gdml   (Witek Pokorski - 04 May, 2007)
 Add Message Add Message
to: "Adding MaterialPropertiesTable to gdml"

 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 ]