#include <StraightLine.h>
Definition at line 23 of file StraightLine.h.
◆ StraightLine() [1/3]
StraightLine::StraightLine |
( |
const HepPoint3D & | pivot, |
|
|
const HepVector & | a ) |
Definition at line 8 of file StraightLine.cxx.
10{
11}
const HepPoint3D & pivot(void) const
returns pivot position.
const HepVector & a(void) const
returns helix parameters.
◆ StraightLine() [2/3]
StraightLine::StraightLine |
( |
double | dr, |
|
|
double | phi0, |
|
|
double | dz, |
|
|
double | tanl ) |
Definition at line 13 of file StraightLine.cxx.
14 :m_a(HepVector(4,0))
15{
20
23}
double dr(void) const
returns an element of parameters.
◆ StraightLine() [3/3]
Definition at line 25 of file StraightLine.cxx.
26 :m_a(HepVector(4,0))
27{
28
29
30
33
34 if(pos1.y()<pos2.y()) {
36 pos1=pos2;
37 pos2=pos_tmp;
38 }
39 else if(pos1.y()==pos2.y()&&pos1.x()>pos2.x()) {
41 pos1=pos2;
42 pos2=pos_tmp;
43 }
44
46 double phi_vec =
vec.phi();
47
49
50 double dphi1=pos1.phi()-
phi0;
51 double dr = pos1.perp()*
cos(dphi1);
52
53 double s1(0.),s2(0.);
54 if(pos1.y()!=pos2.y()) {
57 }
58 else {
61 }
62
64 if(s1>=s2) {
65 cout<<"StraightLine: s1>=s2!!!"<<endl;
66 }
67 else {
68 tanl=(pos2.z()-pos1.z())/(s2-s1);
70 }
75
76}
double sin(const BesAngle a)
double cos(const BesAngle a)
◆ ~StraightLine()
StraightLine::~StraightLine |
( |
| ) |
|
|
virtual |
◆ a()
const HepVector & StraightLine::a |
( |
void | | ) |
const |
|
inline |
◆ cosPhi0()
double StraightLine::cosPhi0 |
( |
void | | ) |
const |
|
inline |
◆ cosTheta()
double StraightLine::cosTheta |
( |
| ) |
const |
|
inline |
◆ dr()
double StraightLine::dr |
( |
void | | ) |
const |
|
inline |
returns an element of parameters.
Definition at line 45 of file StraightLine.h.
Referenced by CgemLineFit::execute(), CgemLineFit::Fit(), CgemLineFit::Get4Par(), CgemLineFit::Get_OtherIniPar(), CgemMidDriftPlane::getPointAligned(), CgemMidDriftPlane::getPointAligned(), CgemMidDriftPlane::getPointAligned(), CgemMidDriftPlane::getPointAligned(), BesCgemSD::ProcessHits(), StraightLine(), and StraightLine().
◆ dz()
double StraightLine::dz |
( |
void | | ) |
const |
|
inline |
◆ lambda()
double StraightLine::lambda |
( |
| ) |
const |
|
inline |
◆ phi0()
double StraightLine::phi0 |
( |
void | | ) |
const |
|
inline |
Definition at line 46 of file StraightLine.h.
Referenced by cosPhi0(), CgemLineFit::execute(), CgemLineFit::Fit(), CgemLineFit::Get4Par(), CgemLineFit::Get_OtherIniPar(), CgemMidDriftPlane::getPointAligned(), CgemMidDriftPlane::getPointAligned(), CgemMidDriftPlane::getPointAligned(), CgemMidDriftPlane::getPointAligned(), sAtPhi(), sinPhi0(), StraightLine(), and StraightLine().
◆ pivot()
const HepPoint3D & StraightLine::pivot |
( |
void | | ) |
const |
|
inline |
◆ print()
void StraightLine::print |
( |
| ) |
|
Definition at line 152 of file StraightLine.cxx.
153{
154 cout<<"line pivot: "<<m_pivot<<endl;
155 cout<<" par: "<<m_a<<endl;
156}
◆ sAtPhi()
double StraightLine::sAtPhi |
( |
double | phi | ) |
const |
Definition at line 108 of file StraightLine.cxx.
109{
110
111 double ss=999999.;
112
113 if(m_a[0]<0) {
114
116 }
117 double dphi=
phi0()-phi;
120 if(fabs(dphi)<
M_PI/2)
121 {
123 }
124 return ss;
125}
double tan(const BesAngle a)
Referenced by xAtPhi().
◆ sAtR()
double StraightLine::sAtR |
( |
double | R, |
|
|
int | direction = 1 ) const |
◆ set() [1/3]
void StraightLine::set |
( |
const HepPoint3D & | pivot | ) |
|
◆ set() [2/3]
void StraightLine::set |
( |
const HepPoint3D & | pivot, |
|
|
const HepVector & | a ) |
◆ set() [3/3]
void StraightLine::set |
( |
const HepVector & | a | ) |
|
returns position and convariance matrix(Ex) after moving s.
Definition at line 135 of file StraightLine.cxx.
◆ sinPhi0()
double StraightLine::sinPhi0 |
( |
void | | ) |
const |
|
inline |
◆ tanl()
double StraightLine::tanl |
( |
void | | ) |
const |
|
inline |
◆ theta()
double StraightLine::theta |
( |
| ) |
const |
|
inline |
◆ x()
◆ xAtPhi()
HepPoint3D StraightLine::xAtPhi |
( |
double | phi | ) |
const |
Definition at line 127 of file StraightLine.cxx.
128{
131 if(ss!=999999.) pos=
x(ss);
132 return pos;
133}
double sAtPhi(double phi) const
◆ xAtR()
HepPoint3D StraightLine::xAtR |
( |
double | R, |
|
|
int | direction = 1 ) const |
The documentation for this class was generated from the following files: