4 void RunHijing(
const char *jobid=
"test")
8 TString input(
"/star/u/russcher/gamma/analysis/data/hijing/hijing.root");
10 TString outdir(
"/star/u/russcher/gamma/analysis/output/dAu/hijing/");
11 TString psout(
"pi0_hijing.ps");
12 TString rootout(
"pi0_hijing.root");
14 rootout.Prepend(jobid);
15 TString command(
"mkdir ");
16 command.Append(outdir.Data());
17 command.Append(jobid);
18 gSystem->Exec(command.Data());
19 cout<<endl<<
"storing results in: "<<command.Data()<<endl<<endl;
23 psout.Prepend(outdir.Data());
24 rootout.Prepend(outdir.Data());
26 gSystem->Load(
"MyEvent/MyEvent.so");
27 gSystem->Load(
"gamma/analysis/lib/AnaCuts.so");
28 gSystem->Load(
"gamma/analysis/lib/Pi0Analysis.so");
32 pi0->setHijing(kTRUE);
33 pi0->init(rootout.Data());
34 pi0->make(nev,input.Data());
36 TH1F *h_mb=
new TH1F(*pi0->getYield(0,
"mb"));
37 for(
int i=1;i<=h_mb->GetNbinsX();i++){
38 h_mb->SetBinContent(i,h_mb->GetBinContent(i)*h_mb->GetXaxis()->GetBinWidth(i));
39 h_mb->SetBinError(i,h_mb->GetBinError(i)*h_mb->GetXaxis()->GetBinWidth(i));
41 TH1F *h_input=
new TH1F(*(TH1F*)pi0->h_mcneutronsMB);
43 TCanvas *c=
new TCanvas(
"c",
"c",400,600);
49 h_mb->SetLineStyle(2);
51 TH1F *eff=
new TH1F(*h_mb);
55 c->SaveAs(
"hijing.ps");