4 void Run(
const char *jobid=
"test")
8 TString input0(
"/star/u/russcher/gamma/analysis/data/dAu/dAuCombined_0.root");
9 TString input1(
"/star/u/russcher/gamma/analysis/data/dAu/dAuCombined_1.root");
10 TString input2(
"/star/u/russcher/gamma/analysis/data/dAu/UPCCombined.root");
11 TString input3(
"/star/u/russcher/gamma/analysis/data/dAu/dAuUPCCombined.root");
13 TString outdir(
"/star/u/russcher/gamma/analysis/output/dAu/");
14 TString psout(
"pi0_dAu.ps");
15 TString rootout(
"pi0_dAu.root");
17 rootout.Prepend(jobid);
18 TString command(
"mkdir ");
19 command.Append(outdir.Data());
20 command.Append(jobid);
21 gSystem->Exec(command.Data());
22 cout<<endl<<
"storing results in: "<<command.Data()<<endl<<endl;
26 psout.Prepend(outdir.Data());
27 rootout.Prepend(outdir.Data());
29 gSystem->Load(
"$HOME/MyEvent/MyEvent.so");
30 gSystem->Load(
"$HOME/gamma/analysis/lib/AnaCuts.so");
31 gSystem->Load(
"$HOME/gamma/analysis/lib/EventMixer.so");
32 gSystem->Load(
"$HOME/gamma/analysis/lib/Pi0Analysis.so");
36 pi0->init(rootout.Data());
38 pi0->make(nev,input0.Data());
39 pi0->make(nev,input1.Data());
40 pi0->printPrescales();
42 pi0->make(nev,input2.Data());
43 pi0->printPrescales();
44 pi0->make(nev,input3.Data());
45 pi0->printPrescales();