Skip to content
Merged
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 @@ -64,24 +64,24 @@ class FT3Module
void build_staves_exact(
TGeoVolume* motherVolume, int layerNumber, int direction,
const Constants::StaveConfig& staveConfig,
const std::array<std::array<double, 3>, 4>& staveTriangles,
double z_offset_to_carbon_face,
const std::array<std::array<double, 10>, 2>& staveLegs,
double z_offset_to_stave_face,
std::vector<PosNegPositionTypes>& y_positionsPosNeg,
unsigned& staveVolumeCount);

void build_staves_greedy(
TGeoVolume* motherVolume, int layerNumber, int direction, double Rin, double Rout,
const Constants::StaveConfig& staveConfig,
const std::array<std::array<double, 3>, 4>& staveTriangles,
double z_offset_to_carbon_face,
const std::array<std::array<double, 10>, 2>& staveLegs,
double z_offset_to_stave_face,
std::vector<PosNegPositionTypes>& y_positionsPosNeg, unsigned& staveVolumeCount);

// Shared by both: one stave's carbon shell, plus its mirror where needed
void add_stave_volumes(
TGeoVolume* motherVolume, int layerNumber, int direction,
const Constants::StaveConfig& staveConfig, unsigned i_stave,
const std::array<std::array<double, 3>, 4>& staveTriangles,
double z_offset_to_carbon_face, std::pair<double, double>& absAllowedYRange,
const std::array<std::array<double, 10>, 2>& staveLegs,
double z_offset_to_stave_face, std::pair<double, double>& absAllowedYRange,
double y_midpoint, bool mirrorStaveAroundX, unsigned* staveVolumeCount);

// FR4 + Cu end-of-stave card at the outer-radius tip of a disk stave. One card
Expand All @@ -103,26 +103,26 @@ class FT3Module
void addStaveVolume(
TGeoVolume* motherVolume, std::string volumeName, int direction,
unsigned* volume_count, double staveLength,
std::array<std::array<double, 3>, 4> staveTriangles,
std::array<std::array<double, 10>, 2> staveLegs,
std::pair<double, double>& absAllowedYRange,
double x_mid, double y_mid, double z_stave_shift_forward);
void addDetectorVolume(
TGeoVolume* motherVolume, std::string volumeName, int color, TGeoMedium* med,
unsigned volume_count, double x_mid, double y_mid, double z_mid,
double x_half_length, double y_half_length, double z_half_length, double rotX = 0);

