Is there a way to clear the contents of a TLorentzVector vector?

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

I’m writing a program to handle data from a .ROOT file created by Delphes. I take the data for a particular electron and construct a 4-momentum for it (using .SetPtEtaPhiM() to set the values of a TLorentzVector), however once I’m done I want to clear the vector. I know how to do this for a typical vector but I can’t think of a way to do it for a TLorentzVector.



If you want to clear the content, just do:

v = TLorentzVector(); 


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