Go to the source code of this file.
◆ ClassImp()
Definition at line 33 of file SampleGrid.cxx.
38 testInvariant ()
const
54 SampleGrid (
const std::string&
name)
62 std::size_t SampleGrid ::
66 RCU_THROW_MSG (
"Sample::numFiles not supported for SampleGrid");
76 RCU_THROW_MSG (
"Sample::fileName not supported for SampleGrid");
82 SamplePtr SampleGrid ::
87 std::unique_ptr<SampleLocal>
result (
new SampleLocal (
name()));
88 for (
auto&
file : makeFileList ())
90 return SamplePtr (
result.release());
95 std::vector<std::string> SampleGrid ::
96 doMakeFileList ()
const
99 using namespace msgGridTools;
103 const std::string sampleName
104 = meta()->castString (MetaFields::gridName,
name());
105 const std::string fileFilter
106 = meta()->castString (MetaFields::gridFilter, MetaFields::gridFilter_default);
111 if (downloadDir[0] !=
'/')
112 throw std::runtime_error (
"rucio download path in variable " +
downloadStageEnvVar() +
" should start with /");
116 ANA_MSG_DEBUG (
"download dir not set, trying direct access");
117 const std::string sourceOptions
118 = meta()->castString (MetaFields::gridSourceOptions);
std::vector< std::string > rucioDirectAccessGlob(const std::string &name, const std::string &filter, const std::string &selectOptions)
list the rucio URLs for all the files in the dataset or dataset container matching the given filter (...
std::vector< std::string > rucioCacheDatasetGlob(const std::string &location, const std::string &dataset, const std::string &fileGlob)
download the dataset, and return a list matching the pattern