From 39fac5e3a88d4a59f2855f019a462aeed94c8e2d Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Fri, 4 Aug 2017 17:51:16 +0200 Subject: [PATCH] v0.9.3 --- mvd.C | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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(""); -- 2.43.0