#include <dataset.h>
Definition at line 27 of file dataset.h.
◆ dataset()
dataset::dataset |
( |
const std::string & |
st | ) |
|
|
inline |
need to open on eos
eos.select no longer works
grrrr, the getenv actually crashes for some reason
Definition at line 31 of file dataset.h.
32 std::cout <<
"dataset::dataset() reading files from " << st << std::endl;
36 if (
s.find(
"root://eos")!=std::string::npos ) {
41 size_t pos=
s.find(
"//");
42 while(
pos!=std::string::npos ) {
43 s =
s.substr(
pos+1,
s.length());
47 std::string xcmd =
"eos ls "+
s+
"/";
48 std::system( (xcmd+
" > .eosfiles-$$.log").c_str() );
50 std::string
cmd =
"export EOSFILES=$("+xcmd+
")";
51 std::system(
cmd.c_str() );
53 std::ifstream
infile(
".eosfiles-$$.log");
59 file.find(
".root")!=std::string::npos &&
60 file.find(
".part")==std::string::npos &&
61 file.find(
".bak")==std::string::npos &&
62 file.find(
".skimmed")==std::string::npos ) push_back(
s+
"/"+
file );
76 if( ( dirp = opendir(
s.c_str()) ) ) {
77 while( (
entry = readdir(dirp) ) ) {
79 if (
file.find(
".root")!=std::string::npos ) {
80 push_back(
s+
"/"+
file );
86 std::cout <<
"dataset::dataset() " <<
size() <<
" files in dataset" << std::endl;
◆ ~dataset()
◆ datafiles()
const std::vector<std::string>& dataset::datafiles |
( |
| ) |
|
|
inline |
◆ directory()
const std::string& dataset::directory |
( |
| ) |
const |
|
inline |
◆ elements
T std::vector< T >::elements |
|
inherited |
◆ m_directory
std::string dataset::m_directory |
|
private |
The documentation for this class was generated from the following file: