i want to obtain the scaled number of events which passed a certain cut. I do this:
If i then retrieve the histogram:
TH1F * he = (TH1F*)gPad->GetPrimitive(“htemp”)
he->GetEntries() is giving the unscaled number of events (nEvents which passed the cut, but are not multiplied with 4000normWeighttotalWeight)
gives me a number which seems correct.
Is it ok to get the scaled number of events which passed a cut like this or is there a better way?