24 bool jshell = jName!=
"" ? true :
false;
27 TFile*
jfile = jName==
"" ? gROOT->GetFile() : jfile =
new TFile(jName);
29 cout <<
"cwb_jnet - Error opening root file : " << jName << endl;
30 if(jshell)
exit(1);
else return;
37 cout <<
"cwb_jnet - config is not present in : " << jName << endl;
38 if(jshell)
exit(1);
else return;
43 if(uName!=
"") cfg.
Import(uName);
51 jName = jfile->GetPath();
52 jName.ReplaceAll(
":/",
"");
53 cout << jName.Data() << endl;
60 TObjString* stoken =(TObjString*)token->At(token->GetEntries()-1);
61 int jobID=
TString(stoken->GetString().ReplaceAll(
"job",
"").ReplaceAll(
".root",
"")).Atoi();
62 TString jdir = stoken->GetString().ReplaceAll(
".root",
"");
74 cout <<
"Dir " << jdir.Data() <<
" already exist" << endl;
75 cout <<
"Do you want to overwrite it ? (y/n) ";
78 }
while ((strcmp(answer,
"y")!=0)&&(strcmp(answer,
"n")!=0));
79 if (strcmp(answer,
"n")==0) overwrite=
false;
91 TString juser_parameters =
"config/juser_parameters.C";
92 if(uName!=
"") gSystem->Exec(
TString(
"cp ")+uName+
" "+jdir+
"/"+juser_parameters);
97 gSystem->Exec(
TString(
"echo \"{\n\" >> ")+juser_parameters);
98 gSystem->Exec(
TString(
"echo \"jobfOptions=CWB_JOBF_SAVE_ALL;\n\" >> ")+juser_parameters);
99 gSystem->Exec(
TString(
"echo \"}\n\" >> ")+juser_parameters);
116 cout <<
"cwb_jnet - Error : analysis must be 1G or 2G" << endl;
117 if(jshell)
exit(1);
else return;
120 jshell ?
exit(0) :
return;
void Export(TString fname="")
void cwb_jnet(TString jName="", TString uName="")
void Import(TString umacro="")
virtual void run(int runID=0)
strcpy(RunLabel, RUN_LABEL)