Skip to Content.
Sympa Menu

sphenix-tracking-l - [Sphenix-tracking-l] Can I use "0" as a value for an unused TrkrDefs::hitsetkey

sphenix-tracking-l AT lists.bnl.gov

Subject: sPHENIX tracking discussion

List archive

Chronological Thread  
  • From: David Stewart <0ds.johnny AT gmail.com>
  • To: sphenix-tracking-l AT lists.bnl.gov
  • Subject: [Sphenix-tracking-l] Can I use "0" as a value for an unused TrkrDefs::hitsetkey
  • Date: Wed, 30 Nov 2022 11:01:15 -0500

Hi experts,
I have some logic in which an array of hitsetkeys checks different keys, and assumes that a value of "0" is never a valid hitsetkey value. In interest of avoiding some funny logic bugs later, is this assumption ok? Alternatively, would using UCHAR_MAX by an acceptable value? If neither, I can modify the logic of the code fairly easily, too.
Thanks

--
David Stewart
Postdoctoral Fellow | Department of Physics, Wayne State University



Archive powered by MHonArc 2.6.24.

Top of Page