99// granted to it by virtue of its status as an Intergovernmental Organization
1010// or submit itself to any jurisdiction.
1111//
12- // / \file muonGlobalAlignment.cxx // o2-linter: disable=name/file-cpp,name/workflow-file (legacy workflow executable name)
13- // / \brief Task to compute and evaluate DCA quantities
14- // / \author Nicolas Bizé <nicolas.bize@cern.ch>, SUBATECH
15- //
12+ // / \file muonGlobalAlignment.cxx
13+ // / \brief Analysis of global alignment between MFT and MCH-MID
14+ // / \author Andrea Ferrero <andrea.ferrero@cern.ch>, CEA-Saclay
1615
1716#include " PWGDQ/Core/VarManager.h"
1817
@@ -720,18 +719,18 @@ struct muonGlobalAlignment {
720719 return idx + offset;
721720 }
722721
723- int GetQuadrant (double phi)
722+ int GetQuadrant (float phi)
724723 {
725- if (phi >= 0 && phi < 90 ) {
724+ if (phi >= 0 && phi < o2::constants::math::PIHalf ) {
726725 return 0 ;
727726 }
728- if (phi >= 90 && phi <= 180 ) {
727+ if (phi >= o2::constants::math::PIHalf && phi <= o2::constants::math:: PI ) {
729728 return 1 ;
730729 }
731- if (phi >= -180 && phi < -90 ) {
730+ if (phi >= -o2::constants::math:: PI && phi < -o2::constants::math::PIHalf ) {
732731 return 2 ;
733732 }
734- if (phi >= -90 && phi < 0 ) {
733+ if (phi >= -o2::constants::math::PIHalf && phi < 0 ) {
735734 return 3 ;
736735 }
737736 return -1 ;
@@ -740,8 +739,8 @@ struct muonGlobalAlignment {
740739 template <class T >
741740 int GetQuadrant (const T& track)
742741 {
743- double phi = track.phi () * 180 / TMath::Pi ();
744- return GetQuadrant (phi);
742+ // double phi = track.phi() * 180 / TMath::Pi();
743+ return GetQuadrant (track. phi () );
745744 }
746745
747746 template <class T >
0 commit comments