Dear developers,
I have three 2D histograms h1,H2 and nt2. I want to evaluate the following formula
Nt3 = (f/1-f)×nt2
Where f = h1/H2
Then I want to draw Nt3 in colz text E draw option.
Kindly help me to solve this.
Cheers,
Nab
Dear developers,
I have three 2D histograms h1,H2 and nt2. I want to evaluate the following formula
Nt3 = (f/1-f)×nt2
Where f = h1/H2
Then I want to draw Nt3 in colz text E draw option.
Kindly help me to solve this.
Cheers,
Nab
some ideas:
TH2D *f;
f->Divide(h1,H2);
TH2D *oneminusf = f->Clone();
for(int i; i<=nbinx; i++) {
for(int j; j<=nbiny; ij++) {
oneminusf->SetBinContent(i,j...);
}
}
TH2D *Nt4;
Nt4->Divide(f,oneminusf);
etc ....
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.