A lot of the XSec fields are created from small configuration changes to few statistical functions. It would be convenient to create a closure that takes a string representing a dataset field name and calculates the desired statistical function, encapsulating the configuration. Currently I know of no method for accessing scala class properties via a map-like lookup, so I'll have to research this. Should be quick, but I don't want to forget.
This would remove type safety, so I've decided to abandon.