data/train/cpp/323d6e1ca67ea9d4ed5ae3db303ae8a4000cfd92Sample.cc
TChain* GetSampleTChain(const Sample::value_type& sample)
    {
        const Sample::Info info = GetSampleInfo(sample);

        // build the list of files
        std::vector<std::string> vpath = lt::string_split(info.ntuple_path, ",");

        // build the chain
        TChain* chain = new TChain("Events");
        for (const auto& file : vpath)
        {
            chain->Add(file.c_str());
        }
        return chain;
    }
// get the chain from the Sample
get the chain from the Sample
get the chain from the Sample
TChain* GetSampleTChain(const Sample::value_type& sample)
    {
        const Sample::Info info = GetSampleInfo(sample);
        std::vector<std::string> vpath = lt::string_split(info.ntuple_path, ",");
        TChain* chain = new TChain("Events");
        for (const auto& file : vpath)
        {
            chain->Add(file.c_str());
        }
        return chain;
    }
TChain * GetSampleTChain ( const Sample :: value_type & sample ) { const Sample :: Info info = GetSampleInfo ( sample ) ; std :: vector < std :: string > vpath = lt :: string_split ( info . ntuple_path , " " ) ; TChain * chain = new TChain ( " " ) ; for ( const auto & file : vpath ) { chain -> Add ( file . c_str ( ) ) ; } return chain ; }
get the chain from the Sample
get the chain from the Sample
// build the list of files // build the chain