22 new FairGeoLoader(
"TGeo",
"FairGeoLoader");
23 gGeoManager->SetName(
"NEULANDgeom");
26 TGeoRotation* rot0 =
nullptr;
27 TGeoRotation* rot90 =
new TGeoRotation();
29 TGeoRotation* rot45 =
new TGeoRotation();
32 TGeoVolume* volNeuland =
new TGeoVolumeAssembly(
"volNeuland");
33 Int_t nindex = 0, nPlane = 0;
44 volNeuland->AddNode(volPaddle, nindex,
new TGeoTranslation(0, a, b));
48 volNeuland->AddNode(volPaddle, nindex,
new TGeoCombiTrans(a, 0, b, rot90));
53 TGeoVolume* top =
new TGeoVolumeAssembly(
"TOP");
54 gGeoManager->SetTopVolume(top);
55 top->AddNode(volNeuland, 1,
new TGeoCombiTrans(0., 0., 0., rot0));
58 gGeoManager->CloseGeometry();
59 gGeoManager->CheckOverlaps(0.001);
60 gGeoManager->PrintOverlaps();
64 TString geoFileName = TString::Format(
"%s/geometry/neuland_%s_%ddp.geo.root",
65 TString(gSystem->Getenv(
"VMCWORKDIR")).Data(),
68 TFile* geoFile =
new TFile(geoFileName,
"RECREATE");
72 std::cout << std::endl;
73 std::cout <<
"Done. " << nindex <<
" Paddles in " << nPlane <<
" Planes" << std::endl;
74 std::cout << std::endl;
75 std::cout <<
"\033[34m Creating geometry:\033[0m "
76 <<
"\033[33m" << geoFileName <<
" \033[0m" << std::endl;
77 std::cout <<
"Macro finished successfully." << std::endl;