Just to give some extra information about my original query. With TLorenzVectors, DeltaR between 2 TLorentzVectors is simply computed with: v1.DeltaR(v2)
While if v1 and v2 were PtEtaPhiMVector, if I try the same: v1.DeltaR(v2), then I obtain the following error: error: no member named ‘DeltaR’ in ‘ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D >’
Hi!
DeltaR was added very recently. So it might be that your ROOT version does not yet have it. In the meantime, you will have to build from master branch instead.