Skip to content

Commit dd38ee6

Browse files
committed
Fix placement issue to get sensor materials inside the volume. This now means that the stave faces are not at local z=0 but instead at z=+-totalSensorMaterialThickness+0.1. Also fix global position bug since movement outwards is directional.
1 parent 6bb8039 commit dd38ee6

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

Detectors/Upgrades/ALICE3/FT3/simulation/src/FT3Layer.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,9 @@ void FT3Layer::createLayer(TGeoVolume* motherVolume)
450450
}
451451
// Finally put everything in the mother volume
452452
auto* FwdDiskRotation = new TGeoRotation("FwdDiskRotation", 0, 0, 180);
453-
auto* FwdDiskCombiTrans = new TGeoCombiTrans(0, 0, mZ + z_local_offset, FwdDiskRotation);
453+
// need to shift outwards always, so + forwards and - backwards
454+
double z_offset_directional = mDirection ? z_local_offset : -z_local_offset;
455+
auto* FwdDiskCombiTrans = new TGeoCombiTrans(0, 0, mZ + z_offset_directional, FwdDiskRotation);
454456

455457
LOG(info) << "Inserting " << layerVol->GetName() << " inside " << motherVolume->GetName();
456458
motherVolume->AddNode(layerVol, 1, FwdDiskCombiTrans);

Detectors/Upgrades/ALICE3/FT3/simulation/src/FT3Module.cxx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,13 +538,18 @@ void FT3Module::create_layout_staveGeo(double mZ, int layerNumber, int direction
538538
* Naturally, this will be mirrored for layers in the backwards direction,
539539
* such that the face of the sensors always face the interaction region.
540540
*
541-
* Currently, we stipulate that the default stave face is at local z
542-
* that is slightly shifted by the air thickness encapsulating the layer
541+
* Currently, we stipulate that the default stave face is at local z=0,
542+
* that is then shifted by the half air thickness encapsulating the layer
543543
* to avoid overlaps with the air and services. All offsets are
544544
* calculated for backward direction (since that is a positive shift),
545-
* and then flipped for forward.
545+
* and then flipped for forward. At that point, the innermost/frontmost
546+
* stave face is at the edge of the air volume, so we shift it back a little
547+
* to make space for the sensor materials and a slight margin.
546548
*/
547-
double z_offset_to_carbon_face = z_offset_local;
549+
double totalSensorMaterialThickness =
550+
Constants::epoxyThickness + Constants::kaptonThickness + Constants::copperThickness +
551+
Constants::epoxyThickness + Constants::siliconThickness;
552+
double z_offset_to_carbon_face = z_offset_local - totalSensorMaterialThickness - 0.1;
548553
double z_offset_to_glue_Ka =
549554
z_offset_to_carbon_face + Constants::epoxyThickness / 2;
550555
double z_offset_to_kapton =

0 commit comments

Comments
 (0)