13 const IInterface* p ) : base_class(t,n,p)
36 return StatusCode::SUCCESS;
44 return StatusCode::SUCCESS;
47 double deltaR(
double eta1,
double eta2,
double phi1,
double phi2) {
48 double deltaPhi = TVector2::Phi_mpi_pi(phi1 - phi2);
49 double deltaEta = eta1 - eta2;
60 return StatusCode::FAILURE;
66 return StatusCode::FAILURE;
72 for (
const auto *hjet : *hiJets) {
74 float matchedJvt = -1;
76 for (
const auto *tjet : *caloJets) {
81 deltaR(tjet->eta(), hjet->eta(), hjet->phi(), tjet->phi());
83 if (dR <
m_deltaR.value() && dR < mindR) {
90 (jvtMatchedHandle)(*hjet) = matchedJvt;
92 (jvtMatchedHandle)(*hjet) = -1;
97 return StatusCode::SUCCESS;
Scalar deltaPhi(const MatrixBase< Derived > &vec) const
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Handle class for adding a decoration to an object.
double deltaR(double eta1, double eta2, double phi1, double phi2)