BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcTrkRecon/MdcTrkRecon-00-03-48/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 Reconstruction/MdcPatRec/MdcTrkRecon/MdcTrkRecon-00-03-48/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