hi,
how i code and fill Historam FatJet_EhadoverEem using Tlorentzvector h , b1,b2
?
Hi Ahmed,
It is hard to figure out what is really meant by this question, but I’ll try.
You have a pair of TLorentzVector instances and you want to fill a histogram with some of their properties. In this case, supposing you want to have a histogram of the jets’ eta, you’d do:
TH1D myHisto("JetsEta","Jets #eta;Jet_{#eta};# of jets", 64, -4, 4);
myHisto.Fill(b1.Eta());
myHisto.Fill(b2.Eta());
See the doc of TLorentzVector.
Please consider using ROOT::Math::LorentzVector
instead of TLorentzVector
as stated in the doc. Good luck.
Best,
D
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.