Skip to content

Commit

Permalink
fix CLD endcap radius calculation for CED
Browse files Browse the repository at this point in the history
  • Loading branch information
Zehvogel authored and andresailer committed Jul 30, 2024
1 parent 03e440c commit 4c95675
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions detector/tracker/TrackerEndcap_o2_v06_geo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ static Ref_t create_detector(Detector& theDetector, xml_h e, SensitiveDetector s

Box mod_shape(m_vol.solid());

if(r - mod_shape->GetDZ()<innerR)
innerR= r- mod_shape->GetDZ();
if(r < innerR)
innerR = r;

if(r + mod_shape->GetDZ()>outerR)
outerR = r + mod_shape->GetDZ();
if(r + 2*mod_shape->GetDY() > outerR)
outerR = r + 2*mod_shape->GetDY();

sumZ+=zstart;

Expand Down

0 comments on commit 4c95675

Please sign in to comment.