Hello, I’m trying to calculate the area under curve of a TH1F. I wrote
Double_t integral= htempkinensp->Integral(0,45);
but I noticed that I get different values of the area depending of the bin number that I set. For exampl, you can see in the stat box, here I setted
ts->Draw(Form("SecondaryParticleKinEn >> htemp(45000, 0., 45000.)"));
here I setted
ts->Draw(Form("SecondaryParticleKinEn >> htemp(1000, 0., 45000.)"));
you see in the stat box I get different Integral values…
I think the right value should be 34725
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

