Skip to content

Commit 1843c31

Browse files
committed
feat(califa/geo):CalifaWorld based on TGeoVolumeAssembly
1 parent b02e93c commit 1843c31

1 file changed

Lines changed: 10 additions & 25 deletions

File tree

califa/geobase/create_califa_geo.C

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -311,25 +311,10 @@ void create_califa_geo_selector(const std::string expNumber = "nominal",
311311
auto top = new TGeoVolumeAssembly("TOP");
312312
gGeoMan->SetTopVolume(top);
313313

314-
// Definition of the Mother Volume --------------------------------
315-
auto tgeotrans0 = new TGeoCombiTrans("tgeotrans0", 0., 0., 9., fRefRot);
316-
tgeotrans0->RegisterYourself();
317314
auto tgeotrans1 = new TGeoCombiTrans("tgeotrans1", 0, 0, 0., fRefRot);
318315
tgeotrans1->RegisterYourself();
319316

320-
auto mother_outer = new TGeoTube("mother_outer", 0., 81., (58. + 73.5) / 2.);
321-
auto inner_hole = new TGeoTube("inner_hole", 0., 29., 130. / 2.);
322-
auto mother_endcap = new TGeoSphere("mother_endcap", 38., 73.5, 7., 90., 0., 360.);
323-
324-
auto mother_endcap2 = new TGeoPgon("mother_endcap2", 0, 360, 16, 2);
325-
mother_endcap2->DefineSection(0, 54., 40., 80.);
326-
mother_endcap2->DefineSection(1, 85., 12., 34.);
327-
328-
auto califa_mother = new TGeoCompositeShape(
329-
"califa_mother",
330-
"mother_outer:tgeotrans0 - inner_hole:tgeotrans0 + mother_endcap:tgeotrans1 + mother_endcap2:tgeotrans1");
331-
332-
auto pWorld = new TGeoVolume("CalifaWorld", califa_mother, pAirMedium);
317+
auto pWorld = new TGeoVolumeAssembly("CalifaWorld");
333318
top->AddNode(pWorld, 0, tgeotrans1);
334319

335320
// FINAL CALIFA CARREL + iPHOS VERSION (SINCE NOV 2019)
@@ -1598,7 +1583,7 @@ void CreateHoldingStructure(TGeoVolume* world,
15981583
const int numZPlanes = 2;
15991584

16001585
auto carbonfiber = new TGeoPgon("CarbonFiberCone", -90., 180., 8, numZPlanes);
1601-
carbonfiber->DefineSection(0, -50.44, 58.36 - 0.6, 58.4 - 0.6);
1586+
carbonfiber->DefineSection(0, -50.44, 58.36 - 0.6 - 0.29, 58.4 - 0.6 - 0.29);
16021587
carbonfiber->DefineSection(1, -48.54, 42.0, 42.04);
16031588

16041589
auto CarbonFiberBack = new TGeoVolume("CarbonFiberBack", carbonfiber, med1);
@@ -1625,8 +1610,8 @@ void CreateHoldingStructure(TGeoVolume* world,
16251610
auto rot2 = new TGeoRotation();
16261611
rot2->RotateZ(180);
16271612

1628-
auto trans1 = make_trans(0.1, 0.0, 0.0, rot1, disCalMes);
1629-
auto trans2 = make_trans(-0.1, 0.0, 0.0, rot2, disCalWix);
1613+
auto trans1 = make_trans(0.4, 0.0, 0.0, rot1, disCalMes);
1614+
auto trans2 = make_trans(-0.4, 0.0, 0.0, rot2, disCalWix);
16301615

16311616
world->AddNode(CarbonFiberBack, 1, trans1);
16321617
world->AddNode(CarbonFiberBack, 2, trans2);
@@ -1714,9 +1699,9 @@ void CreateHoldingStructure(TGeoVolume* world,
17141699
// auto volbox2 = new TGeoVolume("volbox2", box_mother2, med2);
17151700
// volbox2->SetLineColor(3);
17161701

1717-
auto box_tape = new TGeoBBox("box_tape", 17. / 2., 0.15, 16.3 / 2.);
1718-
// auto volbox_tape = new TGeoVolume("volbox_tape", box_tape, med2);
1719-
// volbox_tape->SetLineColor(19);
1702+
auto box_cover_barrel = new TGeoBBox("box_cover_barrel", 17. / 2., 0.15, 16.3 / 2.);
1703+
// auto volbox_cover_barrel = new TGeoVolume("volbox_cover_barrel", box_cover_barrel, med2);
1704+
// volbox_cover_barrel->SetLineColor(19);
17201705

17211706
TGeoCompositeShape* GeoCompObj;
17221707
std::vector<double> disz = { -31.1, -6.2, 18., 31.1 + 10.4, 65. };
@@ -1775,10 +1760,10 @@ void CreateHoldingStructure(TGeoVolume* world,
17751760
vmatrix22->RegisterYourself();
17761761

17771762
// auto trs = make_trans(xi-offsetX, yi, disz[j], rot22, disCalMes);
1778-
// world->AddNode(volbox_tape, i+1, trs);
1763+
// world->AddNode(volbox_cover_barrel, i+1, trs);
17791764

1780-
auto tape = new TGeoUnion(GeoCompObj, box_tape, 0, vmatrix22);
1781-
TString name = TString::Format("tape_%zu", i + 8 * j);
1765+
auto tape = new TGeoUnion(GeoCompObj, box_cover_barrel, 0, vmatrix22);
1766+
TString name = TString::Format("box_cover_%zu", i + 8 * j);
17821767
GeoCompObj = new TGeoCompositeShape(name.Data(), tape);
17831768
}
17841769

0 commit comments

Comments
 (0)