Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8309855
GlobalTrajectoryParameters.cc
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
GlobalTrajectoryParameters.cc
View Options
#include
"TrackingTools/TrajectoryParametrization/interface/GlobalTrajectoryParameters.h"
#include
"MagneticField/Engine/interface/MagneticField.h"
GlobalTrajectoryParameters
::
GlobalTrajectoryParameters
(
const
GlobalPoint
&
aX
,
const
GlobalVector
&
direction
,
double
transverseCurvature
,
int
,
const
MagneticField
*
fieldProvider
)
:
theX
(
aX
),
theField
(
fieldProvider
),
hasCurvature_
(
true
),
cachedCurvature_
(
transverseCurvature
)
{
double
bza
=
-
2.99792458e-3
*
theField
->
inTesla
(
theX
).
z
();
double
qbp
=
transverseCurvature
/
bza
*
direction
.
perp
();
theP
=
direction
*
fabs
(
1.
/
qbp
);
theCharge
=
qbp
>
0.
?
1
:
-
1
;
}
double
GlobalTrajectoryParameters
::
transverseCurvature
()
const
{
if
(
!
hasCurvature_
)
{
double
bza
=
-
2.99792458e-3
*
theField
->
inTesla
(
theX
).
z
();
cachedCurvature_
=
bza
*
signedInverseTransverseMomentum
();
hasCurvature_
=
true
;
}
return
cachedCurvature_
;
}
GlobalVector
GlobalTrajectoryParameters
::
magneticFieldInInverseGeV
(
const
GlobalPoint
&
x
)
const
{
return
2.99792458e-3
*
theField
->
inTesla
(
x
);
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Dec 21, 4:42 PM (22 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4023495
Default Alt Text
GlobalTrajectoryParameters.cc (1 KB)
Attached To
rRAVESVN ravesvn
Event Timeline
Log In to Comment