Extracting variables from TLorentzVector

Can someone tell me how to extract the variables px, py, pz, E from Tlorentzvector and assign it into newly declared variables which are of the double datatype

I think you are looking for the Px() , Py() and Pz() methods defined here.

Yes I did refer this. Let me be more specific. Can I extract these for a Jet? The px, py, pz,E of a jet would be just the sum of its constituents particles right?

Alright . It does work for jet. Thanks anyway