KIT-CMS / Excalibur

Analysis repository for Z+Jet studies
1 stars 4 forks source link

Fixed bug in ZJetProduct::GetTransverseAngleCosine #60

Closed HerrHorizontal closed 4 years ago

HerrHorizontal commented 4 years ago

Typo in the calculation of the $\cos(\Delta\phi(a,b))$ has been fixed.

HerrHorizontal commented 4 years ago

It might be more convenient to use the ROOT function TLorentzVector::DeltaPhi() instead, if possible in https://github.com/KIT-CMS/Excalibur/blob/82f6c70a2d8f6fc5c8a3c2897eaa40d99743f614/Compile/interface/ZJetProduct.h#L391. For example:

jnpf += cos( jet->p4.DeltaPhi(&m_z.p4) );

Not sure though, if this is posible due to the various abstraction layers.