Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ class FT3Module
double Rout, double z_offset_local, const Constants::StaveConfig& staveConfig,
TGeoVolume* motherVolume);

// Middle disks (StaveConfig::isFlatCorrugated): flat lanes on two z planes, built
// straight from the tabulated fills, with no triangular carbon staves
void create_layout_flatLanes(
int layerNumber, int direction, double z_offset_local,
const Constants::StaveConfig& staveConfig, TGeoVolume* motherVolume);

// Walk every stave of a layer, create its volumes and work out where its
// modules go, leaving the positions in y_positionsPosNeg
void build_staves_exact(
Expand Down Expand Up @@ -124,9 +130,23 @@ class FT3Module
TGeoVolume* motherVolume, int layerNumber, int direction, unsigned stave_idx,
unsigned volume_count, double x_mid, double y_mid, double z_mid, double moduleHeight);

// Box of one material for the flat lanes (glue, FPC copper and kapton, carbon plate, flat of the
// corrugated sheet). Half lengths are in x, y, z of the layer.
void addLaneBox(
TGeoVolume* motherVolume, const std::string& name, Materials::MaterialID material,
unsigned volume_count, double x_mid, double y_mid, double z_mid,
double x_half_length, double y_half_length, double z_half_length);

// Wall of the corrugated sheet: a slanted slab between two flats, extruded along y from y_lo to
// y_hi. xa, xb are the x of its two vertical end faces and zLo/zHi the z of its two surfaces there.
void addLaneSheetWall(
TGeoVolume* motherVolume, const std::string& name, unsigned volume_count,
double xa, double zaLo, double zaHi, double xb, double zbLo, double zbHi,
double y_lo, double y_hi);

void addSingleSensorVolume(
TGeoVolume* motherVolume, int layerNumber, int direction, unsigned stave_idx,
unsigned volume_count, double active_x_mid, double y_mid, double z_mid, bool isLeft);
};

#endif // FT3MODULE_H
#endif // FT3MODULE_H
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,38 @@ const double staveMaterialBudget =
// for the eff. thickness, we use the CarbonFiber X0 = 27 cm from FT3Materials.h
const double effectiveCarbonThickness_Stave = staveMaterialBudget * 27.0; // ~187 um

/*
* Flat (middle) disks. Every lane is a flat stack, from the silicon backwards (away from the IP):
* silicon | glue | FPC (copper, then kapton) | glue | carbon plate | glue | corrugated sheet
* The plate is one continuous strip per fill, wider than the FPC by flatLaneOverhang on each
* side. The overhang of the plate rests, through a layer of glue, on the flats of one
* continuous corrugated carbon sheet that runs across all lanes (see FT3Module::create_layout_flatLanes).
* The FPC (and its two layers of glue) is a module wide, 54.4 mm: the silicon with its periphery, plus the
* 2.1 mm bond area on each side. The flats of the sheet reach under the overhang of the plate, through
* the same depth as the FPC, so the FPC must end before them.
*/
// The FPC and the sensors are the same on all disks, so the flat lanes use the same copper and kapton as the staves
const double flatLaneFpcCopperThickness = copperThickness;
const double flatLaneFpcKaptonThickness = kaptonThickness;
const double flatLaneFpcThickness = flatLaneFpcCopperThickness + flatLaneFpcKaptonThickness; // 360 um
const double flatLaneGlueThickness = epoxyThickness; // between all layers of the stack
const double flatLaneCarbonBaseThickness = 0.06; // the plate: 0.6 mm
const double flatLaneSheetThickness = 0.06; // the corrugated sheet: 0.6 mm
const double flatLaneOverhang = 0.29; // plate beyond the FPC, each side (2.9 mm)
const double flatLaneSheetReach = 0.06; // the flats of the sheet reach this far under the overhang
const double flatLaneSheetMinClearance = 0.005; // the sheet must stay 50 um clear of the silicon
// distance from the silicon back face to the front face of the plate (towards the sheet side)
const double flatLaneStackToPlate = 2 * flatLaneGlueThickness + flatLaneFpcThickness;
// everything behind the silicon mid-plane, up to the back of the plate
const double flatLaneStackBehindSilicon = siliconThickness / 2 + flatLaneStackToPlate + flatLaneCarbonBaseThickness;
const double staveOpeningAngle = 60 * TMath::DegToRad();
const double sinTheta = TMath::Sin(staveOpeningAngle / 2);
const double cosTheta = TMath::Cos(staveOpeningAngle / 2);
const double alpha = TMath::Pi() / 2 - staveOpeningAngle / 2; // bottom angles
const double staveSensorGap = 0.21; // 2.1mm bonding region on each side: 54.4mm stave width
const double staveWidth = sensor1x2_width + 2 * staveSensorGap;
const double flatLaneFpcWidth = staveWidth; // FPC and its glue: 54.4 mm
const double flatLanePlateWidth = flatLaneFpcWidth + 2 * flatLaneOverhang; // the plate: 60.2 mm
/*
* The stave is created from two carbon legs, and the FPC is its face -- being glued
* onto carbon wings that stick out:
Expand Down Expand Up @@ -211,6 +237,19 @@ struct StaveConfig {
* split by the beam pipe.
*/
const std::vector<std::vector<StaveFill>>& exactStaveFills;
/*
* Flat corrugated lanes (middle disks) instead of triangular staves: every stave is a
* flat lane of modules on one of two z planes, corrugationDepth apart (staveOnFront picks
* the plane: true is the plane closer to the interaction point), and neighbouring lanes
* overlap in x. For such a config staveTriangleHeight and z_offsetStave do not apply.
* laneSensorGap and laneStackGap are the gaps used to place the modules of a flat lane:
* between sensors inside a stack, and between stacks along the lane.
* All of these default to the triangular-stave behaviour used by the outer disks.
*/
const bool isFlatCorrugated = false;
const double corrugationDepth = 0.;
const double laneSensorGap = sensor1x2_gap;
const double laneStackGap = moduleGap;
};

