8 DIR *
dir = opendir(
dir_.c_str());
11 while((buf=readdir(dir))){
13 if (dirnameNum.find(
"run")!=std::string::npos)
14 dirnameNum=dirnameNum.substr(3,std::string::npos);
15 if(atoi(dirnameNum.c_str()) > maxrun){maxrun = atoi(dirnameNum.c_str());}
23 DIR *
dir = opendir(
dir_.c_str());
26 while((buf=readdir(dir))){
28 if (dirnameNum.find(
"run")!=std::string::npos)
29 dirnameNum=dirnameNum.substr(3,std::string::npos);
30 if(atoi(dirnameNum.c_str()) > maxrun){tmpdir = buf->d_name; maxrun = atoi(dirnameNum.c_str());}
40 DIR *
dir = opendir(
dir_.c_str());
42 while((buf=readdir(dir))){
44 if (dirnameNum.find(
"run")!=std::string::npos)
45 dirnameNum=dirnameNum.substr(3,std::string::npos);
46 if((
unsigned int)atoi(dirnameNum.c_str()) ==run){tmpdir = buf->d_name;
break;}
49 if(tmpdir==
"")
throw cms::Exception(
"LogicError") <<
"Run Directory for Run " << run <<
" Not Found";
57 DIR *
dir = opendir(d.c_str());
59 while((buf=readdir(dir))){
62 return (filecount==0);
bool checkDirEmpty(std::string &)
unsigned int findHighestRun()
std::string findHighestRunDir()
std::string findRunDir(unsigned int)