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) {
16 maxrun = atoi(dirnameNum.c_str());
28 while ((buf = readdir(dir))) {
30 if (dirnameNum.find(
"run") != std::string::npos)
31 dirnameNum = dirnameNum.substr(3, std::string::npos);
32 if (atoi(dirnameNum.c_str()) > maxrun) {
34 maxrun = atoi(dirnameNum.c_str());
47 while ((buf = readdir(dir))) {
49 if (dirnameNum.find(
"run") != std::string::npos)
50 dirnameNum = dirnameNum.substr(3, std::string::npos);
51 if ((
unsigned int)atoi(dirnameNum.c_str()) == run) {
58 throw cms::Exception(
"LogicError") <<
"Run Directory for Run " << run <<
" Not Found";
64 DIR *
dir = opendir(d.c_str());
66 while ((buf = readdir(dir))) {
69 return (filecount == 0);
bool checkDirEmpty(std::string &)
unsigned int findHighestRun()
std::string findHighestRunDir()
std::string findRunDir(unsigned int)