21 AddLegendEntry(
"2-#sigma band", 5);
22 AddLegendEntry(
"1-#sigma band", 3);
23 AddLegendEntry(
"Expected", 1, 3, 2);
24 AddLegendEntry(
"Observed", 1, 3, 1);
36 Double_t mid, Double_t high, Double_t highest )
40 Message(
eDebug,
"Adding point at %f, observed: %f, limit band: %f, %f, %f, %f, %f",
41 point, observed, lowest, low, mid, high, highest);
47 fObserved.SetPoint(Npoint, point, observed);
48 fObserved.SetPointError(Npoint, 0.0, 0.0);
50 fExpected.SetPointError(Npoint, 0.0, 0.0);
54 fOneSigma.SetPoint(Npoint, point, (low + high)/2);
55 fOneSigma.SetPointError(Npoint, 0.0, (high - low)/2);
57 fTwoSigma.SetPoint(Npoint, point, (lowest + highest)/2);
58 fTwoSigma.SetPointError(Npoint, 0.0, (highest - lowest)/2);
75 Message(
eInfo,
"Reading config file: %s", filename.Data());
77 std::ifstream configFile;
78 configFile.open(filename.Data());
81 TString lowest, low, mid, high, highest;
82 Bool_t reading =
true;
85 configFile >> xVal >> observed >> lowest >> low >> mid >> high >> highest;
87 AddPoint(xVal.Atof(), observed.Atof(), lowest.Atof(), low.Atof(),
88 mid.Atof(), high.Atof(), highest.Atof());
100 Bool_t logY, Bool_t logX)
103 std::vector<TGraphErrors*> theLines;
117 BaseCanvas(FileBase, theLines, XLabel, YLabel, logY, logX);