void add2x1GlueVolume(
void addNx2GlueVolume(
TGeoVolume* motherVolume, int layerNumber, int direction, unsigned stave_idx,
unsigned volume_count, double x_mid, double y_mid, double z_mid,
unsigned volume_count, double x_mid, double y_mid, double z_mid, double moduleHeight,
std::string element_glued_to);

void add2x1CopperVolume(
void addNx2CopperVolume(
TGeoVolume* motherVolume, int layerNumber, int direction, unsigned stave_idx,
unsigned volume_count, double x_mid, double y_mid, double z_mid);
unsigned volume_count, double x_mid, double y_mid, double z_mid, double moduleHeight);

void add2x1KaptonVolume(
void addNx2KaptonVolume(
TGeoVolume* motherVolume, int layerNumber, int direction, unsigned stave_idx,
unsigned volume_count, double x_mid, double y_mid, double z_mid);
unsigned volume_count, double x_mid, double y_mid, double z_mid, double moduleHeight);

void addSingleSensorVolume(
TGeoVolume* motherVolume, int layerNumber, int direction, unsigned stave_idx,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,43 +24,45 @@
namespace o2::ft3::ModuleConstants
{
/* CURRENT STATUS:
* 25x29mm sensors, 2mm inactive on one side
* Most granular layout is 2x1 sensors, where the one on the right has the inactive region
* 25x29mm sensors, 1.5mm inactive on one side
* Most granular layout is 1x2 sensors, where the one on the right has the inactive region
* on the right, and the one on the left has the inactive region on the left.
* When stacking 2x1 modules, there is a 0.2mm gap between them. By default, we assume this
* Sensors are 0.2mm apart everywhere: between the L&R sensors of a 1x2, between
* neighbouring 1x2 rows within a stack, and between neighbouring stacks, the last of
* which is carried as 0.1mm at each end of a stack. By default, we assume the stack
* gap to be ABOVE the most recently placed module.
*
* |<- 25mm ->||<- 25mm ->|
* _______________________
* ------------------------ 0.15mm gap above
* ------------------------ 0.1mm gap above
* | | || | |
* | | || | |
* | | || | |
* | | || | | 29mm sensor height
* | | || | |
* | | || | |
* ------------------------ 0.15mm gap below
* ------------------------ 0.1mm gap below
* ^
* |
* 0.15mm gap in the middle
* 0.2mm gap in the middle
*/
// First set all layout constants for the rest of the function
const double single_sensor_width = 2.5;
const double single_sensor_height = 2.9;
const double inactive_width = 0.15;
const double sensor2x1_gap = 0.015; // gap between L&R sensors in 2x1, and between sensors in a stack
const double stackGap = 0.035; // gap between 2xN module stacks
const double sensor1x2_gap = 0.020; // gap between L&R sensors in 1x2, and between sensors in a stack
const double moduleGap = 0.020; // gap between 2xN module stacks

const double active_width = single_sensor_width - inactive_width;
const double active_height = single_sensor_height;

const double sensor2x1_width = 2 * single_sensor_width + sensor2x1_gap;
const double sensor2x1_height = single_sensor_height;
const double sensor1x2_width = 2 * single_sensor_width + sensor1x2_gap;
const double sensor1x2_height = single_sensor_height;
const std::vector<unsigned> kSensorsPerStack = {4, 2, 1};
inline const double getStackHeight(unsigned nSensorsPerStack)
{
return nSensorsPerStack * sensor2x1_height +
(nSensorsPerStack - 1) * sensor2x1_gap;
return nSensorsPerStack * sensor1x2_height +
(nSensorsPerStack - 1) * sensor1x2_gap;
}

// small helper function to get 1-indexed stave ID, counting from the middle outwards,
Expand Down Expand Up @@ -106,35 +108,64 @@ const double siliconThickness = 0.01;
const double copperThickness = 0.006;
const double kaptonThickness = 0.03;
const double epoxyThickness = 0.0012;
// To get the effective carbon thickness we add the areal densities of
// (1) 40um Graphite (84g/m^2)
// (2) 30um Carbon Fibre UMS40 weave (19g/m^2)
// (3) 2x100um Carbon Fibre HS40 (2x65g/m^2)
// (4) 200um PEI Foam (42g/m^2)
// (5) 2x100um Carbon Fibre HS40 (2x65g/m^2)
// Does not cover the whole stave, so (3) and (5) are combined as just one layer
// (6) 30um Carbon Fibre UMS40 Weave (19g/m^2)
// Material budget x/X0 = sum(sigma_i / X0_i), with sigma_i the areal densities
// above (1 g/m^2 = 1e-4 g/cm^2) and X0_i in g/cm^2 (PDG: carbon 42.7, PEI ~41).
const double staveMaterialBudget =
(84. + 19. + 2 * 65. + 19.) * 1e-4 / 42.7 // graphite + carbon fibre
+ 42. * 1e-4 / 41.; // PEI foam
// for the eff. thickness, we use the CarbonFiber X0 = 27 cm from FT3Materials.h
const double effectiveCarbonThickness_Stave = staveMaterialBudget * 27.0; // ~187 um

const double effectiveCarbonThickness_Stave = 0.02; // foam + shell
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.1025; // 1025µm padding on each side: 52.2mm stave width
const double staveWidth = sensor2x1_width + 2 * staveSensorGap;
const double staveTriangleHeight = staveWidth / 2.0 / tan(staveOpeningAngle / 2.0);
const double staveSensorGap = 0.21; // 2.1mm bonding region on each side: 54.4mm stave width
const double staveWidth = sensor1x2_width + 2 * staveSensorGap;
/*
* Now describe the offset of every other stave in z to avoid overlaps
* ______ ______
* \ /______\ / | <-- z_offsetStave
* \ / \ / \ /
* \/ \ / \/
* \/
* The stave is created from two carbon legs, and the FPC is its face -- being glued
* onto carbon wings that stick out:
* _ _ <-- wings
* \ /
* \ / <-- legs
* \/
*/
const double staveLegLength = 3.76;
const double staveLegHalfSpan = staveLegLength * sinTheta; // foot, from x = 0
const double staveHeight = staveLegLength * cosTheta; // apex, behind the face
/*
* Now describe the offset of every other stave in z to avoid overlaps. The
* horizontal bars are the FPC faces, the Vs the legs behind them.
* ________ ________
* \ /________\ / | <-- z_offsetStave
* \ / \ / \ /
* \/ \ / \/
* \/
*/
const double staveFaceThickness = 0.05; // more than combined thickness of FCP (~470um)
const double staveStackThickness = staveFaceThickness + effectiveCarbonThickness_Stave;

// If midpoint spacing becomes non constant, this becomes a function
// TODO: add some tolerance to avoid overlaps?
inline const double z_offsetStave(double x_midpoint_spacing)
{
return staveTriangleHeight *
(2 - x_midpoint_spacing / (sensor2x1_width / 2 + staveSensorGap));
const double legSlope = staveHeight / staveLegHalfSpan;
const double faceOverhang = staveWidth / 2 + staveLegHalfSpan - x_midpoint_spacing;
return TMath::Max(legSlope * faceOverhang + staveStackThickness, staveStackThickness);
}

/*
* One uninterrupted fill of 2xN modules along a stave.
*
* yStart is the y of the BOTTOM edge of the first module; modules follow
* upwards, each separated from the previous one by stackGap. Nothing is
* upwards, each separated from the previous one by moduleGap. Nothing is
* mirrored: the layout is symmetric about the y-axis (stave +-ID) but NOT
* about the x-axis, so every fill states its own y explicitly.
*
Expand Down Expand Up @@ -189,72 +220,73 @@ namespace OT_StavePositions
* Do NOT add any zero midpoints, this is taken off separately.
*/
const std::map<int, std::pair<double, bool>> staveID_to_y_midpoint = {
{-4, {35.659, true}},
{-3, {41.735, true}},
{-2, {42.882, true}},
{-1, {43.761, true}},
{1, {43.761, true}},
{2, {42.882, true}},
{3, {41.735, true}},
{4, {35.659, true}}};
{-4, {37.463, true}},
{-3, {40.103, true}},
{-2, {41.576, true}},
{-1, {44.147, true}},
{1, {44.147, true}},
{2, {41.576, true}},
{3, {40.103, true}},
{4, {37.463, true}}};
/*
* Length of one stave piece: for a stave in staveID_to_y_midpoint that is one
* of its two pieces, otherwise the whole stave centred on y=0. Trimmed to the
* modules in exactStaveFills, rounded up to the nearest 10 um.
* modules in exactStaveFills, which the carbon overhangs by 100 um at each end,
* rounded up to the nearest 10 um.
*/
const std::vector<double> y_lengths = {
32.225, 58.401, 73.016, 87.611,
99.29, 108.055, 113.886, 119.736,
125.566, 128.481, 61.336, 49.655,
49.656, 46.818, 46.818, 49.656,
49.655, 61.336, 128.481, 125.566,
119.736, 113.886, 108.055, 99.29,
87.611, 73.016, 58.401, 32.225};
const unsigned nStaves = 28; // y_lengths, staveOnFront and exactStaveFills follow this
const double x_midpoint_spacing = 4.92;
35.06, 58.42, 75.94, 87.62,
96.38, 105.14, 113.9, 119.74,
122.66, 128.5, 131.667, 58.42,
55.5, 52.58, 49.66, 49.66,
52.58, 55.5, 58.42, 131.667,
128.5, 122.66, 119.74, 113.9,
105.14, 96.38, 87.62, 75.94,
58.42, 35.06};
const unsigned nStaves = 30; // y_lengths, staveOnFront and exactStaveFills follow this
const double x_midpoint_spacing = 4.52;
const std::vector<double> x_midpoints = makeStaveXMidpoints(nStaves, x_midpoint_spacing);
const double maxToleranceInner = 9.; // close but not directly at 10cm yet
const double maxToleranceOuter = 3.4; // leave 1mm for layer air encapsulation
const double maxToleranceInner = 5.; // intrusion the tiling below was solved with
const double maxToleranceOuter = 2.5; // extrusion the tiling below was solved with
const std::vector<bool> staveOnFront = makeStaveOnFront(nStaves);
/*
* From the disk optimiser: Rin 20, Rout 68, stave width 5.22, overlap 0.30,
* intrusion and extrusion <= 2 with 6 exception staves at 9 and 3, giving
* 99.37% filling with staves and 93.48% with active silicon. One entry per
* stave in x_midpoints order; a stave cut in two by the beam pipe has one
* fill either side of the hole.
* From the disk optimiser: stave width 5.44cm, overlap 0.92cm, with intrusion
* <= 5cm and extrusion <= 2.5cm
*
* yStart is the bottom of the first SENSOR, which is half a module gap above
* the bottom of the module the optimiser reports.
*/
const std::vector<std::vector<StaveFill>> exactStaveFills = {
{{-15.9953, {4, 4, 3}}}, // ID -14
{{-29.1825, {4, 4, 4, 4, 4}}}, // ID -13
{{-36.49, {4, 4, 4, 4, 3, 3, 3}}}, // ID -12
{{-43.7875, {4, 4, 4, 4, 4, 4, 3, 3}}}, // ID -11
{{-49.6275, {4, 4, 4, 4, 4, 4, 4, 3, 3}}}, // ID -10
{{-54.01, {4, 4, 4, 4, 4, 4, 4, 3, 3, 3}}}, // ID -9
{{-56.925, {4, 4, 4, 4, 4, 4, 4, 4, 4, 3}}}, // ID -8
{{-59.85, {4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3}}}, // ID -7
{{-62.765, {4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3}}}, // ID -6
{{-64.2225, {4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4}}}, // ID -5
{{-66.3087, {4, 4, 4, 3, 3, 3}}, {5.0087, {4, 4, 4, 3, 3, 3}}}, // ID -4
{{-66.545, {4, 4, 3, 3, 3}}, {16.925, {4, 4, 3, 3, 3}}}, // ID -3
{{-67.6917, {4, 4, 3, 3, 3}}, {18.0717, {4, 4, 3, 3, 3}}}, // ID -2
{{-67.0542, {4, 4, 4, 4}}, {20.4669, {4, 4, 4, 4}}}, // ID -1
{{-67.1519, {4, 4, 4, 4}}, {20.3692, {4, 4, 4, 4}}}, // ID +1
{{-67.6917, {4, 4, 3, 3, 3}}, {18.0717, {4, 4, 3, 3, 3}}}, // ID +2
{{-66.545, {4, 4, 3, 3, 3}}, {16.925, {4, 4, 3, 3, 3}}}, // ID +3
{{-66.3087, {4, 4, 4, 3, 3, 3}}, {5.0087, {4, 4, 4, 3, 3, 3}}}, // ID +4
{{-64.2225, {4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4}}}, // ID +5
{{-62.765, {4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3}}}, // ID +6
{{-59.85, {4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3}}}, // ID +7
{{-56.925, {4, 4, 4, 4, 4, 4, 4, 4, 4, 3}}}, // ID +8
{{-54.01, {4, 4, 4, 4, 4, 4, 4, 3, 3, 3}}}, // ID +9
{{-49.6275, {4, 4, 4, 4, 4, 4, 4, 3, 3}}}, // ID +10
{{-43.7875, {4, 4, 4, 4, 4, 4, 3, 3}}}, // ID +11
{{-36.49, {4, 4, 4, 4, 3, 3, 3}}}, // ID +12
{{-29.1825, {4, 4, 4, 4, 4}}}, // ID +13
{{-16.0947, {4, 4, 3}}}, // ID +14
{{-17.51, {4, 4, 4}}}, // ID -15
{{-29.19, {4, 4, 4, 4, 4}}}, // ID -14
{{-37.95, {4, 4, 4, 4, 4, 3, 3}}}, // ID -13
{{-43.79, {4, 4, 4, 4, 4, 4, 3, 3}}}, // ID -12
{{-48.17, {4, 4, 4, 4, 4, 4, 3, 3, 3}}}, // ID -11
{{-52.55, {4, 4, 4, 4, 4, 4, 4, 4, 4}}}, // ID -10
{{-56.93, {4, 4, 4, 4, 4, 4, 4, 4, 4, 3}}}, // ID -9
{{-59.85, {4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3}}}, // ID -8
{{-61.31, {4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3}}}, // ID -7
{{-64.23, {4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4}}}, // ID -6
{{-65.8132, {4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3}}}, // ID -5
{{-66.6534, {4, 4, 4, 4, 4}}, {8.2734, {4, 4, 4, 4, 4}}}, // ID -4
{{-67.8333, {4, 4, 4, 4, 3}}, {12.3733, {4, 4, 4, 4, 3}}}, // ID -3
{{-67.8462, {4, 4, 4, 3, 3}}, {15.3062, {4, 4, 4, 3, 3}}}, // ID -2
{{-68.9569, {4, 4, 3, 3, 3}}, {19.3369, {4, 4, 3, 3, 3}}}, // ID -1
{{-68.9569, {4, 4, 3, 3, 3}}, {19.3369, {4, 4, 3, 3, 3}}}, // ID +1
{{-67.8462, {4, 4, 4, 3, 3}}, {15.3062, {4, 4, 4, 3, 3}}}, // ID +2
{{-67.8333, {4, 4, 4, 4, 3}}, {12.3733, {4, 4, 4, 4, 3}}}, // ID +3
{{-66.6534, {4, 4, 4, 4, 4}}, {8.2734, {4, 4, 4, 4, 4}}}, // ID +4
{{-65.5668, {4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3}}}, // ID +5
{{-64.23, {4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4}}}, // ID +6
{{-61.31, {4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3}}}, // ID +7
{{-59.85, {4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3}}}, // ID +8
{{-56.93, {4, 4, 4, 4, 4, 4, 4, 4, 4, 3}}}, // ID +9
{{-52.55, {4, 4, 4, 4, 4, 4, 4, 4, 4}}}, // ID +10
{{-48.17, {4, 4, 4, 4, 4, 4, 3, 3, 3}}}, // ID +11
{{-43.79, {4, 4, 4, 4, 4, 4, 3, 3}}}, // ID +12
{{-37.95, {4, 4, 4, 4, 4, 3, 3}}}, // ID +13
{{-29.19, {4, 4, 4, 4, 4}}}, // ID +14
{{-17.51, {4, 4, 4}}}, // ID +15
};
} // namespace OT_StavePositions

