JeffersonLab / hcana

Hall C++ Analyzer
7 stars 118 forks source link

Improvements to helicity decoding #438

Closed sawjlab closed 5 years ago

sawjlab commented 5 years ago

Previously the helicity code was not always setting the actual helicity. It would then just use the helicity from the last event. This was almost always OK. With this change, the helicity (T.helicity.hel) should be always defined. It is now sufficient to use just this variable when sorting events into plus and minus helicity. The helicity value will be zero if the event occured during the settle period, or if the helicity decoder has not got enough data to have a seed.

Also use the correct method name in a throw message.