]> jspc29.x-matter.uni-frankfurt.de Git - mvd_geometry.git/commitdiff
v0.9.3
authorPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Fri, 4 Aug 2017 15:51:16 +0000 (17:51 +0200)
committerPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Fri, 4 Aug 2017 15:51:16 +0000 (17:51 +0200)
mvd.C

diff --git a/mvd.C b/mvd.C
index 9c7c26dec702f8771432ae81b15df0089519dca5..102554dda7b60da2b3134018e7be1c1c13ddbe9b 100644 (file)
--- 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("");