CGEM BOSS
6.6.5.g
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 = "�";
26
#else
27
const HepString BesAngle::degChar = "^";
28
#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.h
Constants.h
BesAngle::pi
static const double pi
used instead.
Definition:
BesAngle.h:74
BesAngle::twoPi
static const double twoPi
Definition:
BesAngle.h:75
BesAngle::toDegrees
static const double toDegrees
Definition:
BesAngle.h:89
Constants::pi
static const double pi
Definition:
Constants.h:38
Constants::twoPi
static const double twoPi
Definition:
Constants.h:39
Constants::radToDegrees
static const double radToDegrees
Definition:
Constants.h:41
source
Reconstruction
MdcPatRec
MdcGeom
MdcGeom-00-01-17
src
BesAngle.cxx
Generated by
1.9.6