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 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 45 of file CDCTrajectory3D.h.
|
inline |
Default constructor for ROOT compatibility.
Definition at line 49 of file CDCTrajectory3D.h.
|
inlineexplicit |
Constructs a trajectory from a helix with reference point equivalent to the origin.
Definition at line 56 of file CDCTrajectory3D.h.
|
inlineexplicit |
conversion constructor to make that one stupid test work
Definition at line 64 of file CDCTrajectory3D.h.
|
inline |
Constructs a trajectory from a local helix taken as relative to the given origin.
Definition at line 69 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 47 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 55 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 60 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 75 of file CDCTrajectory3D.cc.
CDCTrajectory3D | ( | const MCParticle & | mcParticle, |
double | bZ | ||
) |
Construct a trajectory from the MCParticles vertex and momentum.
Definition at line 83 of file CDCTrajectory3D.cc.
|
explicit |
Construct a trajectory from the MCParticles vertex and momentum.
Definition at line 92 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 100 of file CDCTrajectory3D.cc.
|
explicit |
Construct a trajectory by extracting the seed position of the genfit::TrackCand.
Definition at line 170 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 178 of file CDCTrajectory3D.h.
|
inline |
Clears all information from this trajectoy.
Definition at line 130 of file CDCTrajectory3D.h.
bool fillInto | ( | genfit::TrackCand & | gfTrackCand, |
double | bZ | ||
) | const |
Copies the trajectory information to the Genfit track candidate.
Definition at line 266 of file CDCTrajectory3D.cc.
bool fillInto | ( | genfit::TrackCand & | trackCand | ) | const |
Copies the trajectory information to the Genfit track candidate.
Definition at line 260 of file CDCTrajectory3D.cc.
double getAbsMom3D | ( | ) | const |
Get the estimation for the absolute value of the transvers momentum.
Definition at line 316 of file CDCTrajectory3D.cc.
double getAbsMom3D | ( | double | bZ | ) | const |
Get the estimation for the absolute value of the transvers momentum.
Definition at line 307 of file CDCTrajectory3D.cc.
|
inline |
Getter for the arc length for one round trip around the trajectory.
Definition at line 184 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 288 of file CDCTrajectory3D.cc.
ESign getChargeSign | ( | ) | const |
Gets the charge sign of the trajectory.
Definition at line 302 of file CDCTrajectory3D.cc.
|
inline |
Getter for the chi2 value of the fit.
Definition at line 315 of file CDCTrajectory3D.h.
|
inline |
Getter for the curvature as seen from the xy projection.
Definition at line 303 of file CDCTrajectory3D.h.
|
inline |
Get the unit momentum at the start point of the trajectory.
Definition at line 220 of file CDCTrajectory3D.h.
|
inline |
Getter for the time when the particle reached the support point position.
Definition at line 364 of file CDCTrajectory3D.h.
|
inline |
Getter for the center of the helix in global coordinates.
Definition at line 239 of file CDCTrajectory3D.h.
PerigeeCircle getGlobalCircle | ( | ) | const |
Getter for the circle in global coordinates.
Definition at line 348 of file CDCTrajectory3D.cc.
|
inline |
Getter for the signed impact parameter of the trajectory.
Definition at line 262 of file CDCTrajectory3D.h.
|
inline |
Getter for the closest approach on the trajectory to the global origin.
Definition at line 233 of file CDCTrajectory3D.h.
UncertainPerigeeCircle getLocalCircle | ( | ) | const |
Getter for the circle in local coordinates.
Definition at line 356 of file CDCTrajectory3D.cc.
|
inline |
Getter for an individual element of the covariance matrix of the local helix parameters.
Definition at line 284 of file CDCTrajectory3D.h.
|
inline |
Getter for the helix in local coordinates.
Definition at line 339 of file CDCTrajectory3D.h.
|
inline |
Getter for the origin of the local coordinate system.
Definition at line 351 of file CDCTrajectory3D.h.
UncertainSZLine getLocalSZLine | ( | ) | const |
Getter for the sz line starting from the local origin.
Definition at line 361 of file CDCTrajectory3D.cc.
|
inline |
Getter for an individual diagonal element of the covariance matrix of the local helix parameters.
Definition at line 291 of file CDCTrajectory3D.h.
|
inline |
Getter for the maximal distance from the origin.
Definition at line 250 of file CDCTrajectory3D.h.
|
inline |
Getter for the minimal distance from the origin.
Definition at line 256 of file CDCTrajectory3D.h.
|
inline |
Get the momentum at the start point of the trajectory.
Definition at line 214 of file CDCTrajectory3D.h.
|
inline |
Get the momentum at the start point of the trajectory.
Definition at line 208 of file CDCTrajectory3D.h.
|
inline |
Getter for the number of degrees of freedom of the helix fit.
Definition at line 327 of file CDCTrajectory3D.h.
|
inline |
Getter for p-value.
Definition at line 309 of file CDCTrajectory3D.h.
|
inline |
Getter for the support point of the trajectory in global coordinates, where arcLength2D = 0.
Definition at line 227 of file CDCTrajectory3D.h.
|
inline |
Getter for the slope of z over the transverse travel distance s.
Definition at line 297 of file CDCTrajectory3D.h.
CDCTrajectory2D getTrajectory2D | ( | ) | const |
Getter for the two dimensional trajectory.
Definition at line 333 of file CDCTrajectory3D.cc.
CDCTrajectorySZ getTrajectorySZ | ( | ) | const |
Getter for the sz trajectory.
Definition at line 340 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 296 of file CDCTrajectory3D.cc.
|
inline |
Checks if the trajectory has already been set to a valid value.
Definition at line 124 of file CDCTrajectory3D.h.
|
inline |
Checks if the trajectory is already set to a valid value.
Definition at line 118 of file CDCTrajectory3D.h.
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 149 of file CDCTrajectory3D.h.
|
inline |
Returns the reverse trajectory as a copy.
Definition at line 156 of file CDCTrajectory3D.h.
|
inline |
Setter for the chi square value of the helix fit.
Definition at line 321 of file CDCTrajectory3D.h.
|
inline |
Setter for the time when the particle reached the support point position.
Definition at line 370 of file CDCTrajectory3D.h.
|
inline |
Setter for the helix that describes the trajectory in local coordinates.
Definition at line 345 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 366 of file CDCTrajectory3D.cc.
|
inline |
Setter for the number of degrees of freedom of the helix fit.
Definition at line 333 of file CDCTrajectory3D.h.
double shiftPeriod | ( | int | nPeriods | ) |
Adjusts the z0 to the one that lies n periods forward.
Definition at line 326 of file CDCTrajectory3D.cc.
|
private |
Memory for the estimation of the time at which the particle arrived at the support point.
Definition at line 384 of file CDCTrajectory3D.h.
|
private |
Memory for the generalized circle describing the trajectory in coordinates from the local origin.
Definition at line 381 of file CDCTrajectory3D.h.
|
private |
Memory for local coordinate origin of the circle representing the trajectory in global coordinates.
Definition at line 377 of file CDCTrajectory3D.h.