Hello all,
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
tree->Draw("deltaR(V1_eta,V1_phi,V2_eta,V2_phi)")
where
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
Cheers,
P.A.