Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8309576
TrajectoryStateClosestToPoint.cc
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
TrajectoryStateClosestToPoint.cc
View Options
#include
"TrackingTools/TrajectoryState/interface/TrajectoryStateClosestToPoint.h"
// Private constructor
TrajectoryStateClosestToPoint
::
TrajectoryStateClosestToPoint
(
const
FTS
&
originalFTS
,
const
GlobalPoint
&
referencePoint
)
:
theFTS
(
originalFTS
),
theFTSavailable
(
true
),
theRefPoint
(
referencePoint
)
{
theParameters
=
perigeeConversions
.
ftsToPerigeeParameters
(
originalFTS
,
referencePoint
,
thePt
);
if
(
theFTS
.
hasError
())
{
thePerigeeError
=
perigeeConversions
.
ftsToPerigeeError
(
originalFTS
);
errorIsAvailable
=
true
;
}
else
{
errorIsAvailable
=
false
;
}
theField
=
&
(
originalFTS
.
parameters
().
magneticField
());
}
/**
* Public constructor, which is used to convert perigee
* parameters to a FreeTrajectoryState. For the case where
* no error is provided.
*/
TrajectoryStateClosestToPoint
::
TrajectoryStateClosestToPoint
(
const
PerigeeTrajectoryParameters
&
perigeeParameters
,
double
pt
,
const
GlobalPoint
&
referencePoint
,
const
MagneticField
*
field
)
:
theField
(
field
),
theFTSavailable
(
false
),
theRefPoint
(
referencePoint
),
theParameters
(
perigeeParameters
),
thePt
(
pt
),
errorIsAvailable
(
false
)
{}
/**
* Public constructor, which is used to convert perigee
* parameters to a FreeTrajectoryState. For the case where
* an error is provided.
*/
TrajectoryStateClosestToPoint
::
TrajectoryStateClosestToPoint
(
const
PerigeeTrajectoryParameters
&
perigeeParameters
,
double
pt
,
const
PerigeeTrajectoryError
&
perigeeError
,
const
GlobalPoint
&
referencePoint
,
const
MagneticField
*
field
)
:
theField
(
field
),
theFTSavailable
(
false
),
theRefPoint
(
referencePoint
),
theParameters
(
perigeeParameters
),
thePt
(
pt
),
thePerigeeError
(
perigeeError
),
errorIsAvailable
(
true
)
{}
void
TrajectoryStateClosestToPoint
::
calculateFTS
()
const
{
GlobalTrajectoryParameters
gtp
(
perigeeConversions
.
positionFromPerigee
(
theParameters
,
theRefPoint
),
perigeeConversions
.
momentumFromPerigee
(
theParameters
,
thePt
,
theRefPoint
),
theParameters
.
charge
(),
theField
);
if
(
errorIsAvailable
)
{
theFTS
=
FTS
(
gtp
,
perigeeConversions
.
curvilinearError
(
thePerigeeError
,
gtp
));
}
else
{
theFTS
=
FTS
(
gtp
);
}
theFTSavailable
=
true
;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Dec 21, 3:48 PM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4023343
Default Alt Text
TrajectoryStateClosestToPoint.cc (2 KB)
Attached To
rRAVESVN ravesvn
Event Timeline
Log In to Comment