|
ATLAS Offline Software
|
Go to the documentation of this file.
69 std::string myfile =
file;
70 if (myfile.find (
":/") == std::string::npos)
73 myfile = gSystem->WorkingDirectory() + (
"/" + myfile);
74 myfile =
"file://" + myfile;
115 std::vector<std::string>
result;
131 if (strncmp (
file->c_str(), from.c_str(), from.size()) == 0)
132 *
file =
to +
"/" +
file->substr (from.size());
virtual std::size_t getNumFiles() const
the number of files in the sample
ClassImp(SH::SampleLocal) namespace SH
virtual void doUpdateLocation(const std::string &from, const std::string &to)
update all file references starting with from to to
std::vector< std::string >::iterator FilesMIter
the mutable iterator for m_files
std::vector< std::string >::const_iterator FilesIter
the iterator for m_files
virtual SamplePtr doMakeLocal() const
Make this a local sample, i.e.
#define RCU_REQUIRE_SOFT(x)
std::vector< std::string > m_files
the list of files we use
void testInvariant() const
test the invariant of this object
virtual std::vector< std::string > doMakeFileList() const
make a list of all files, prestaging them if necessary
SampleLocal()
standard constructor
A Sample based on a simple file list.
#define RCU_CHANGE_INVARIANT(x)
This module provides a lot of global definitions, forward declarations and includes that are used by ...
void add(const std::string &file)
add a file to the list
#define RCU_READ_INVARIANT(x)
#define RCU_NEW_INVARIANT(x)
virtual std::string getFileName(std::size_t index) const
the name of the file with the given index