File source based on a wildcard (glob)
More...
#include <WildcardSource.h>
|
std::vector< std::string > | WildcardOrLs (const std::string &wildcard) const |
|
File source based on a wildcard (glob)
Definition at line 8 of file WildcardSource.h.
ana::WildcardSource::WildcardSource |
( |
const std::string & |
wildcard, |
|
|
int |
stride = -1 , |
|
|
int |
offset = -1 |
|
) |
| |
- Parameters
-
wildcard | Wildcard or glob. Anything glob() accepts is OK. May be a single literal filename. |
Definition at line 28 of file WildcardSource.cxx.
BEGIN_PROLOG TPC Trig offset(g4 rise time) ProjectToHeight
std::vector< std::string > WildcardOrLs(const std::string &wildcard) const
FileListSource(const std::vector< std::string > &files, int stride=-1, int offset=-1)
default offset and stride mean obey cmd-line options
ana::WildcardSource::~WildcardSource |
( |
| ) |
|
|
virtual |
std::vector< std::string > ana::WildcardSource::WildcardOrLs |
( |
const std::string & |
wildcard | ) |
const |
|
protected |
Definition at line 42 of file WildcardSource.cxx.
44 std::vector<std::string> ret =
Wildcard(wildcard);
50 wildcard.find(
"/pnfs/") == 0 &&
51 stat(
"/pnfs/", &ss) != 0){
53 std::cout <<
"No files matching " << wildcard <<
" but that's probably because /pnfs is not mounted on the current node." << std::endl;
std::vector< std::string > Wildcard(const std::string &wildcardString)
BEGIN_PROLOG could also be cout
The documentation for this class was generated from the following files: