Fill content of two branches in one histo with TTree::Draw()

Hi,

I was wondering if there is a solution for the following, other than making two histograms and adding them up afterwards:

suppose I have two branches electronpt and muonpt, and I would like to fill ‘leptonpt’ into a histogram, is there any way to make TTree:Draw() do this in one go?

Thanks,
Philipp

T.Draw(“electronpt>>hpt”);
T.Draw(“muonpt>>+hpt”);

see documentation of TTree::Draw()

Rene