hello
I overlap the histograms after doing the job and getting the stack histogram the stat box is missing is there any way for stat box . kindly check my macro.
Hi ,
Yes i tell u what i m doing in the code
I am stacking the histograms which i am getting from root files ( WW.root ,TT.root,DY.root)
By giving the command
THStack* hs= new THStack("name ",“Title”);
Then i add all histograms in hs
hs->Add(h1);
hs->Add(h2);
.
.
.
.
.
h1, h2 … are names of histograms which i m stacking .
then i give command
hs->Draw();
Your macro seems correct. As I do note have your root files I tried to simulate what you are doing using an histogram I have and it is fine for me. I see the stats. Which root version are you using ? on which platform ? can I have the root files ?
I try it but find only one stat box as i stack three histograms so i want three stat box .
i repeat it three times as
h1->Draw();
h2->Draw();
h3->Draw();
then i get the stat box for last histogram .