Hi, I have the following Problem. In my Canvas I displayed several histograms each with a statistic box. I then added a self written class called DoubleList to calculate the percentiles (1%, 2%, 5%, 10%). Additionally to the black percentile lines I am drawing at their position, I would like to add the corresponding value to the statistic box. I tried to follow the path in
Thanks for the quick replay but as I mentioned in my text I already tried that.
My command with s4->Draw(); where I am drawing the StatBox does not go well with h4->SetStats(0);
So how do I do that correctly, here is my “not working” version.
root [0]
Processing original.c...
In file included from input_line_11:1:
/Users/couet/Downloads/original.c:31:47: error: invalid suffix '.' on floating constant
TH1* h5 = new TH1D("8000 Samples","", 260, 4.6., 13.6);
^
/Users/couet/Downloads/original.c:48:46: error: invalid suffix '.' on floating constant
TH1* h = new TH1D("4000 Samples","", 260, 4.6., 13.6);
^
/Users/couet/Downloads/original.c:63:47: error: invalid suffix '.' on floating constant
TH1* h1 = new TH1D("2000 Samples","", 260, 4.6., 13.6);
^
/Users/couet/Downloads/original.c:135:1: error: use of undeclared identifier 'value'
value = OnePercent4.getValue();
^
/Users/couet/Downloads/original.c:136:1: error: use of undeclared identifier 'bin'
bin = h4->GetXaxis()->FindBin(value);
^
/Users/couet/Downloads/original.c:136:31: error: use of undeclared identifier 'value'
bin = h4->GetXaxis()->FindBin(value);
^
/Users/couet/Downloads/original.c:137:26: error: use of undeclared identifier 'value'
TLine *lOne4 = new TLine(value,-100,value,h4->GetBinContent(bin));
^
/Users/couet/Downloads/original.c:137:37: error: use of undeclared identifier 'value'
TLine *lOne4 = new TLine(value,-100,value,h4->GetBinContent(bin));
^
/Users/couet/Downloads/original.c:137:61: error: use of undeclared identifier 'bin'
TLine *lOne4 = new TLine(value,-100,value,h4->GetBinContent(bin));
^
/Users/couet/Downloads/original.c:140:35: error: use of undeclared identifier 'value'
TPaveText *Onept4 = new TPaveText(value-.2,-300,value+.2,-100);
^
/Users/couet/Downloads/original.c:140:49: error: use of undeclared identifier 'value'
TPaveText *Onept4 = new TPaveText(value-.2,-300,value+.2,-100);
^
/Users/couet/Downloads/original.c:142:27: error: use of undeclared identifier 'value'
Onept4->AddText(Form("%e",value));
^
/Users/couet/Downloads/original.c:145:1: error: use of undeclared identifier 'value'
value = TwoPercent4.getValue();
^
/Users/couet/Downloads/original.c:146:1: error: use of undeclared identifier 'bin'
bin = h4->GetXaxis()->FindBin(value);
^
/Users/couet/Downloads/original.c:146:31: error: use of undeclared identifier 'value'
bin = h4->GetXaxis()->FindBin(value);
^
/Users/couet/Downloads/original.c:147:26: error: use of undeclared identifier 'value'
TLine *lTwo4 = new TLine(value,-100,value,h4->GetBinContent(bin));
^
/Users/couet/Downloads/original.c:147:37: error: use of undeclared identifier 'value'
TLine *lTwo4 = new TLine(value,-100,value,h4->GetBinContent(bin));
^
/Users/couet/Downloads/original.c:147:61: error: use of undeclared identifier 'bin'
TLine *lTwo4 = new TLine(value,-100,value,h4->GetBinContent(bin));
^
/Users/couet/Downloads/original.c:151:1: error: use of undeclared identifier 'value'
value = FivePercent4.getValue();
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]