+ // Save the density values for the TRD absorbtion
+ fFoilDensity = dmy;
+ if (fGasMix == 1)
+ fGasDensity = dgm1;
+ else
+ fGasDensity = dgm2;
+
+}
+
+//_____________________________________________________________________________
+void AliTRD::DrawModule()
+{
+ //
+ // Draw a shaded view of the Transition Radiation Detector version 0
+ //
+
+ // Set everything unseen
+ gMC->Gsatt("*" ,"SEEN",-1);
+
+ // Set ALIC mother transparent
+ gMC->Gsatt("ALIC","SEEN", 0);
+
+ // Set the volumes visible
+ if (fGeometry->IsVersion() == 0) {
+ gMC->Gsatt("B071","SEEN", 0);
+ gMC->Gsatt("B074","SEEN", 0);
+ gMC->Gsatt("B075","SEEN", 0);
+ gMC->Gsatt("B077","SEEN", 0);
+ gMC->Gsatt("BTR1","SEEN", 0);
+ gMC->Gsatt("BTR2","SEEN", 0);
+ gMC->Gsatt("BTR3","SEEN", 0);
+ gMC->Gsatt("TRD1","SEEN", 0);
+ gMC->Gsatt("TRD2","SEEN", 0);
+ gMC->Gsatt("TRD3","SEEN", 0);
+ }
+ else {
+ gMC->Gsatt("B071","SEEN", 0);
+ gMC->Gsatt("B074","SEEN", 0);
+ gMC->Gsatt("B075","SEEN", 0);
+ gMC->Gsatt("B077","SEEN", 0);
+ gMC->Gsatt("BTR1","SEEN", 0);
+ gMC->Gsatt("BTR2","SEEN", 0);
+ gMC->Gsatt("BTR3","SEEN", 0);
+ gMC->Gsatt("TRD1","SEEN", 0);
+ if (fGeometry->GetPHOShole())
+ gMC->Gsatt("TRD2","SEEN", 0);
+ if (fGeometry->GetRICHhole())
+ gMC->Gsatt("TRD3","SEEN", 0);
+ }
+ gMC->Gsatt("UCII","SEEN", 0);
+ gMC->Gsatt("UCIM","SEEN", 0);
+ gMC->Gsatt("UCIO","SEEN", 0);
+ gMC->Gsatt("UL02","SEEN", 1);
+ gMC->Gsatt("UL05","SEEN", 1);
+ gMC->Gsatt("UL06","SEEN", 1);
+
+ gMC->Gdopt("hide", "on");
+ gMC->Gdopt("shad", "on");
+ gMC->Gsatt("*", "fill", 7);
+ gMC->SetClipBox(".");
+ gMC->SetClipBox("*", 0, 2000, -2000, 2000, -2000, 2000);
+ gMC->DefaultRange();
+ gMC->Gdraw("alic", 40, 30, 0, 12, 9.4, .021, .021);
+ gMC->Gdhead(1111, "Transition Radiation Detector");
+ gMC->Gdman(18, 4, "MAN");
+