This class implements a Sample located on the grid. More...
#include <SampleGrid.h>
Public Member Functions | |
void | testInvariant () const |
test the invariant of this object | |
SampleGrid () | |
standard constructor | |
SampleGrid (const std::string &name) | |
standard constructor | |
Protected Member Functions | |
virtual std::size_t | getNumFiles () const |
virtual std::string | getFileName (std::size_t index) const |
virtual SamplePtr | doMakeLocal () const |
virtual std::vector< std::string > | doMakeFileList () const |
ClassDef (SampleGrid, 1) |
This class implements a Sample located on the grid.
This sample is (somewhat) special, in that it doesn't contain a file list per se. Instead it relies on its meta-data entries to identify a grid dataset or dataset container, and a pattern for the files to use within.
The main purpose as such is to pass it as an input sample into the EL::GridDriver. However, in practice one can still use this like a regular sample (using direct access via FAX, or pre-loading via rucio).
Normally you will not create these samples directly, but rely on the various data discovery methods, or one at a time via addGrid()
SH::SampleGrid::SampleGrid | ( | ) |
standard constructor
SH::SampleGrid::SampleGrid | ( | const std::string & | name | ) |
standard constructor
name | the name of the sample |
virtual std::vector<std::string> SH::SampleGrid::doMakeFileList | ( | ) | const [protected, virtual] |
make a list of all files, prestaging them if necessary
Implements SH::Sample.
virtual SamplePtr SH::SampleGrid::doMakeLocal | ( | ) | const [protected, virtual] |
Make this a local sample, i.e. one which can be directly opened with TFile::Open.
Implements SH::Sample.
virtual std::string SH::SampleGrid::getFileName | ( | std::size_t | index | ) | const [protected, virtual] |
the name of the file with the given index
index | the index of the file |
Implements SH::Sample.
virtual std::size_t SH::SampleGrid::getNumFiles | ( | ) | const [protected, virtual] |
the number of files in the sample
Implements SH::Sample.
void SH::SampleGrid::testInvariant | ( | ) | const |