From 9940d49e06e976f0b5ddf16be518b087bbb11a4a Mon Sep 17 00:00:00 2001 From: Frank Winklmeier <frank.winklmeier@cern.ch> Date: Fri, 24 May 2019 15:21:24 +0200 Subject: [PATCH] Delete PhiHelper The methods have been moved to `CxxUtils/phihelper.h`. Note that the equivalent of `HLT::phiMean` is `CxxUtils::phiBisect`. --- .../TrigSteeringEvent/PhiHelper.h | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 Trigger/TrigEvent/TrigSteeringEvent/TrigSteeringEvent/PhiHelper.h diff --git a/Trigger/TrigEvent/TrigSteeringEvent/TrigSteeringEvent/PhiHelper.h b/Trigger/TrigEvent/TrigSteeringEvent/TrigSteeringEvent/PhiHelper.h deleted file mode 100644 index 5f0368c4b45..00000000000 --- a/Trigger/TrigEvent/TrigSteeringEvent/TrigSteeringEvent/PhiHelper.h +++ /dev/null @@ -1,39 +0,0 @@ -// emacs: this is -*- c++ -*- -/* - Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration -*/ -// -// @file phiHelper.h -// -// -// $Id: phiHelper.h, v0.0 Sun 20 Jun 2010 20:21:49 BST sutt $ - - -#ifndef PHIHELPER_H -#define PHIHELPER_H - -namespace HLT { - -inline double wrapPhi( double phi ) { - static const double M_2PI = 2*M_PI; - while (phi> M_PI) phi -= M_2PI; - while (phi<-M_PI) phi += M_2PI; - return phi; -} - - -inline double phiMean( double phimin, double phimax) { - double phi = 0.5*(phimin+phimax); - if ( phimin>phimax ) phi += M_PI; - return wrapPhi(phi); -} - - -inline double deltaPhi( double phimax, double phimin) { - return wrapPhi(phimax-phimin); -} - -} - - -#endif // __PHIHELPER_H -- GitLab