13 #include <boost/algorithm/string.hpp> 19 bool useLFNasPFNifLFNnotFound)
20 : logicalFileNames_(
fileNames), fileNames_(
fileNames), fileCatalogItems_(), overrideFileLocator_() {
21 init(
override, useLFNasPFNifLFNnotFound);
27 std::vector<std::string>
tmp;
30 tmp.push_back(
item.fileName(iCatalog));
36 typedef std::vector<std::string>::iterator iter;
40 std::make_unique<FileLocator>(inputOverride);
45 throw cms::Exception(
"TrivialFileCatalog",
"edm::SiteLocalConfigService is not available");
47 std::vector<std::string>
const& tmp_dataCatalogs = localconfservice->dataCatalogs();
52 fileLocators_.push_back(std::make_unique<FileLocator>(tmp_dataCatalogs.front()));
54 for (
auto it = tmp_dataCatalogs.begin() + 1; it != tmp_dataCatalogs.end(); ++it) {
65 std::vector<std::string> pfns;
68 <<
"An empty string specified in the fileNames parameter for input source.\n";
71 if (it->back() ==
':') {
73 <<
"An empty physical file name specified in the fileNames parameter for input source.\n";
80 findFile(*lt, pfns, useLFNasPFNifLFNnotFound);
87 std::vector<std::string>& pfns,
88 bool useLFNasPFNifLFNnotFound) {
94 if (pfn.empty() && useLFNasPFNifLFNnotFound)
static void trim(std::string &s)