Try: if (trig_L1_jet_thrNames) {
for (unsigned i = 0; i < trig_L1_jet_thrNames->size(); i++) {
for (unsigned j = 0; j < (trig_L1_jet_thrNames->at(i)).size(); j++) {
std::cout << "i=" << i
<<" j=" << j
<<" STRING=" << (trig_L1_jet_thrNames->at(i)).at(j)
<< std::endl;
}
}
} else {
std::cout << "Warning: trig_L1_jet_thrNames is NULL." << std::endl;
}
For “std::vector<std::vector >” see [url]Storing 2D vector [--> vector<vector<...> >] into a TTree
For “std::vector<std::vectorstd::string >” see [url]Problem in getting the vector < vector <string> > branch