data/train/cpp/323d6e1ca67ea9d4ed5ae3db303ae8a4000cfd92Sample.cc
Sample::Info CreateSampleInfo(const Sample::value_type sample, const std::vector<edm::ParameterSet>& pset_vec)
    {
        assert(pset_vec.size() == Sample::static_size);
        const auto& pset = pset_vec[sample];
        Sample::Info info
        {
            pset.getParameter<std::string>("name"),
            pset.getParameter<std::string>("title"),
            pset.getParameter<std::string>("latex"),
            pset.getParameter<std::string>("ntuple_path"),
            static_cast<Color_t>(pset.getParameter<int>("color")),
            pset.getParameter<double>("eff"),
            sample
        };
        return info;
    }
// create a sample Info from the pset
create a sample Info from the pset
create a sample Info from the pset
Sample::Info CreateSampleInfo(const Sample::value_type sample, const std::vector<edm::ParameterSet>& pset_vec)
    {
        assert(pset_vec.size() == Sample::static_size);
        const auto& pset = pset_vec[sample];
        Sample::Info info
        {
            pset.getParameter<std::string>("name"),
            pset.getParameter<std::string>("title"),
            pset.getParameter<std::string>("latex"),
            pset.getParameter<std::string>("ntuple_path"),
            static_cast<Color_t>(pset.getParameter<int>("color")),
            pset.getParameter<double>("eff"),
            sample
        };
        return info;
    }
Sample :: Info CreateSampleInfo ( const Sample :: value_type sample , const std :: vector < edm :: ParameterSet > & pset_vec ) { assert ( pset_vec . size ( ) == Sample :: static_size ) ; const auto & pset = pset_vec [ sample ] ; Sample :: Info info { pset . getParameter < std :: string > ( " " ) , pset . getParameter < std :: string > ( " " ) , pset . getParameter < std :: string > ( " " ) , pset . getParameter < std :: string > ( " " ) , static_cast < Color_t > ( pset . getParameter < int > ( " " ) ) , pset . getParameter < double > ( " " ) , sample } ; return info ; }
create a sample Info from the pset
create a sample Info from the pset