Currently we have a function for each parameter..time to introduce templates ``` c++ template <type T> T getParameter(const std::string& name) const { if (programOptions.count(name)) return programOptions["TTbarLikelihoodFile"].as<T>(); else return boost::any_cast<T>parameters_[name]; } ``` where `parameters_` is a map of `std::string` and `boost::any`. or something like that. Similar with histograms from files which can be one function like ``` c++ boost::shared_ptr<TH1F> getHistogramFromFile(const std::string& histogram, std::string& file) ```
Activity