6 bool jshell = jName!=
"" ?
true :
false;
9 TFile*
jfile = jName==
"" ? gROOT->GetFile() : jfile =
new TFile(jName);
11 cout <<
"cwb_jnet - Error opening root file : " << jName << endl;
12 if(jshell)
exit(1);
else return;
19 cout <<
"cwb_jnet - config is not present in : " << jName << endl;
20 if(jshell)
exit(1);
else return;
25 if(uName!=
"") cfg.
Import(uName);
33 jName = jfile->GetPath();
34 jName.ReplaceAll(
":/",
"");
35 cout << jName.Data() << endl;
42 TObjString* stoken =(TObjString*)token->At(token->GetEntries()-1);
43 int jobID=
TString(stoken->GetString().ReplaceAll(
"job",
"").ReplaceAll(
".root",
"")).Atoi();
44 TString jdir = stoken->GetString().ReplaceAll(
".root",
"");
56 cout <<
"Dir " << jdir.Data() <<
" already exist" << endl;
57 cout <<
"Do you want to overwrite it ? (y/n) ";
60 }
while ((strcmp(answer,
"y")!=0)&&(strcmp(answer,
"n")!=0));
61 if (strcmp(answer,
"n")==0) overwrite=
false;
73 TString juser_parameters =
"config/juser_parameters.C";
74 if(uName!=
"") gSystem->Exec(
TString(
"cp ")+uName+
" "+jdir+
"/"+juser_parameters);
79 gSystem->Exec(
TString(
"echo \"{\n\" >> ")+juser_parameters);
80 gSystem->Exec(
TString(
"echo \"jobfOptions=CWB_JOBF_SAVE_ALL;\n\" >> ")+juser_parameters);
81 gSystem->Exec(
TString(
"echo \"}\n\" >> ")+juser_parameters);
98 cout <<
"cwb_jnet - Error : analysis must be 1G or 2G" << endl;
99 if(jshell)
exit(1);
else return;
102 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)