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());
29 while ((
buf = readdir(
dir))) {
31 if (dirnameNum.find(
"run") != std::string::npos)
32 dirnameNum = dirnameNum.substr(3, std::string::npos);
33 if (atoi(dirnameNum.c_str()) >
maxrun) {
35 maxrun = atoi(dirnameNum.c_str());
48 while ((
buf = readdir(
dir))) {
50 if (dirnameNum.find(
"run") != std::string::npos)
51 dirnameNum = dirnameNum.substr(3, std::string::npos);
52 if ((
unsigned int)atoi(dirnameNum.c_str()) ==
run) {
59 throw cms::Exception(
"LogicError") <<
"Run Directory for Run " <<
run <<
" Not Found";
67 while (readdir(
dir)) {
70 return (filecount == 0);
bool checkDirEmpty(std::string &)
unsigned int findHighestRun()
std::string findHighestRunDir()
std::string findRunDir(unsigned int)