Skip to content

Commit

Permalink
fix double counting of merged theta cells impact on shield capacitance
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannimarchiori committed Oct 25, 2023
1 parent dc99d4a commit a324147
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion geometry/create_capacitance_file_theta.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@
# analytical formula (nmultShield = 2)
#capacitanceShield = nmultShield * nMergedModules[i] * cellLength * tracesPerLayer[i] * 1 / inch2mm * 0.67 * (epsilonR + 1.41) / logMicrostrip
# from maxwell (nmultShield = 1)
capacitanceShield = nmultShield * nMergedModules[i] * nMergedThetaCells[i] * cellLength * tracesPerLayer[i] * capa_per_mm[i]
# dont multiply by nMergedThetaCells: the shield/pad capa is reasonably independent of the cell size and the fact that there is some merging
# done for theta cells is already taken into account by the tracesPerLayer
capacitanceShield = nmultShield * nMergedModules[i] * cellLength * tracesPerLayer[i] * capa_per_mm[i]
if capacitanceShield > capa_shield_max:
capa_shield_max = capacitanceShield
hCapShield[i].SetBinContent(index+1, capacitanceShield)
Expand Down

0 comments on commit a324147

Please sign in to comment.