BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
mdcWrapAng.h File Reference

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 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 MdcSeg::addHits(), MdcSegGrouper::calcParBySegs(), MdcSegGrouperAx::incompWithSeg(), and MdcSegGrouperCsmc::incompWithSeg().