BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/MdcTrkRecon/MdcTrkRecon/mdcWrapAng.h File Reference
#include "MdcGeom/Constants.h"

Go to the source code of this file.

Functions

double mdcWrapAng (double phi1, double phi2)
 

Function Documentation

◆ mdcWrapAng()

double mdcWrapAng ( double  phi1,
double  phi2 
)
inline

Definition at line 12 of file InstallArea/include/MdcTrkRecon/MdcTrkRecon/mdcWrapAng.h.

12 {
13
14 double diff;
15
16 diff = phi2 - phi1;
17 if (diff > 0.5*twpi) phi2 -= twpi;
18 else if (diff < -0.5*twpi) phi2 += twpi;
19
20 return phi2;
21}
Double_t phi2
Double_t phi1

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