From: Philipp Klaus Date: Fri, 4 Aug 2017 15:51:16 +0000 (+0200) Subject: v0.9.3 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=39fac5e3a88d4a59f2855f019a462aeed94c8e2d;p=mvd_geometry.git v0.9.3 --- diff --git a/mvd.C b/mvd.C index 9c7c26d..102554d 100644 --- a/mvd.C +++ b/mvd.C @@ -47,6 +47,8 @@ void mvd() manager->SetTopVolume(top); + TGeoVolume *mvd = new TGeoVolumeAssembly("MVDscripted"); + TGeoVolume *sensorActive = manager->MakeBox("sensorActive", Al, sensorDimensionsActive[0]/2, sensorDimensionsActive[1]/2, sensorDimensionsActive[2]/2); TGeoVolume *sensorPassive = manager->MakeBox("sensorPassive", Al, sensorDimensionsPassive[0]/2, sensorDimensionsPassive[1]/2, sensorDimensionsPassive[2]/2); TGeoVolume *sensorGlue = manager->MakeBox("sensorGlue", glue, sensorDimensionsActive[0]/2, (sensorDimensionsActive[1] + sensorDimensionsPassive[1])/2, glueThickness/2); @@ -192,7 +194,7 @@ void mvd() T.SetTranslation(0, 0, stationPosition[i]); R.SetAngles(0.,0.,0.); M = new TGeoCombiTrans(T,R); - top->AddNode(station, 1, M); + mvd->AddNode(station, 1, M); station->Draw(""); gPad->GetView()->RotateView(90, 180); char filename[30]; @@ -200,10 +202,11 @@ void mvd() c3D->SaveAs(filename); stations[i] = station; } + top->AddNode(mvd, 1); //manager->CheckGeometryFull(); manager->CloseGeometry(); top->Export("mvd.root"); - top->Draw("ogl"); + mvd->Draw("ogl"); //station->Draw("ogl"); //quadrant->Draw("ogl"); //quadrant->Draw("");