SND-LHC / advsndsw

Software for AdvSND
1 stars 3 forks source link

Bug in strip digitisation? #12

Closed olantwin closed 1 month ago

olantwin commented 1 month ago

Strangely enough, using AdvTargetHit::GetStrip(), I only see values from 0--9. The detector ID seems fine though. I'm confused...

olantwin commented 1 month ago

Solution: In base 10, surprising things happen, one should probably use % 1000 instead of % 1024 to avoid surprises...

olantwin commented 1 month ago

Or maybe not... This gives invalid strip numbers as well...

olantwin commented 1 month ago

Definitely a bug in the digitisation I'd say. Cannot be statistics, and detector ID decoding seems all consistent.

image

olantwin commented 1 month ago

This looks better. Committing fix now.

image