4 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
17 mediafile+=
"/geometry/media_pnd.geo";
19 FairGeoLoader*
geoLoad =
new FairGeoLoader(
"TGeo",
"FairGeoLoader");
20 FairGeoInterface *
geoFace = geoLoad->getGeoInterface();
21 geoFace->setMediaFile(mediafile);
25 FairGeoMedia *
Media = geoFace->getMedia();
26 FairGeoBuilder *
geobuild=geoLoad->getGeoBuilder();
33 Int_t
nmed=geobuild->createMedium(CbmMediumAir);
34 nmed=geobuild->createMedium(CbmMediumSilicon);
35 nmed=geobuild->createMedium(CbmMediumCarbon);
36 nmed=geobuild->createMedium(CbmMediumAluminium);
38 TGeoManager*
GeoMan = (TGeoManager*)gROOT->FindObject(
"FAIRGeom");
40 TGeoVolume *
top =
new TGeoVolumeAssembly(
"SiliconTestStation");
42 GeoMan->SetTopVolume(top);
46 TGeoMaterial *
matVacuum =
new TGeoMaterial(
"vacuum",0,0,0);
47 TGeoMaterial *
matSilicon =
new TGeoMaterial(
"silicon", 28.0855, 14, 2.33);
48 TGeoMedium *
medVacuum =
new TGeoMedium(
"vacuum", 1, matVacuum);
49 TGeoMedium *
medSilicon =
new TGeoMedium(
"silicon", 2, matSilicon);
51 TGeoVolumeAssembly*
assamb =
new TGeoVolumeAssembly(
"DummysensorAss");
53 TGeoShape*
shape =
new TGeoBBox(0.96, 0.96, 0.015);
54 TGeoRotation*
rot =
new TGeoRotation(
"rot",0.,0.,0.);
55 TGeoCombiTrans *
trafo =
new TGeoCombiTrans(0., 0., 4., rot);
56 TGeoVolume*
sensor =
new TGeoVolume(
"Module15",shape,GeoMan->GetMedium(
"silicon"));
58 TGeoShape*
shape2 =
new TGeoBBox(0.96, 0.96, 0.015);
59 TGeoRotation*
rot2 =
new TGeoRotation(
"rot",90.,0.,0.);
60 TGeoCombiTrans *
trafo2 =
new TGeoCombiTrans(0., 0., 4.5, rot2);
61 TGeoVolume*
sensor2 =
new TGeoVolume(
"Module16",shape2,GeoMan->GetMedium(
"silicon"));
63 assamb->AddNode(sensor,0,trafo);
64 assamb->AddNode(sensor2,0,trafo2);
65 top->AddNode(assamb,0,
new TGeoHMatrix());
67 cout<<
"----------------------------------------------------------"<<endl;
71 cout<<
"----------------------------------------------------------"<<endl;
75 GeoMan->CloseGeometry();
76 GeoMan->Export(outfile.Data());
FairGeoMedium * CbmMediumCarbon
FairGeoMedium * CbmMediumAluminium
FairGeoMedium * CbmMediumSilicon
TGeoVolumeAssembly * assamb
TGeoMaterial * matSilicon
FairGeoBuilder * geobuild
FairGeoMedium * CbmMediumAir
FairGeoInterface * geoFace