Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 13 of file eventloop_exec_worker.cxx.
15 using namespace asg::msgUserCode;
27 std::size_t maxIndex = std::stoul (
argv[2]);
29 std::ostringstream basedirName;
32 if (gSystem->MakeDirectory (basedirName.str().c_str()) != 0)
33 RCU_THROW_MSG (
"failed to create directory " + basedirName.str());
39 std::ostringstream dirName;
40 dirName << basedirName.str() <<
"/" <<
index;
41 if (gSystem->MakeDirectory (dirName.str().c_str()) != 0)
43 ANA_MSG_ERROR (
"failed to create directory " + dirName.str());
44 return StatusCode::FAILURE;
47 std::ostringstream
cmd;
48 cmd <<
"cd " << dirName.str() <<
" && ";
54 return StatusCode::FAILURE;
56 return StatusCode::SUCCESS;
60 if (submitSingle (
index).isFailure())
65 std::ofstream ((
submitDir +
"/submitted").c_str());