Hi,
I have a histogram let’s say ETA distribution, I would like to plot the absolute value of eta. for this i created another histo which will stock the absolute value of the first one doing this
TH1F *h1 = new TH1F("abseta", "abs(eta)",100,-4.5,4.5);
int nbins3 = h3->GetXaxis()->GetNbins();
for (int i=0; i<nbins1 ;i++){
Float_t v = Old_hist->GetBinContent(i);
h1->SetBinContent(i,abs(v));
}
Nevertheless I still get the same distribution as the first,
Am I missing something ?