4 void RunPP(
const char *jobid=
"test")
9 TString input0(
"/star/u/russcher/gamma/analysis/data/pp05/ppProduction_rcf_0.root");
10 TString input1(
"/star/u/russcher/gamma/analysis/data/pp05/ppProduction_rcf_1.root");
11 TString input2(
"/star/u/russcher/gamma/analysis/data/pp05/ppProduction_rcf_2.root");
12 TString input3(
"/star/u/russcher/gamma/analysis/data/pp05/ppProduction_rcf_3.root");
13 TString input4(
"/star/u/russcher/gamma/analysis/data/pp05/ppProductionMinBias.root");
15 TString outdir(
"/star/u/russcher/gamma/analysis/output/pp05/");
16 TString psout(
"pi0_pp05.ps");
17 TString psout2(
"eta_pp05.ps");
18 TString rootout(
"pi0_pp05.root");
20 rootout.Prepend(jobid);
21 TString command(
"mkdir ");
22 command.Append(outdir.Data());
23 command.Append(jobid);
24 gSystem->Exec(command.Data());
25 cout<<endl<<
"storing results in: "<<command.Data()<<endl<<endl;
29 psout.Prepend(outdir.Data());
30 psout2.Prepend(outdir.Data());
31 rootout.Prepend(outdir.Data());
33 gSystem->Load(
"$HOME/MyEvent/MyEvent.so");
34 gSystem->Load(
"$HOME/gamma/analysis/lib/AnaCuts.so");
35 gSystem->Load(
"$HOME/gamma/analysis/lib/EventMixer.so");
36 gSystem->Load(
"$HOME/gamma/analysis/lib/Pi0Analysis.so");
41 pi0->init(rootout.Data());
43 pi0->make(nev,input0.Data());
44 pi0->make(nev,input1.Data());
45 pi0->make(nev,input2.Data());
46 pi0->make(nev,input3.Data());
47 pi0->printPrescales();
48 cout<<
"****** starting with minbias *********"<<endl;
49 pi0->make(nev,input4.Data());
50 pi0->printPrescales();