155 |
|
|
156 |
|
TH2F *fullerr = (TH2F*)fsyst->Get((prefix+"systotmap"+any2string(jzb_cut[ibin])).c_str()); |
157 |
|
TH2F *mceff = (TH2F*)fsyst->Get((prefix+"efficiencymap"+any2string(jzb_cut[ibin])).c_str()); |
158 |
< |
TH2F *NEvents = (TH2F*)fsyst->Get((prefix+"Nevents"+any2string(jzb_cut[ibin])).c_str()); |
158 |
> |
TH2F *NEvents = (TH2F*)fsyst->Get((prefix+"Neventsmap"+any2string(jzb_cut[ibin])).c_str()); |
159 |
|
|
160 |
|
TH2F *limitmap = new TH2F((prefix+"limitmap"+any2string(jzb_cut[ibin])).c_str(), "",(mgluend-mglustart)/mglustep+1,mglustart-0.5*mglustep,mgluend+0.5*mglustep,(mLSPend-mLSPstart)/mLSPstep+1,mLSPstart-0.5*mLSPstep,mLSPend+0.5*mLSPstep); |
161 |
|
TH2F *exclmap = new TH2F((prefix+"exclusionmap"+any2string(jzb_cut[ibin])).c_str(), "",(mgluend-mglustart)/mglustep+1,mglustart-0.5*mglustep,mgluend+0.5*mglustep,(mLSPend-mLSPstart)/mLSPstep+1,mLSPstart-0.5*mLSPstep,mLSPend+0.5*mLSPstep); |
174 |
|
ipoint++; |
175 |
|
if(!runninglocally&&!do_this_point(ipoint,Npoints,jobnumber,njobs)) continue; |
176 |
|
float currmceff=mceff->GetBinContent(mceff->FindBin(mglu,mlsp)); |
177 |
< |
float currtoterr=fullerr->GetBinContent(fullerr->FindBin(mglu,mlsp)); |
177 |
> |
float currtoterr=(fullerr->GetBinContent(fullerr->FindBin(mglu,mlsp)))*currmceff; |
178 |
|
float nevents=NEvents->GetBinContent(NEvents->FindBin(mglu,mlsp)); |
179 |
|
dout << "Looking at point " << ipoint << " with masses " << massgluname << " = " << mglu << " and " << massLSPname << " = " << mlsp << endl; |
180 |
|
dout << "Found : systerr=" << currtoterr << " and eff=" << currmceff << " and nevents=" << nevents << endl; |
360 |
|
syspdfmap->Fill(mglu,mlsp,sys_pdf); |
361 |
|
systotmap->Fill(mglu,mlsp,toterr/mceff);//total relative (!) error |
362 |
|
sysstatmap->Fill(mglu,mlsp,mcefferr);//total relative (!) error |
363 |
– |
efficiencymap->Fill(mglu,mlsp,result); |
363 |
|
dout << "A limit has been added at " << sigmas[0] << " for m_{glu}="<<mglu << " and m_{lsp}="<<mlsp<<endl; |
364 |
|
} //end of if sigma is positive |
365 |
|
//end of not systematics only condition |
371 |
|
syspdfmap->Fill(mglu,mlsp,sys_pdf); |
372 |
|
systotmap->Fill(mglu,mlsp,toterr/mceff);//total relative (!) error |
373 |
|
sysstatmap->Fill(mglu,mlsp,mcefferr);//total relative (!) error |
375 |
– |
efficiencymap->Fill(mglu,mlsp,mceff); |
374 |
|
} |
375 |
|
}//efficiency is valid |
376 |
|
} |