StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StarClassLibrary
helixTest.C
1
{
2
3
double
qwe = 1./sqrt(3.);
4
double
h = 0.000000000004;
5
StThreeVectorD
p(1.,1.,1.);
6
StThreeVectorD
o(-qwe,-qwe,-qwe);
7
StPhysicalHelixD
hlx(p,o,h,1.);
8
StThreeVectorD
r(qwe,qwe,qwe);
9
StThreeVectorD
n(qwe,qwe,qwe);
10
11
double
path = hlx.
pathLength
(r,n);
12
printf(
"IhPath = %f\n"
,path);
13
14
double
xyz[3];
15
xyz[0]=o.x()*100;
16
xyz[1]=o.y()*100;
17
xyz[2]=o.z()*100;
18
double
dir[3];
19
dir[0]=p.x();
20
dir[1]=p.y();
21
dir[2]=p.z();
22
double
rho = hlx.curvature();
23
if
(rho) printf(
"Rho,Rad = %f %f\n"
,rho,1./rho);
24
rho /=100;
25
double
surf[4];
26
surf[0] = - r*n*100;
27
surf[1] = n.x();
28
surf[2] = n.y();
29
surf[3] = n.z();
30
31
THelixTrack
myHlx(xyz,dir,rho,0);
32
path = myHlx.Step(1.e+10, surf, 4);
33
printf(
"MyPath = %f\n"
,path/100);
34
35
36
37
}
38
StPhysicalHelix
Definition:
StPhysicalHelix.hh:36
StHelix::pathLength
pair< double, double > pathLength(double r) const
path length at given r (cylindrical r)
Definition:
StHelix.cc:351
THelixTrack
Definition:
THelixTrack.h:217
StThreeVector< double >
Generated by
1.8.5