Skip to content

Commit

Permalink
Rib Material CarbonFiber; removed hardcoded variables
Browse files Browse the repository at this point in the history
  • Loading branch information
chchatte92 committed Dec 13, 2023
1 parent 1120377 commit 0f28a80
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
8 changes: 6 additions & 2 deletions compact/pid/drich.xml
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,20 @@
backplane="DRICH_window_thickness + 1.0*cm"
rmin="DRICH_rmin1 + DRICH_wall_thickness - 1.0*cm"
rmax="DRICH_rmax2 - DRICH_wall_thickness - 3.0*cm"
phiw="59.5*degree"
phiw="59.75*degree"
thickness="0.2*cm"
focus_tune_x="-7.00*cm"
focus_tune_z="6.15*cm"
mirThCut1="0.40"
mirThCut2="0.41"
mirPhiACut="0.05"
mirPhiBCut="0.06"
>
<mirrorRib
material="CarbonFiber"
sectorRibPhi="0.5*degree"
/>

</mirror>
<!-- /detectors/detector/sensors -->
<documentation level="10">
#### Sensors
Expand Down
11 changes: 7 additions & 4 deletions src/DRICH_geo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ static Ref_t createDetector(Detector& desc, xml::Handle_t handle, SensitiveDetec
auto mirrorPhiBCut = mirrorElem.attr<double>(_Unicode(mirPhiBCut));
auto mirrorBackplane = mirrorElem.attr<double>(_Unicode(backplane));
auto mirrorThickness = mirrorElem.attr<double>(_Unicode(thickness));
auto mirrorRibElem = mirrorElem.child(_Unicode(mirrorRib));
auto mirrorRibMat = desc.material(mirrorRibElem.attr<std::string>(_Unicode(material)));
auto mirrorSecRib = mirrorRibElem.attr<double>(_Unicode(sectorRibPhi));
auto mirrorRmin = mirrorElem.attr<double>(_Unicode(rmin));
auto mirrorRmax = mirrorElem.attr<double>(_Unicode(rmax));
auto mirrorPhiw = mirrorElem.attr<double>(_Unicode(phiw));
Expand Down Expand Up @@ -423,7 +426,7 @@ static Ref_t createDetector(Detector& desc, xml::Handle_t handle, SensitiveDetec
//ribs
Tube pieSliceInnerRib(0.01*cm,vesselRmax2,tankLength/2.0, -mirrorPhiw / 2.0, mirrorPhiw / 2.0);
Tube pieSliceOuterRib(0.01*cm,vesselRmax2,tankLength/2.0, (mirrorPhiACut*mirrorPhiw) / 2.0 , (mirrorPhiBCut*mirrorPhiw) / 2.0);
Tube pieSliceSectorRib(0.01*cm,vesselRmax2,tankLength/2.0, mirrorPhiw / 2.0 , (mirrorPhiw+0.017) / 2.0);
Tube pieSliceSectorRib(0.01*cm,vesselRmax2,tankLength/2.0, mirrorPhiw / 2.0 , (mirrorPhiw+mirrorSecRib) / 2.0);
//mirror solids
IntersectionSolid mirrorInnerSolid(pieSliceInner, mirrorSolid1, mirrorPlacement);
IntersectionSolid mirrorOuterSolidA(pieSliceOuterA, mirrorSolid2, mirrorPlacement);
Expand All @@ -438,9 +441,9 @@ static Ref_t createDetector(Detector& desc, xml::Handle_t handle, SensitiveDetec
Volume mirrorOuterVolA(detName + "_mirror_tile1" + secName, mirrorOuterSolidA, mirrorMat);
Volume mirrorOuterVolB(detName + "_mirror_tile2" + secName, mirrorOuterSolidB, mirrorMat);

Volume mirrorRibInnerVol(detName + "_mirror_rib0" + secName, mirrorRibInnerSolid, vesselMat);
Volume mirrorRibOuterVol(detName + "_mirror_rib1" + secName, mirrorRibOuterSolid, vesselMat);
Volume mirrorRibSectorVol(detName + "_mirror_rib3" + secName, mirrorRibSectorSolid, vesselMat);
Volume mirrorRibInnerVol(detName + "_mirror_rib0" + secName, mirrorRibInnerSolid, mirrorRibMat);
Volume mirrorRibOuterVol(detName + "_mirror_rib1" + secName, mirrorRibOuterSolid, mirrorRibMat);
Volume mirrorRibSectorVol(detName + "_mirror_rib3" + secName, mirrorRibSectorSolid, mirrorRibMat);

mirrorInnerVol.setVisAttributes(mirrorVis);
mirrorOuterVolA.setVisAttributes(mirrorVis);
Expand Down

0 comments on commit 0f28a80

Please sign in to comment.