namespace OT_StavePositions
Expand Down Expand Up @@ -292,28 +331,95 @@ const std::vector<std::vector<StaveFill>> exactStaveFills = {

namespace ML_StavePositions
{
// Use prelim numbers for now, these will change! TODO
/*
* Middle disks: flat corrugated lanes instead of triangular staves.
* Layout from the sensor table coords_custom.txt: Rin 9, Rout 37 cm (envelope; the
* nearest corner of an active area is at 9.87 cm and the furthest at 36.35 cm, or 9.72 and
* 36.49 cm with the inactive rims of the sensors), 20 lanes of Nx2
* modules of 23.5 x 29 mm active sensors, 0.2 mm between all sensors (so the stack gap
* equals the sensor gap), 644 sensors per disk. Lanes alternate between two z planes
* 6 mm apart (747 and 753 mm for a disk centred on 750 mm), with a lane pitch of 34.475 mm
* (overlap in x) except for the two innermost lanes, 37.8 mm apart. The six lanes that
* the beam pipe cuts (IDs +-1, +-2, +-3) have two fills.
*
* Sensors face the interaction point on both planes; see FT3Module::create_layout_flatLanes.
*/
const double sensorGap = 0.02; // between the L and R sensors of a 1x2 module and between stacked modules
const double stackGap = 0.02; // same as sensorGap in this layout
const double corrugationDepth = 0.6; // distance between the two sensor planes
/*
* Cut lanes are built as two pieces on +-y_midpoint. The flat-lane builder reads the
* positions from exactStaveFills and does not use these two tables, they are kept
* consistent with the layout for the code that does.
*/
const std::map<int, std::pair<double, bool>> staveID_to_y_midpoint = {
{-3, {19.1, true}},
{-2, {21.8, true}},
{-1, {22.5, true}},
{1, {22.5, true}},
{2, {21.8, true}},
{3, {19.1, true}}};
{-3, {20.7895, true}},
{-2, {21.291, true}},
{-1, {21.6417, true}},
{1, {21.6417, true}},
{2, {21.291, true}},
{3, {20.7895, true}}};
// Length of one piece for a cut lane, otherwise the whole lane, in lane order.
const std::vector<double> y_lengths = {
30.5, 44.5, 53.6, 60.0, 64.6, 29.5, 25.8, 25.0,
25.0, 25.8, 29.5, 64.6, 60.0, 53.6, 44.5, 30.5};
const unsigned nStaves = 16; // y_lengths, staveOnFront and exactStaveFills follow this
const double x_midpoint_spacing = 4.5;
const std::vector<double> x_midpoints = makeStaveXMidpoints(nStaves, x_midpoint_spacing);
const double maxToleranceInner = 0.; // default not allowed inwards
const double maxToleranceOuter = 3.4; // leave 1mm for layer air encapsulation
const std::vector<bool> staveOnFront = makeStaveOnFront(nStaves);
// TODO: fill from the disk optimiser output, see OT_StavePositions above.
const std::vector<std::vector<StaveFill>> exactStaveFills = {};
17.5, 32.1, 43.78, 49.62,
55.46, 61.3, 64.22, 26.26,
23.34, 23.34, 23.34, 23.34,
26.26, 64.22, 61.3, 55.46,
49.62, 43.78, 32.1, 17.5};
const unsigned nStaves = 20; // y_lengths, x_midpoints, staveOnFront and exactStaveFills follow this
const double x_midpoint_spacing = 3.4475;
// Lane pitch is x_midpoint_spacing except between the two innermost lanes (+-1.89 cm), so the midpoints are tabulated
const std::vector<double> x_midpoints = {
-32.9175, -29.47, -26.0225, -22.575,
-19.1275, -15.68, -12.2325, -8.785,
-5.3375, -1.89, 1.89, 5.3375,
8.785, 12.2325, 15.68, 19.1275,
22.575, 26.0225, 29.47, 32.9175};
const double maxToleranceInner = 0.; // the sensors stay inside the nominal radii
const double maxToleranceOuter = 0.;
/*
* Front = the plane closer to the interaction point, as in the triangular-stave builder: for a
* forward disk that is the 747 mm plane (the outward-facing lanes); the other lanes are on the
* 753 mm plane (the inward-facing lanes). The first lane starts on the front plane and the
* lanes then alternate.
*/
const std::vector<bool> staveOnFront = [] {
std::vector<bool> onFront(nStaves);
for (unsigned i = 0; i < nStaves; i++) {
onFront[i] = (i % 2 == 0);
}
return onFront;
}();
/*
* One entry per lane in x_midpoints order, one fill per piece. yStart is the bottom edge of the
* lowest sensor; the modules follow upwards, 0.2 mm apart, so every fill is a single stack.
*/
const std::vector<std::vector<StaveFill>> exactStaveFills = {
{{-8.75, {6}}}, // ID -10 (753 mm)
{{-16.05, {11}}}, // ID -9 (747 mm)
{{-21.89, {15}}}, // ID -8 (753 mm)
{{-24.81, {17}}}, // ID -7 (747 mm)
{{-27.73, {19}}}, // ID -6 (753 mm)
{{-30.65, {21}}}, // ID -5 (747 mm)
{{-32.11, {22}}}, // ID -4 (753 mm)
{{-33.9195, {9}}, {7.6595, {9}}}, // ID -3 (747 mm)
{{-32.961, {8}}, {9.621, {8}}}, // ID -2 (753 mm)
{{-33.3117, {8}}, {9.9717, {8}}}, // ID -1 (747 mm)
{{-33.3117, {8}}, {9.9717, {8}}}, // ID +1 (753 mm)
{{-32.961, {8}}, {9.621, {8}}}, // ID +2 (747 mm)
{{-33.9195, {9}}, {7.6595, {9}}}, // ID +3 (753 mm)
{{-32.11, {22}}}, // ID +4 (747 mm)
{{-30.65, {21}}}, // ID +5 (753 mm)
{{-27.73, {19}}}, // ID +6 (747 mm)
{{-24.81, {17}}}, // ID +7 (753 mm)
{{-21.89, {15}}}, // ID +8 (747 mm)
{{-16.05, {11}}}, // ID +9 (753 mm)
{{-8.75, {6}}}, // ID +10 (747 mm)
};
} // namespace ML_StavePositions

