Sorry if it’s a naive question, but is there a built-in formula I can use in TTree::Draw to compute deltaR values between to vectors in (eta,phi) coordinates ?
I have plain ntuple variables, and need something like
deltaR(eta1,phi1,eta2,phi2) = sqrt( (eta1-eta2)^2 + deltaPhi(ph1,phi2)^2 )
With, obviously deltaPhi NOT equals to (phi1-phi2).
I couldn’t find this in TMath, for example