11 #include <TGeoCompositeShape.h>
12 #include <TGeoManager.h>
13 #include <TGeoMaterial.h>
14 #include <TGeoMatrix.h>
15 #include <TGeoMedium.h>
17 #include <TGeoVolume.h>
59 gGeoMan = (TGeoManager*)gROOT->FindObject(
"FAIRGeom");
64 TGeoVolume* top =
new TGeoVolumeAssembly(
"TOP");
67 TGeoVolume* tut4 =
new TGeoVolumeAssembly(
geoVersion);
68 top->AddNode(tut4, 1);
74 cout <<
"Voxelizing." << endl;
84 TFile* outfile = TFile::Open(
FileName,
"RECREATE");
88 TFile* outfile1 = TFile::Open(
FileName1,
"RECREATE");
100 TString geoPath = gSystem->Getenv(
"VMCWORKDIR");
101 TString geoFile = geoPath +
"/common/geometry/media.geo";
126 TGeoVolume* det_plane_vol =
new TGeoVolume(
"tut4_det", det_plane, SiliconVolMed);
127 det_plane_vol->SetLineColor(kBlue);
128 det_plane_vol->SetTransparency(70);
129 TGeoTranslation* det_plane_trans =
new TGeoTranslation(
"", 0., 0., 0.);
131 return det_plane_vol;
137 TGeoTranslation* det_trans = NULL;
140 for (Int_t detectorPlanes = 0; detectorPlanes < 40; detectorPlanes++) {
152 TString detStr =
"Tutorial4/det";
153 TString volStr =
"/TOP_1/tutorial4_1/tut4_det_";
155 for (Int_t detectorPlanes = 0; detectorPlanes < 40; detectorPlanes++) {
158 volPath += detectorPlanes;
161 symName += Form(
"%02d", detectorPlanes);
163 cout <<
"Path: " << volPath <<
", " << symName << endl;
166 gGeoMan->SetAlignableEntry(symName.Data(), volPath.Data());
168 cout <<
"Nr of alignable objects: " <<
gGeoMan->GetNAlignable() << endl;
void setMediaFile(const char *file)
FairGeoMedia * getMedia()
const Float_t Module_Size_Z
FairGeoInterface * getGeoInterface()
const TString BoxVolumeMedium
const Float_t Module_Size_X
void create_materials_from_media_file()
const Float_t Module_Size_Y
void add_alignable_volumes()
const Float_t First_Z_Position
TGeoVolume * create_detector()
const TString KeepingVolumeMedium
FairGeoBuilder * getGeoBuilder()
void Create_Tutorial4_Geometry()
virtual Int_t createMedium(FairGeoMedium *)=0