added class for reference scale factors; moved common functions to
ntuple_controller