19 TFile*
fi =
new TFile(outfile,
"RECREATE");
21 FairGeoLoader*
geoLoad =
new FairGeoLoader(
"TGeo",
"FairGeoLoader");
22 FairGeoInterface *
geoFace = geoLoad->getGeoInterface();
23 geoFace->setMediaFile(
"../../geometry/media_pnd.geo");
27 FairGeoMedia *
Media = geoFace->getMedia();
28 FairGeoBuilder *
geobuild=geoLoad->getGeoBuilder();
32 Int_t
nmed=geobuild->createMedium(CbmMediumSilicon);
34 TGeoManager*
gGeoMan = (TGeoManager*)gROOT->FindObject(
"FAIRGeom");
36 TGeoVolume *
top =
new TGeoVolumeAssembly(
"top");
38 gGeoMan->SetTopVolume(top);
41 TGeoVolumeAssembly* TBSetup =
new TGeoVolumeAssembly(
"MvdTestbeamSetup");
42 TGeoVolumeAssembly* module =
new TGeoVolumeAssembly(
"ToPix4Module");
44 TGeoShape* ToPix4Shape =
new TGeoBBox(
"ToPix4Shape", 0.2/2, 0.32/2, 0.0285/2);
45 TGeoVolume* ToPix4Volume =
new TGeoVolume(
"ToPix4Volume", ToPix4Shape, gGeoMan->GetMedium(
"silicon"));
47 TGeoShape* EpiSensorShape =
new TGeoBBox(
"EpiSensorShape", 0.2/2, 0.32/2, 0.0100/2);
48 TGeoVolume* EpiSensorVolume =
new TGeoVolume(
"EpiSensorVolume", EpiSensorShape, gGeoMan->GetMedium(
"silicon"));
51 TGeoTranslation transToPix(
"ToPixTranslation", .0, .0, 0.0285/2 + 0.0100/2 + 0.002);
53 module->AddNode(EpiSensorVolume, 0);
54 module->AddNode(ToPix4Volume, 0,
new TGeoHMatrix(transToPix));
56 TBSetup->AddNode(module, 0,
new TGeoTranslation(.0,.0,positionStage1));
57 TBSetup->AddNode(module, 1,
new TGeoTranslation(.0,.0,positionStage2));
58 TBSetup->AddNode(module, 2,
new TGeoTranslation(.0,.0,positionStage3));
59 TBSetup->AddNode(module, 3,
new TGeoTranslation(.0,.0,positionStage4));
61 top->AddNode(TBSetup,0);
63 gGeoMan->CloseGeometry();
TGeoManager * gGeoManager
FairGeoMedium * CbmMediumSilicon
FairGeoBuilder * geobuild
FairGeoInterface * geoFace