|
ATLAS Offline Software
|
Go to the documentation of this file.
66 RCU_THROW_MSG (
"Sample::numFiles not supported for SampleGrid");
76 RCU_THROW_MSG (
"Sample::fileName not supported for SampleGrid");
87 std::unique_ptr<SampleLocal>
result (
new SampleLocal (
name()));
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
virtual std::size_t getNumFiles() const
the number of files in the sample
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 (...
virtual SamplePtr doMakeLocal() const
Make this a local sample, i.e.
std::vector< std::string > makeFileList() const
make a list of all files, prestaging them if necessary
This class implements a Sample located on the grid.
virtual std::vector< std::string > doMakeFileList() const
make a list of all files, prestaging them if necessary
MetaObject * meta()
the meta-information for this sample
const std::string & name() const
the name of the sample we are using
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
void testInvariant() const
test the invariant of this object
std::string getenv(const std::string &variableName)
get an environment variable
const std::string & downloadStageEnvVar()
the name of the environment variable containing the directory for staging files from the grid
SampleGrid()
standard constructor
This module provides a lot of global definitions, forward declarations and includes that are used by ...
#define RCU_THROW_MSG(message)
#define RCU_READ_INVARIANT(x)
ClassImp(SH::SampleGrid) namespace SH
virtual std::string getFileName(std::size_t index) const
the name of the file with the given index
#define RCU_NEW_INVARIANT(x)