38 testInvariant ()
const
54 SampleGrid (
const std::string& name)
62 std::size_t SampleGrid ::
66 RCU_THROW_MSG (
"Sample::numFiles not supported for SampleGrid");
72 std::string SampleGrid ::
73 getFileName (
const std::size_t )
const
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
105 const std::string fileFilter
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
#define RCU_NEW_INVARIANT(x)
#define RCU_READ_INVARIANT(x)
#define RCU_THROW_MSG(message)
ClassImp(SH::SampleGrid) namespace SH
This class implements a Sample located on the grid.
This module provides a lot of global definitions, forward declarations and includes that are used by ...
const std::string & downloadStageEnvVar()
the name of the environment variable containing the directory for staging files from the grid
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
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 (...