30 testInvariant ()
const
46 SampleGrid (
const std::string& name)
54 std::size_t SampleGrid ::
58 RCU_THROW_MSG (
"Sample::numFiles not supported for SampleGrid");
64 std::string SampleGrid ::
65 getFileName (
const std::size_t )
const
68 RCU_THROW_MSG (
"Sample::fileName not supported for SampleGrid");
74 std::unique_ptr<SampleLocal> SampleGrid ::
79 std::unique_ptr<SampleLocal> result (
new SampleLocal (name()));
80 for (
auto&
file : makeFileList ())
81 result->add (
file.c_str());
87 std::vector<std::string> SampleGrid ::
88 doMakeFileList ()
const
91 using namespace msgGridTools;
95 const std::string sampleName
97 const std::string fileFilter
103 if (downloadDir[0] !=
'/')
104 throw std::runtime_error (
"rucio download path in variable " +
downloadStageEnvVar() +
" should start with /");
108 ANA_MSG_DEBUG (
"download dir not set, trying direct access");
109 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 (...