Skip to content

Questions about CD_ELECTRODE judgement #474

Answered by fhagemann
zql2021 asked this question in Q&A
Discussion options

You must be logged in to vote

This issue could result from the tolerance that we apply to intersections, see L. 346 here:

function get_crossing_pos( det::SolidStateDetector{T}, point_types::PointTypes{T, 3, S}, pt_in::CartesianPoint{T}, pt_out::CartesianPoint{T};
max_n_iter::Int = 500)::Tuple{CartesianPoint{T}, UInt8, CartesianVector{T}} where {T <: SSDFloat, S}
# check if the points are already in contacts
if pt_in in det.contacts return (pt_in, CD_ELECTRODE, CartesianVector{T}(0,0,0)) end
direction::CartesianVector{T} = normalize(pt_out - pt_in)
crossing_pos::Tuple{CartesianPoint{T}, UInt…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@zql2021
Comment options

Comment options

You must be logged in to vote
1 reply
@zql2021
Comment options

Answer selected by fhagemann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants