Skip to content
Open
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,14 @@ 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);

// Continuous carbon strip (flat plate) that the modules of one fill of a flat lane are glued to
void addLaneCarbonStripVolume(
TGeoVolume* motherVolume, int layerNumber, int direction, unsigned stave_idx,
unsigned fill_idx, double x_mid, double y_mid, double z_mid, double halfLength);

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,6 +124,9 @@ 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

// Carbon base the modules of the flat middle disks are glued to.
// Taken from the stave value above until the thickness of the flat plate is known.
const double flatLaneCarbonBaseThickness = effectiveCarbonThickness_Stave;
const double staveOpeningAngle = 60 * TMath::DegToRad();
const double sinTheta = TMath::Sin(staveOpeningAngle / 2);
const double cosTheta = TMath::Cos(staveOpeningAngle / 2);
Expand Down Expand Up @@ -211,6 +214,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 large 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 +308,94 @@ 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.
* Rin 9, Rout 37 cm, 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 outer disks are triangular staves
inline StaveConfig getStaveConfig(bool isInnerDisk)
{
if (isInnerDisk) {
Expand All @@ -326,7 +408,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 are the small disks
ML_StavePositions::corrugationDepth,
ML_StavePositions::sensorGap,
ML_StavePositions::stackGap};
} else {
return StaveConfig{
false, // isML
Expand Down Expand Up @@ -377,4 +463,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);
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 small-disk air volume
if (!mIsMiddleLayer) {
motherVolume->AddNode(outerCircleEdgeVol, 1, new TGeoTranslation(0, 0, z_position));
}
}

void FT3Layer::createLayer(TGeoVolume* motherVolume)
Expand Down Expand Up @@ -366,7 +369,7 @@ void FT3Layer::createLayer(TGeoVolume* motherVolume)
LOG(info) << "Inserting " << layerVol->GetName() << " inside " << motherVolume->GetName();
motherVolume->AddNode(layerVol, 1, FwdDiskCombiTrans);
} else if (ft3Params.layoutFT3 == kSegmented ||
(ft3Params.layoutFT3 == kSegmentedStaveOTOnly && mIsMiddleLayer)) {
(ft3Params.layoutFT3 == kSegmentedStaveOTOnly && mIsMiddleLayer)) {
FT3Module module;

// layer structure
Expand All @@ -393,7 +396,7 @@ void FT3Layer::createLayer(TGeoVolume* motherVolume)
LOG(info) << "Inserting " << layerVol->GetName() << " (Rmin=" << mInnerRadius << ", Rmax=" << mOuterRadius << ", z=" << mZ << "cm) inside " << motherVolume->GetName();
motherVolume->AddNode(layerVol, 1, FwdDiskCombiTrans);
} else if (ft3Params.layoutFT3 == kSegmentedStave ||
ft3Params.layoutFT3 == kSegmentedStaveOTOnly) {
ft3Params.layoutFT3 == kSegmentedStaveOTOnly) {
FT3Module module;

// layer structure
Expand All @@ -404,13 +407,24 @@ 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 disks (flat lanes), OT 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
// Middle layers (small disks): flat corrugated lanes, so two sensor planes corrugationDepth apart,
// each with its sensor materials (silicon, glue, carbon base) behind it, centred on the layer.
// The corrugated sheet is not included yet.
const double flatLayerThickness =
staveConfig.corrugationDepth +
2 * (o2::ft3::ModuleConstants::siliconThickness +
o2::ft3::ModuleConstants::epoxyThickness +
o2::ft3::ModuleConstants::flatLaneCarbonBaseThickness) +
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 +
Expand All @@ -420,17 +434,20 @@ void FT3Layer::createLayer(TGeoVolume* motherVolume)
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 small-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 disks: no tolerance in or out, the lanes sit inside the nominal radii
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;
const double H0 = z_layer_thickness / 2;
if (ft3Params.addDiskEosCards) {
// (the small disks have no end-of-stave cards yet, so they keep the plain envelope)
if (ft3Params.addDiskEosCards && !mIsMiddleLayer) {
// Extend the envelope DOWNSTREAM only (away from the IP) with a union, so the
// end-of-stave cards fit without growing toward the IP / the neighbouring disk.
const double ext = o2::ft3::ModuleConstants::eosCardEnvelopeExtension(mIsMiddleLayer);
Expand All @@ -455,7 +472,7 @@ void FT3Layer::createLayer(TGeoVolume* motherVolume)

// need the -0.5 added to local offset to ensure all sensor modules are inside the layer
module.createModule_staveGeo(0., mLayerNumber, mDirection, mInnerRadius,
mOuterRadius, z_local_offset, staveConfig, layerVol);
mOuterRadius, z_local_offset, staveConfig, layerVol);
// Finally put everything in the mother volume
auto* FwdDiskRotation = new TGeoRotation("FwdDiskRotation", 0, 0, 180);
// need to shift outwards always, so + forwards and - backwards
Expand All @@ -468,4 +485,4 @@ void FT3Layer::createLayer(TGeoVolume* motherVolume)
} else {
LOG(fatal) << "Unknown FT3 layout option: " << static_cast<int>(ft3Params.layoutFT3);
}
}
}
Loading
Loading