GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » TGeoMixture SetIndex function
TGeoMixture SetIndex function [message #11729] Mon, 02 May 2011 15:37 Go to previous message
Maria Patsyuk is currently offline  Maria Patsyuk
Messages: 58
Registered: April 2010
continuous participant
From: *gsi.de
Hello,

there is a function called "SetIndex()" in TGeoMixture class.
What does this index mean?

For example if I define a number of media for the detector geometry (an example for Fused Sil medium follows), what should these indices for each of my medium mean?
Should they be unique? Where are they later used?

// Mixture: FusedSil
nel = 2;
density = 2.200000;
TGeoMixture* FusedSil = new TGeoMixture("FusedSil", nel,density);
aa = 28.090000; z = 14.000000; w = 0.467475; // SI
FusedSil->DefineElement(0,aa,z,w);
aa = 15.999400; z = 8.000000; w = 0.532525; // O
FusedSil->DefineElement(1,aa,z,w);
FusedSil->SetIndex(0);
// Medium: FusedSil
numed = 1; // medium number
par[0] = 1.000000; // isvol
par[1] = 1.000000; // ifield
par[2] = 20.000000; // fieldm
par[3] = -1.000000; // tmaxfd
par[4] = -1.000000; // stemax
par[5] = -1.000000; // deemax
par[6] = 0.001000; // epsil
par[7] = -1.000000; // stmin
TGeoMedium *FusedSil_m = new TGeoMedium("FusedSil", numed,FusedSil, par);


Thank you
 
Read Message
Read Message
Previous Topic: ConstructOpGeometry function
Next Topic: IEEE 2011
Goto Forum:
  


Current Time: Sat Apr 27 02:21:27 CEST 2024

Total time taken to generate the page: 0.00806 seconds