JeffersonLab / hps-mc

HPS MC toolkit
1 stars 6 forks source link

deduce layer number and Ax/St from sensor name #364

Closed tomeichlersmith closed 1 year ago

tomeichlersmith commented 1 year ago

this is necessary because the 2016 parameter mapping had a few typos in it when making the assignments which breaks the translation from ID number to layer number and Ax/St

To Do

What Did I Do??

Because the 2016 parameter mapping does not follow the convention set by the later 2019+ mapping allowing for simple arithmetic to calculate the layer number from the last two digits of the ID, I have switched the layer-number-deduction to simply extract it from the parameter name as it appears in the mapping. Similarly, I switched to deducing axial/stereo by looking for those words in the name rather than trying to deduce it from the ID.

Besides this necessary change, I also added a few more cosmetic updates.