31 new FairGeoLoader(
"TGeo",
"FairGeoLoader");
32 gGeoManager->SetName(
"NEULANDgeom");
35 TGeoRotation* rot0 =
nullptr;
36 TGeoRotation* rot90 =
new TGeoRotation();
39 TGeoVolume* volNeuland =
new TGeoVolumeAssembly(
"volNeuland");
40 Int_t nindex = 0, nPlane = 0;
51 volNeuland->AddNode(volPaddle, nindex,
new TGeoTranslation(0, a, b));
55 volNeuland->AddNode(volPaddle, nindex,
new TGeoCombiTrans(a, 0, b, rot90));
60 TGeoVolume* top =
new TGeoVolumeAssembly(
"TOP");
61 gGeoManager->SetTopVolume(top);
62 top->AddNode(volNeuland, 1,
new TGeoCombiTrans(0., 0., 0., rot0));
65 gGeoManager->CloseGeometry();
66 gGeoManager->CheckOverlaps(0.001);
67 gGeoManager->PrintOverlaps();
71 TString geoFileName = TString::Format(
"%s/geometry/neuland_%ddp.geo.root",
72 TString(gSystem->Getenv(
"VMCWORKDIR")).Data(),
75 TFile geoFile(geoFileName,
"RECREATE");
79 std::cout << std::endl;
80 std::cout <<
"Done. " << nindex <<
" Paddles in " << nPlane <<
" Planes" << std::endl;
81 std::cout << std::endl;
82 std::cout <<
"\033[34m Creating geometry:\033[0m "
83 <<
"\033[33m" << geoFileName <<
" \033[0m" << std::endl;
84 std::cout <<
"Macro finished successfully." << std::endl;