135 int circuitsPerEta{2};
136 int circuitsPerPhi{2};
137 double thickness{0.150};
140 double pitchEtaLong{};
141 double pitchPhiLong{};
142 double pitchEtaEnd{};
143 double pitchPhiEnd{};
144 int nEtaLongPerSide{};
145 int nPhiLongPerSide{};
146 int nEtaEndPerSide{};
147 int nPhiEndPerSide{};
148 int rowsPerCircuit{};
149 int columnsPerCircuit{};
156 bool phiSymmetric{
true};
157 bool etaSymmetric{
true};
158 bool depthSymmetric{
true};
185 ATH_MSG_DEBUG(
"readout geo - design thickness " << thickness <<
" "
186 <<
" circuits " << circuitsPerPhi <<
" " << circuitsPerEta <<
" "
187 <<
" rows/columns " << rowsPerCircuit <<
" " << columnsPerCircuit <<
" "
188 <<
" pitch regular/long/end " << pitchPhi <<
" " << pitchEta
189 <<
" " << pitchPhiLong <<
" " << pitchEtaLong
190 <<
" " << pitchPhiEnd <<
" " << pitchEtaEnd
191 <<
" n-long " << nPhiLongPerSide <<
" " << nEtaLongPerSide
192 <<
" n-end " << nPhiEndPerSide <<
" " << nEtaEndPerSide
193 << carrier <<
" " << readoutSide);
198 int detectorTypeEnum = 0;
209 std::stringstream amsg;
210 amsg <<
"Index overflows index type of PixelDiodeTree. Parameters "
211 <<
"( " << circuitsPerPhi <<
" * " << rowsPerCircuit <<
" ), ( "
212 <<
"( " << circuitsPerEta <<
" * " << columnsPerCircuit <<
" ) !<"
214 throw std::runtime_error(amsg.str());
219 bool flipFE=(
typeName.find(
"_even") !=std::string::npos);
223 auto computeAttribute = [readoutTechnology,
231 ](
const std::array<PixelDiodeTree::IndexType,2> &split_idx,
233 [[maybe_unused]]
const std::array<bool,4> &ganged,
234 [[maybe_unused]]
unsigned int split_i,
237 -> std::tuple<PixelDiodeTree::AttributeType,PixelDiodeTree::AttributeType>
257 assert(split_idx[0]>=0 && split_idx[1]>=0);
258 std::array<int,2> chip_idx{split_idx[0]/rowsPerCircuit, split_idx[1]/columnsPerCircuit};
260 unsigned int n_large_dimensions = ( (std::abs(diode_width[0]-pitchPhi)>pitchPhi*.25)
261 +(std::abs(diode_width[1]-pitchEta)>pitchEta*.25));
262 switch (n_large_dimensions) {
306 ? circuitsPerEta - chip_idx[1] - 1
307 : (circuitsPerPhi-1) * circuitsPerEta + chip_idx[1]);
309 return std::make_tuple(current_matrix_attribute, current_diode_attribute);
312 PixelDiodeTree diode_tree
313 =
createPixelDiodeTree(std::array<unsigned int,2>{
static_cast<unsigned int>(circuitsPerPhi),
static_cast<unsigned int>(circuitsPerEta)},
314 std::array<unsigned int,2>{
static_cast<unsigned int>(rowsPerCircuit),
static_cast<unsigned int>(columnsPerCircuit)},
316 std::array<std::array<unsigned int,2>, 2>{ std::array<unsigned int,2>{
static_cast<unsigned int>(nPhiEndPerSide),
317 static_cast<unsigned int>(nEtaEndPerSide)},
318 std::array<unsigned int,2>{
static_cast<unsigned int>(nPhiLongPerSide),
319 static_cast<unsigned int>(nEtaLongPerSide)}},
323 std::array<std::array<unsigned int,2>, 2>{ std::array<unsigned int,2>{0
u,0
u},
324 std::array<unsigned int,2>{0
u,0
u}
329 auto design = std::make_unique<PixelModuleDesign>(thickness,
330 phiSymmetric, etaSymmetric, depthSymmetric,
331 circuitsPerPhi, circuitsPerEta,
332 columnsPerCircuit, rowsPerCircuit,
333 columnsPerCircuit, rowsPerCircuit,
334 std::move(diode_tree), carrier,
335 readoutSide, is3D, detectorType, readoutTechnology);
338 <<
" " << design->width() <<
"x" << design->length() <<
"x" << design->thickness()
339 <<
" " << design->rows() <<
"x" << design->columns()
340 <<
", " << circuitsPerPhi <<
"x" << circuitsPerEta <<
" "
341 << rowsPerCircuit <<
" " << columnsPerCircuit <<
":\n"
342 << diode_tree.debugStringRepr());