Hi,
i want to obtain the scaled number of events which passed a certain cut. I do this:
Ztaue_NOMINAL->Draw(“electrons_pt”,“4000normWeighttotalWeight*(electrons_pt>30)”)
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)
he->GetSumOfWeights();
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?
Thanks.