Expand Down Expand Up @@ -325,9 +357,10 @@ struct EosCardParams {
};
// NOTE on width: a card spanning the full z-range must be narrower than the
// clearance to the staggered neighbour stave, whose carbon triangle is
// staveWidth/2 (= 2.61 cm) half-wide: half-width < x_midpoint_spacing - staveWidth/2.
// That is tightest on the ML disks (4.5 - 2.61 = 1.89 cm), so width = 3.4 cm
// (half 1.7 cm) clears both ML and OT (OT spacing 4.92 cm) neighbours.
// staveWidth/2 (= 2.72 cm) half-wide: half-width < x_midpoint_spacing - staveWidth/2.
// That is tightest on the ML disks (4.5 - 2.72 = 1.78 cm), so width = 3.4 cm
// (half 1.7 cm) clears both ML and OT (OT spacing 4.52 cm) neighbours, the ML
// one by only 0.8 mm.
// Large (OT) disks
constexpr EosCardParams eosCardOT{12.0, 3.4, 0.15, 4, 0.0122, 0.2};
// Small (ML) disks
Expand All @@ -344,4 +377,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 @@ -411,7 +411,7 @@ void FT3Layer::createLayer(TGeoVolume* motherVolume)
// 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::staveTriangleHeight +
o2::ft3::ModuleConstants::staveHeight +
o2::ft3::ModuleConstants::z_offsetStave(staveConfig.x_midpoint_spacing) +
o2::ft3::ModuleConstants::siliconThickness +
o2::ft3::ModuleConstants::copperThickness +
Expand Down
Loading
Loading