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);
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];
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("");