Extracting components of a vector object in ttree and plotting it

Hi. I have a ttree named analysis and there’s an object called q_pt which is a vector object. It is a fourvector and I want to make histograms of each component separately. How should I go about that?
Help is greatly appreciated.

Hello,

Welcome to the ROOT forum!

Some general information on how work with histograms and data can be found here:
https://root.cern/doc/master/df001__introduction_8C.html
https://root.cern/doc/master/df002__dataModel_8C.html

Does this help?

Cheers,
Jakob

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.