Skip to content

Reducing code in ConfigFile #168

Open

Description

@kreczko

Currently we have a function for each parameter..time to introduce templates

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

boost::shared_ptr<TH1F> getHistogramFromFile(const std::string& histogram, std::string& file)

Activity

  1. added this to the 13 TeV proper milestone on Jul 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions