/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/MdcTrkRecon/MdcTrkRecon-00-03-45/MdcTrkRecon/mdcWrapAng.h File Reference

#include "MdcGeom/Constants.h"

Go to the source code of this file.

Functions

double mdcWrapAng (double phi1, double phi2)

Variables

static const double & twpi = Constants::twoPi


Function Documentation

double mdcWrapAng ( double  phi1,
double  phi2 
) [inline]

Definition at line 12 of file mdcWrapAng.h.

References twpi.

Referenced by MdcSegGrouper::calcParBySegs(), MdcSegGrouperCsmc::incompWithSeg(), MdcSegGrouperAx::incompWithSeg(), and MdcSegFinder::tryPatterns().

00012                                                     {
00013 
00014   double diff;
00015 
00016   diff = phi2 - phi1;
00017   if (diff > 0.5*twpi) phi2 -= twpi;
00018   else if (diff < -0.5*twpi) phi2 += twpi;
00019 
00020   return phi2;
00021 }


Variable Documentation

const double& twpi = Constants::twoPi [static]

Definition at line 10 of file mdcWrapAng.h.

Referenced by mdcWrapAng().


Generated on Tue Nov 29 23:16:56 2016 for BOSS_7.0.2 by  doxygen 1.4.7