// Get stave configuration based on tracker type
// Get stave configuration based on tracker type: the inner (middle) disks are flat corrugated
// lanes (the middle disks), the outer disks are triangular staves
inline StaveConfig getStaveConfig(bool isInnerDisk)
{
if (isInnerDisk) {
Expand All @@ -326,7 +432,11 @@ inline StaveConfig getStaveConfig(bool isInnerDisk)
ML_StavePositions::maxToleranceInner,
ML_StavePositions::maxToleranceOuter,
ML_StavePositions::staveOnFront,
ML_StavePositions::exactStaveFills};
ML_StavePositions::exactStaveFills,
true, // isFlatCorrugated: the middle disks have flat corrugated lanes
ML_StavePositions::corrugationDepth,
ML_StavePositions::sensorGap,
ML_StavePositions::stackGap};
} else {
return StaveConfig{
false, // isML
Expand Down Expand Up @@ -377,4 +487,4 @@ inline double eosCardEnvelopeExtension(bool isML)

} // namespace o2::ft3::ModuleConstants

#endif // FT3MODULECONSTANTS_H
#endif // FT3MODULECONSTANTS_H
Original file line number Diff line number Diff line change
Expand Up @@ -254,25 +254,26 @@ void Detector::buildFT3ScopingV3()
{
// Build the FT3 detector according to v3 layout
// https://indico.cern.ch/event/1596309/contributions/6728167/attachments/3190117/5677220/2025-12-10-AW-ALICE3planning.pdf
// Middle disks inner radius 10 cm
// Outer disks inner radius 20 cm
// Middle disks (layers 0-2): flat corrugated lanes: Rin 9 cm, Rout 37 cm
// (ML_StavePositions in FT3ModuleConstants.h)
// Outer disks (layers 3-5) inner radius 20 cm

LOG(info) << "Building FT3 Detector: v3 scoping version";

const int numberOfLayers = 6;
const float sensorThickness = 30.e-4;
const float layersx2X0 = 1.e-2;
using LayerConfig = std::array<float, 4>; // {z_layer, r_in, r_out, Layerx2X0}
const std::array<LayerConfig, numberOfLayers> layersConfigCSide{LayerConfig{77., 10.0, 35., layersx2X0},
LayerConfig{100., 10.0, 35., layersx2X0},
LayerConfig{122., 10.0, 35., layersx2X0},
const std::array<LayerConfig, numberOfLayers> layersConfigCSide{LayerConfig{77., 9.0, 37., layersx2X0},
LayerConfig{100., 9.0, 37., layersx2X0},
LayerConfig{122., 9.0, 37., layersx2X0},
LayerConfig{150., 20.0, 68.f, layersx2X0},
LayerConfig{180., 20.0, 68.f, layersx2X0},
LayerConfig{220., 20.0, 68.f, layersx2X0}};

const std::array<LayerConfig, numberOfLayers> layersConfigASide{LayerConfig{77., 10.0, 35., layersx2X0},
LayerConfig{100., 10.0, 35., layersx2X0},
LayerConfig{122., 10.0, 35., layersx2X0},
const std::array<LayerConfig, numberOfLayers> layersConfigASide{LayerConfig{77., 9.0, 37., layersx2X0},
LayerConfig{100., 9.0, 37., layersx2X0},
LayerConfig{122., 9.0, 37., layersx2X0},
LayerConfig{150., 20.0, 68.f, layersx2X0},
LayerConfig{180., 20.0, 68.f, layersx2X0},
LayerConfig{220., 20.0, 68.f, layersx2X0}};
Expand Down Expand Up @@ -669,4 +670,4 @@ Hit* Detector::addHit(int trackID, int detID, const TVector3& startPos, const TV
return &(mHits->back());
}

ClassImp(o2::ft3::Detector);
ClassImp(o2::ft3::Detector);
35 changes: 22 additions & 13 deletions Detectors/Upgrades/ALICE3/TRKFT3/FT3/simulation/src/FT3Layer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ void FT3Layer::createReferenceCircles(TGeoVolume* motherVolume, const std::strin

motherVolume->AddNode(innerCircleVol, 1, new TGeoTranslation(0, 0, z_position));
motherVolume->AddNode(outerCircleVol, 1, new TGeoTranslation(0, 0, z_position));
motherVolume->AddNode(outerCircleEdgeVol, 1, new TGeoTranslation(0, 0, z_position));
// the outer edge circle marks the OT tolerance, outside the middle-disk air volume
if (!mIsMiddleLayer) {
motherVolume->AddNode(outerCircleEdgeVol, 1, new TGeoTranslation(0, 0, z_position));
}
}

void FT3Layer::createLayer(TGeoVolume* motherVolume)
Expand Down Expand Up @@ -404,28 +407,34 @@ void FT3Layer::createLayer(TGeoVolume* motherVolume)
TGeoMedium* medAir = getMedium(Materials::MaterialID::Air);
TGeoVolume* layerVol = nullptr;

// set up stave config, differs between ML and OT disks
// set up stave config: middle layers (flat lanes), outer disks (triangular staves)
const Constants::StaveConfig& staveConfig = Constants::getStaveConfig(mIsMiddleLayer);

// need a thicker air layer to encompass the staves (4.5cm high, 1.2cm offsets)
// stave face is at z=0 (or +-z_offset_stave), meaning that volumes are at
// ~-+1cm < z < ~+-6cm, the +- referring forward/backward discs
double z_layer_thickness = // need to shift internally with this
o2::ft3::ModuleConstants::staveHeight +
o2::ft3::ModuleConstants::z_offsetStave(staveConfig.x_midpoint_spacing) +
o2::ft3::ModuleConstants::siliconThickness +
o2::ft3::ModuleConstants::copperThickness +
o2::ft3::ModuleConstants::kaptonThickness +
o2::ft3::ModuleConstants::epoxyThickness * 2 +
0.5; // add some extra room to ensure all volumes are encapsulated
// Middle layers: flat corrugated lanes, so two sensor planes corrugationDepth apart,
// each with its glue, FPC and carbon plate behind it, centred on the layer. The corrugated sheet
// lies between the two planes, so it needs no extra room; the end-of-stave cards are added through
// the envelope extension below.
const double flatLayerThickness =
staveConfig.corrugationDepth +
2 * o2::ft3::ModuleConstants::flatLaneStackBehindSilicon +
o2::ft3::ModuleConstants::siliconThickness + // front half of the silicon on each plane
0.5; // add some extra room to ensure all volumes are encapsulated

double z_layer_thickness = // need to shift internally with this
mIsMiddleLayer ? flatLayerThickness : o2::ft3::ModuleConstants::staveHeight + o2::ft3::ModuleConstants::z_offsetStave(staveConfig.x_midpoint_spacing) + o2::ft3::ModuleConstants::siliconThickness + o2::ft3::ModuleConstants::copperThickness + o2::ft3::ModuleConstants::kaptonThickness + o2::ft3::ModuleConstants::epoxyThickness * 2 + 0.5; // add some extra room to ensure all volumes are encapsulated

// shift stave volumes into layer volume, since nominal z_{stave face} = 0
double z_local_offset = z_layer_thickness / 2.0;
// (the flat middle-disk lanes are symmetric about the layer centre, so no shift there)
double z_local_offset = mIsMiddleLayer ? 0. : z_layer_thickness / 2.0;
// ensure staves fully encapsulated in the layer volume,
// but don't cross out of max nominal radii of 38.5cm & 71.5cm respectively (3.5cm tolerance)
// Allow 3, 9cm outward, inward for OT:
// Middle layers: no tolerance in or out, the lanes sit inside the nominal radii for now
double innerRadiusForAirTube = mIsMiddleLayer ? mInnerRadius : mInnerRadius - 9.0;
double outerRadiusForAirTube = mIsMiddleLayer ? mOuterRadius + 2.5 : mOuterRadius + 3.0;
double outerRadiusForAirTube = mIsMiddleLayer ? mOuterRadius : mOuterRadius + 3.0;
// MvL: try 70.5 // 2.5 cm tolerance instead
const double rInEnv = innerRadiusForAirTube - 0.2;
const double rOutEnv = outerRadiusForAirTube;
Expand Down Expand Up @@ -468,4 +477,4 @@ void FT3Layer::createLayer(TGeoVolume* motherVolume)
} else {
LOG(fatal) << "Unknown FT3 layout option: " << static_cast<int>(ft3Params.layoutFT3);
}
}
}
Loading