4 void RunPythia(
const char *jobid=
"test",
const char *bin)
8 TString input(
"/star/u/russcher/gamma/analysis/data/pythia/");
10 input+=TString(
".root");
11 TString outdir(
"/star/u/russcher/gamma/analysis/output/pythia/");
12 outdir=outdir+TString(bin)+
"_"+TString(jobid)+
"/";
13 TString psout(
"pi0_pythia.ps");
14 TString psout2(
"pi0_pythia2.ps");
15 TString rootout(
"pi0_pythia.root");
20 psout2.Prepend(jobid);
21 rootout.Prepend(jobid);
22 TString command(
"mkdir ");
23 command.Append(outdir.Data());
24 gSystem->Exec(command.Data());
25 cout<<endl<<
"storing results in: "<<command.Data()<<endl<<endl;
27 psout.Prepend(outdir.Data());
28 psout2.Prepend(outdir.Data());
29 rootout.Prepend(outdir.Data());
31 gSystem->Load(
"$HOME/MyEvent/MyEvent.so");
32 gSystem->Load(
"$HOME/gamma/analysis/lib/AnaCuts.so");
33 gSystem->Load(
"$HOME/gamma/analysis/lib/EventMixer.so");
34 gSystem->Load(
"$HOME/gamma/analysis/lib/Pi0Analysis.so");
38 pi0->setPythia(kTRUE);
39 pi0->init(rootout.Data());
40 pi0->make(nev,input.Data());