spradlin / WCSim

The WCSim GEANT4 application
0 stars 0 forks source link

Unsafe use of arrays in WCSimPMTObject #5

Open spradlin opened 3 years ago

spradlin commented 3 years ago

The WCSimPMTObject classes serve as database entries for required information related to specific types of PMTs. Much of this information is stored in C-type arrays. The clients of these arrays assume a length for them. This is unsafe, and safer data handles should probably be used to store this information.

In principle, a database could be used instead of these hard-coded arrays.