BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
BesAngle.cxx
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
//
3
// Description:
4
// Class BesAngle
5
//
6
//------------------------------------------------------------------------
7
#include "MdcGeom/BesAngle.h"
8
9
//-------------------------------
10
// Collaborating Class Headers --
11
//-------------------------------
12
#include "MdcGeom/Constants.h"
13
14
//-----------------------------------------------------------------------
15
// Local Macros, Typedefs, Structures, Unions and Forward Declarations --
16
//-----------------------------------------------------------------------
17
18
const
double
BesAngle::pi
=
Constants::pi
;
19
const
double
BesAngle::twoPi
=
Constants::twoPi
;
20
const
double
BesAngle::toDegrees
=
Constants::radToDegrees
;
21
/* hxt
22
// The followings characters are used in DegString()
23
// for printout in degrees
24
#ifdef HPUX
25
const HepString BesAngle::degChar = "xxx"; // mrli, 240613: xxx used to be an unknown charactor
26
which will lead to `'utf-8' codec can't decode byte 0xb0 in position 881: invalid start byte`
27
error when opening in python, so I changed it to "xxx" ONLY here. #else const HepString
28
BesAngle::degChar = "^"; #endif
29
30
const HepString BesAngle::deg1Char = "'";
31
const HepString BesAngle::deg2Char = "\"";
32
33
// ----------------------------------------
34
// -- Public Function Member Definitions --
35
// ----------------------------------------
36
37
HepString BesAngle::degString() const
38
{
39
float tmp;
40
int deg, deg_, deg__;
41
HepString sign = "";
42
43
if ((tmp = this->deg()) < 0)
44
{ sign = "-"; tmp = -tmp; };
45
deg = int(tmp);
46
deg_ = int(tmp = 60*(tmp - deg));
47
deg__ = int(60*(tmp - deg_));
48
49
return
50
(
51
sign +
52
HepString(deg)+degChar+
53
HepString(deg_)+deg1Char+
54
HepString(deg__)+deg2Char
55
);
56
}
57
58
hxt */
BesAngle::pi
static const double pi
used instead.
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/BesAngle.h:72
BesAngle::twoPi
static const double twoPi
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/BesAngle.h:73
BesAngle::toDegrees
static const double toDegrees
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/BesAngle.h:87
Constants::pi
static const double pi
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/Constants.h:37
Constants::twoPi
static const double twoPi
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/Constants.h:38
Constants::radToDegrees
static const double radToDegrees
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/Constants.h:40
8.0.0
BOSS_Source
Reconstruction
MdcPatRec
MdcGeom
src
BesAngle.cxx
Generated by
1.16.1