![]() |
Belle II Software development
|
Particle full three dimensional trajectory. More...
#include <CDCTrajectory3D.h>
Public Member Functions | |
| CDCTrajectory3D () | |
| Default constructor for ROOT compatibility. | |
| CDCTrajectory3D (const UncertainHelix &helix) | |
| Constructs a trajectory from a helix with reference point equivalent to the origin. | |
| CDCTrajectory3D (const Helix &helix) | |
| conversion constructor to make that one stupid test work | |
| CDCTrajectory3D (const Vector3D &localOrigin, const UncertainHelix &localHelix, double flightTime=NAN) | |
| Constructs a trajectory from a local helix taken as relative to the given origin. | |
| CDCTrajectory3D (const CDCTrajectory2D &trajectory2D, const CDCTrajectorySZ &trajectorySZ) | |
| Construct a three dimensional trajectory from a two dimensional circular trajectory and sz linear trajectory. | |
| CDCTrajectory3D (const CDCTrajectory2D &trajectory2D) | |
| Construct a trajectory from a two dimensional circular trajectory filling the remaining two parameters and covariance matrix with default values. | |
| CDCTrajectory3D (const Vector3D &pos3D, double time, const Vector3D &mom3D, double charge, double bZ) | |
| Construct a trajectory with given start point, momentum at the start point and given charge. | |
| CDCTrajectory3D (const Vector3D &pos3D, double time, const Vector3D &mom3D, double charge) | |
| Construct a trajectory with given start point, momentum at the start point and given charge. | |
| CDCTrajectory3D (const MCParticle &mcParticle, double bZ) | |
| Construct a trajectory from the MCParticles vertex and momentum. | |
| CDCTrajectory3D (const MCParticle &mcParticle) | |
| Construct a trajectory from the MCParticles vertex and momentum. | |
| CDCTrajectory3D (const genfit::TrackCand &gfTrackCand, double bZ) | |
| Construct a trajectory by extracting the seed position of the genfit::TrackCand. | |
| CDCTrajectory3D (const genfit::TrackCand &gfTrackCand) | |
| Construct a trajectory by extracting the seed position of the genfit::TrackCand. | |
| bool | isInvalid () const |
| Checks if the trajectory is already set to a valid value. | |
| bool | isFitted () const |
| Checks if the trajectory has already been set to a valid value. | |
| void | clear () |
| Clears all information from this trajectoy. | |
| bool | fillInto (genfit::TrackCand &trackCand) const |
| Copies the trajectory information to the Genfit track candidate. | |
| bool | fillInto (genfit::TrackCand &gfTrackCand, double bZ) const |
| Copies the trajectory information to the Genfit track candidate. | |
| CovarianceMatrix< 6 > | getCartesianCovariance (double bZ) const |
| Convert the helix parameters to the cartesian coordinates x,y,z,px,py,pz. | |
| void | reverse () |
| Reverses the trajectory in place. | |
| CDCTrajectory3D | reversed () const |
| Returns the reverse trajectory as a copy. | |
| Vector3D | reconstruct3D (const CDC::WireLine &wireLine, double distance=0.0) const |
| Gives the three dimensional point which is on the dirft circle away from the wire line. | |
| double | calcArcLength2D (const Vector3D &point) const |
| Calculate the travel distance from the start position of the trajectory. | |
| double | getArcLength2DPeriod () const |
| Getter for the arc length for one round trip around the trajectory. | |
| double | shiftPeriod (int nPeriods) |
| Adjusts the z0 to the one that lies n periods forward. | |
| ESign | getChargeSign () const |
| Gets the charge sign of the trajectory. | |
| double | getAbsMom3D (double bZ) const |
| Get the estimation for the absolute value of the transvers momentum. | |
| double | getAbsMom3D () const |
| Get the estimation for the absolute value of the transvers momentum. | |
| Vector3D | getMom3DAtSupport (const double bZ) const |
| Get the momentum at the start point of the trajectory. | |
| Vector3D | getMom3DAtSupport () const |
| Get the momentum at the start point of the trajectory. | |
| Vector3D | getFlightDirection3DAtSupport () const |
| Get the unit momentum at the start point of the trajectory. | |
| Vector3D | getSupport () const |
| Getter for the support point of the trajectory in global coordinates, where arcLength2D = 0. | |
| Vector3D | getGlobalPerigee () const |
| Getter for the closest approach on the trajectory to the global origin. | |
| Vector2D | getGlobalCenter () const |
| Getter for the center of the helix in global coordinates. | |
| bool | isCurler (double factor=1) const |
| Checks if the trajectory leaves the outer radius of the CDC times the given tolerance factor. | |
| double | getMaximalCylindricalR () const |
| Getter for the maximal distance from the origin. | |
| double | getMinimalCylindricalR () const |
| Getter for the minimal distance from the origin. | |
| double | getGlobalImpact () const |
| Getter for the signed impact parameter of the trajectory. | |
| CDCTrajectory2D | getTrajectory2D () const |
| Getter for the two dimensional trajectory. | |
| CDCTrajectorySZ | getTrajectorySZ () const |
| Getter for the sz trajectory. | |
| PerigeeCircle | getGlobalCircle () const |
| Getter for the circle in global coordinates. | |
| UncertainPerigeeCircle | getLocalCircle () const |
| Getter for the circle in local coordinates. | |
| UncertainSZLine | getLocalSZLine () const |
| Getter for the sz line starting from the local origin. | |
| double | getLocalCovariance (EHelixParameter iRow, EHelixParameter iCol) const |
| Getter for an individual element of the covariance matrix of the local helix parameters. | |
| double | getLocalVariance (EHelixParameter i) const |
| Getter for an individual diagonal element of the covariance matrix of the local helix parameters. | |
| double | getTanLambda () const |
| Getter for the slope of z over the transverse travel distance s. | |
| double | getCurvatureXY () const |
| Getter for the curvature as seen from the xy projection. | |
| double | getPValue () const |
| Getter for p-value. | |
| double | getChi2 () const |
| Getter for the chi2 value of the fit. | |
| void | setChi2 (const double chi2) |
| Setter for the chi square value of the helix fit. | |
| size_t | getNDF () const |
| Getter for the number of degrees of freedom of the helix fit. | |
| void | setNDF (std::size_t ndf) |
| Setter for the number of degrees of freedom of the helix fit. | |
| const UncertainHelix & | getLocalHelix () const |
| Getter for the helix in local coordinates. | |
| void | setLocalHelix (const UncertainHelix &localHelix) |
| Setter for the helix that describes the trajectory in local coordinates. | |
| const Vector3D & | getLocalOrigin () const |
| Getter for the origin of the local coordinate system. | |
| double | setLocalOrigin (const Vector3D &localOrigin) |
| Setter for the origin of the local coordinate system. | |
| double | getFlightTime () const |
| Getter for the time when the particle reached the support point position. | |
| void | setFlightTime (double flightTime) |
| Setter for the time when the particle reached the support point position. | |
Private Attributes | |
| Vector3D | m_localOrigin |
| Memory for local coordinate origin of the circle representing the trajectory in global coordinates. | |
| UncertainHelix | m_localHelix |
| Memory for the generalized circle describing the trajectory in coordinates from the local origin. | |
| double | m_flightTime = NAN |
| Memory for the estimation of the time at which the particle arrived at the support point. | |
Particle full three dimensional trajectory.
Definition at line 46 of file CDCTrajectory3D.h.
|
inline |
Default constructor for ROOT compatibility.
Definition at line 50 of file CDCTrajectory3D.h.
|
inlineexplicit |
Constructs a trajectory from a helix with reference point equivalent to the origin.
Definition at line 57 of file CDCTrajectory3D.h.
|
inlineexplicit |
conversion constructor to make that one stupid test work
Definition at line 65 of file CDCTrajectory3D.h.
|
inline |
Constructs a trajectory from a local helix taken as relative to the given origin.
Definition at line 70 of file CDCTrajectory3D.h.
| CDCTrajectory3D | ( | const CDCTrajectory2D & | trajectory2D, |
| const CDCTrajectorySZ & | trajectorySZ ) |
Construct a three dimensional trajectory from a two dimensional circular trajectory and sz linear trajectory.
Definition at line 48 of file CDCTrajectory3D.cc.
|
explicit |
Construct a trajectory from a two dimensional circular trajectory filling the remaining two parameters and covariance matrix with default values.
Definition at line 56 of file CDCTrajectory3D.cc.
| CDCTrajectory3D | ( | const Vector3D & | pos3D, |
| double | time, | ||
| const Vector3D & | mom3D, | ||
| double | charge, | ||
| double | bZ ) |
Construct a trajectory with given start point, momentum at the start point and given charge.
Additionally this can takes an explicit bZ value instead of a field value from the instance BFieldMap.
Definition at line 61 of file CDCTrajectory3D.cc.
| CDCTrajectory3D | ( | const Vector3D & | pos3D, |
| double | time, | ||
| const Vector3D & | mom3D, | ||
| double | charge ) |
Construct a trajectory with given start point, momentum at the start point and given charge.
Definition at line 76 of file CDCTrajectory3D.cc.
| CDCTrajectory3D | ( | const MCParticle & | mcParticle, |
| double | bZ ) |
Construct a trajectory from the MCParticles vertex and momentum.
Definition at line 84 of file CDCTrajectory3D.cc.
|
explicit |
Construct a trajectory from the MCParticles vertex and momentum.
Definition at line 93 of file CDCTrajectory3D.cc.
| CDCTrajectory3D | ( | const genfit::TrackCand & | gfTrackCand, |
| double | bZ ) |
Construct a trajectory by extracting the seed position of the genfit::TrackCand.
Definition at line 101 of file CDCTrajectory3D.cc.
|
explicit |
Construct a trajectory by extracting the seed position of the genfit::TrackCand.
Definition at line 171 of file CDCTrajectory3D.cc.
|
inline |
Calculate the travel distance from the start position of the trajectory.
Returns the travel distance on the trajectory from the start point to
the given point. This is subjected to a discontinuity at the far point
of the circle. Hence the value return is in the range from -pi*radius to pi*radius
If you have a heavily curling track you have care about the feasibility of this
calculation.
Definition at line 179 of file CDCTrajectory3D.h.
|
inline |
Clears all information from this trajectoy.
Definition at line 131 of file CDCTrajectory3D.h.
| bool fillInto | ( | genfit::TrackCand & | gfTrackCand, |
| double | bZ ) const |
Copies the trajectory information to the Genfit track candidate.
Definition at line 267 of file CDCTrajectory3D.cc.
| bool fillInto | ( | genfit::TrackCand & | trackCand | ) | const |
Copies the trajectory information to the Genfit track candidate.
Definition at line 261 of file CDCTrajectory3D.cc.
| double getAbsMom3D | ( | ) | const |
Get the estimation for the absolute value of the transvers momentum.
Definition at line 317 of file CDCTrajectory3D.cc.
| double getAbsMom3D | ( | double | bZ | ) | const |
Get the estimation for the absolute value of the transvers momentum.
Definition at line 308 of file CDCTrajectory3D.cc.
|
inline |
Getter for the arc length for one round trip around the trajectory.
Definition at line 185 of file CDCTrajectory3D.h.
| CovarianceMatrix< 6 > getCartesianCovariance | ( | double | bZ | ) | const |
Convert the helix parameters to the cartesian coordinates x,y,z,px,py,pz.
Definition at line 289 of file CDCTrajectory3D.cc.
| ESign getChargeSign | ( | ) | const |
Gets the charge sign of the trajectory.
Definition at line 303 of file CDCTrajectory3D.cc.
|
inline |
Getter for the chi2 value of the fit.
Definition at line 316 of file CDCTrajectory3D.h.
|
inline |
Getter for the curvature as seen from the xy projection.
Definition at line 304 of file CDCTrajectory3D.h.
|
inline |
Get the unit momentum at the start point of the trajectory.
Definition at line 221 of file CDCTrajectory3D.h.
|
inline |
Getter for the time when the particle reached the support point position.
Definition at line 365 of file CDCTrajectory3D.h.
|
inline |
Getter for the center of the helix in global coordinates.
Definition at line 240 of file CDCTrajectory3D.h.
| PerigeeCircle getGlobalCircle | ( | ) | const |
Getter for the circle in global coordinates.
Definition at line 349 of file CDCTrajectory3D.cc.
|
inline |
Getter for the signed impact parameter of the trajectory.
Definition at line 263 of file CDCTrajectory3D.h.
|
inline |
Getter for the closest approach on the trajectory to the global origin.
Definition at line 234 of file CDCTrajectory3D.h.
| UncertainPerigeeCircle getLocalCircle | ( | ) | const |
Getter for the circle in local coordinates.
Definition at line 357 of file CDCTrajectory3D.cc.
|
inline |
Getter for an individual element of the covariance matrix of the local helix parameters.
Definition at line 285 of file CDCTrajectory3D.h.
|
inline |
Getter for the helix in local coordinates.
Definition at line 340 of file CDCTrajectory3D.h.
|
inline |
Getter for the origin of the local coordinate system.
Definition at line 352 of file CDCTrajectory3D.h.
| UncertainSZLine getLocalSZLine | ( | ) | const |
Getter for the sz line starting from the local origin.
Definition at line 362 of file CDCTrajectory3D.cc.
|
inline |
Getter for an individual diagonal element of the covariance matrix of the local helix parameters.
Definition at line 292 of file CDCTrajectory3D.h.
|
inline |
Getter for the maximal distance from the origin.
Definition at line 251 of file CDCTrajectory3D.h.
|
inline |
Getter for the minimal distance from the origin.
Definition at line 257 of file CDCTrajectory3D.h.
|
inline |
Get the momentum at the start point of the trajectory.
Definition at line 215 of file CDCTrajectory3D.h.
|
inline |
Get the momentum at the start point of the trajectory.
Definition at line 209 of file CDCTrajectory3D.h.
|
inline |
Getter for the number of degrees of freedom of the helix fit.
Definition at line 328 of file CDCTrajectory3D.h.
|
inline |
Getter for p-value.
Definition at line 310 of file CDCTrajectory3D.h.
|
inline |
Getter for the support point of the trajectory in global coordinates, where arcLength2D = 0.
Definition at line 228 of file CDCTrajectory3D.h.
|
inline |
Getter for the slope of z over the transverse travel distance s.
Definition at line 298 of file CDCTrajectory3D.h.
| CDCTrajectory2D getTrajectory2D | ( | ) | const |
Getter for the two dimensional trajectory.
Definition at line 334 of file CDCTrajectory3D.cc.
| CDCTrajectorySZ getTrajectorySZ | ( | ) | const |
Getter for the sz trajectory.
Definition at line 341 of file CDCTrajectory3D.cc.
| bool isCurler | ( | double | factor = 1 | ) | const |
Checks if the trajectory leaves the outer radius of the CDC times the given tolerance factor.
Definition at line 297 of file CDCTrajectory3D.cc.
|
inline |
Checks if the trajectory has already been set to a valid value.
Definition at line 125 of file CDCTrajectory3D.h.
|
inline |
Checks if the trajectory is already set to a valid value.
Definition at line 119 of file CDCTrajectory3D.h.
| Vector3D reconstruct3D | ( | const CDC::WireLine & | wireLine, |
| double | distance = 0.0 ) const |
Gives the three dimensional point which is on the dirft circle away from the wire line.
This method makes the reconstruction of the z coordinate possible by using the skewness
stereo layer of the stereo wires. The point is determined such that it is at the (signed) distance to the wire line.
|
inline |
Reverses the trajectory in place.
Definition at line 150 of file CDCTrajectory3D.h.
|
inline |
Returns the reverse trajectory as a copy.
Definition at line 157 of file CDCTrajectory3D.h.
|
inline |
Setter for the chi square value of the helix fit.
Definition at line 322 of file CDCTrajectory3D.h.
|
inline |
Setter for the time when the particle reached the support point position.
Definition at line 371 of file CDCTrajectory3D.h.
|
inline |
Setter for the helix that describes the trajectory in local coordinates.
Definition at line 346 of file CDCTrajectory3D.h.
| double setLocalOrigin | ( | const Vector3D & | localOrigin | ) |
Setter for the origin of the local coordinate system.
This sets the origin point the local helix representation is subjected. The local helix is changed such that the set of points in global space is not changed.
Definition at line 367 of file CDCTrajectory3D.cc.
|
inline |
Setter for the number of degrees of freedom of the helix fit.
Definition at line 334 of file CDCTrajectory3D.h.
| double shiftPeriod | ( | int | nPeriods | ) |
Adjusts the z0 to the one that lies n periods forward.
Definition at line 327 of file CDCTrajectory3D.cc.
|
private |
Memory for the estimation of the time at which the particle arrived at the support point.
Definition at line 385 of file CDCTrajectory3D.h.
|
private |
Memory for the generalized circle describing the trajectory in coordinates from the local origin.
Definition at line 382 of file CDCTrajectory3D.h.
|
private |
Memory for local coordinate origin of the circle representing the trajectory in global coordinates.
Definition at line 378 of file CDCTrajectory3D.h.