Go to the source code of this file.
|
void | BSvsBPIXPlot (TFile *ff, const char *bsmodule, const char *occumodule, const int run) |
|
void BSvsBPIXPlot |
( |
TFile * |
ff, |
|
|
const char * |
bsmodule, |
|
|
const char * |
occumodule, |
|
|
const int |
run |
|
) |
| |
Definition at line 10 of file BSvsBPIX.cc.
References gather_cfg::cout, mps_fire::i, and point.
12 TGraphErrors* bspos =
new TGraphErrors();
13 TGraphErrors* bpixpos =
new TGraphErrors();
18 sprintf(bsfolder,
"%s/run_%d",bsmodule,
run);
19 if(
ff->cd(bsfolder)) {
20 TH1F* bsx = (TH1F*)gDirectory->Get(
"bsxrun");
21 TH1F* bsy = (TH1F*)gDirectory->Get(
"bsyrun");
24 << bsx->GetMean() <<
"+/-" << bsx->GetMeanError() <<
"," 25 << bsy->GetMean() <<
"+/-" << bsy->GetMeanError() <<
")" << std::endl;
26 bspos->SetPoint(0,bsx->GetMean(),bsy->GetMean());
27 bspos->SetPointError(0,bsx->GetMeanError(),bsy->GetMeanError());
31 sprintf(occufolder,
"%s/run_%d",occumodule,
run);
32 if(
ff->cd(occufolder)) {
33 TProfile* xmean = (TProfile*)gDirectory->Get(
"avex");
34 TProfile* ymean = (TProfile*)gDirectory->Get(
"avey");
36 for(
int i=1;
i<=xmean->GetNbinsX();++
i) {
37 if(xmean->GetBinEntries(
i) >0) {
39 << xmean->GetBinContent(
i) <<
"+/-" << xmean->GetBinError(
i) <<
"," 40 << ymean->GetBinContent(
i) <<
"+/-" << ymean->GetBinError(
i) <<
")" << std::endl;
41 int point = bpixpos->GetN();
42 bpixpos->SetPoint(point,xmean->GetBinContent(
i),ymean->GetBinContent(
i));
43 bpixpos->SetPointError(point,xmean->GetBinError(
i),ymean->GetBinError(
i));
50 new TCanvas(
"bsbpix",
"bsbpix",500,500);
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point