16 if (gSystem->Exec(cmd.c_str()) != 0) {
21int main (
int argc,
char **argv)
23 using namespace asg::msgUserCode;
34 std::string jobDefFile = argv[1];
35 std::string output = argv[2];
36 std::string input = argv[3];
38 std::string
type =
"DEFAULT";
39 std::string mergeCmd =
"";
41 TFile jd(jobDefFile.c_str());
43 std::unique_ptr<TList> outs{
dynamic_cast<TList*
>(jd.Get(
"outputs"))};
44 if (outs.get() ==
nullptr) {
47 TIter itr(outs.get());
49 while ((obj = itr())) {
51 if (std::regex_match(output, std::regex(os->label() +
"\\.root.*")) ||
52 std::regex_match(output, std::regex(
".*\\." + os->label() +
"\\.root.*")))
60 if (mergeCmd.empty()) {
62 mergeCmd =
"xAODMerge -s";
63 }
else if (
type ==
"xAODNoMeta") {
64 mergeCmd =
"xAODMerge";
69 mergeCmd +=
" " + output +
" " + input;
#define RCU_THROW_MSG(message)
static const std::string optType
static const std::string optMergeCmd
void try_exec(const std::string &cmd)
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.