Skip to Content.
Sympa Menu

sphenix-tracking-l - Re: [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: Anthony Frawley <afrawley AT fsu.edu>
  • To: "sphenix-tracking-l AT lists.bnl.gov" <sphenix-tracking-l AT lists.bnl.gov>, David Stewart <0ds.johnny AT gmail.com>
  • Subject: Re: [Sphenix-tracking-l] Can I use "0" as a value for an unused TrkrDefs::hitsetkey
  • Date: Wed, 30 Nov 2022 16:24:35 +0000

Hi David,

I prefer UCHAR_MAX.

Tony

From: sPHENIX-tracking-l <sphenix-tracking-l-bounces AT lists.bnl.gov> on behalf of David Stewart via sPHENIX-tracking-l <sphenix-tracking-l AT lists.bnl.gov>
Sent: Wednesday, November 30, 2022 11:01 AM
To: sphenix-tracking-l AT lists.bnl.gov <sphenix-tracking-l AT lists.bnl.gov>
Subject: [Sphenix-tracking-l] Can I use "0" as a value for an unused TrkrDefs::hitsetkey
 
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