#include <TwoBodyDecayTrajectoryState.h>
◆ Derivatives
◆ TsosContainer
◆ TwoBodyDecayTrajectoryState()
TwoBodyDecayTrajectoryState::TwoBodyDecayTrajectoryState |
( |
const TsosContainer & |
tsos, |
|
|
const TwoBodyDecay & |
tbd, |
|
|
double |
particleMass, |
|
|
const MagneticField * |
magField, |
|
|
bool |
propagateErrors = false |
|
) |
| |
The constructor takes the two trajectory states that are to be updated (typically the innermost trajectory states of two tracks) and the decay parameters.
Definition at line 20 of file TwoBodyDecayTrajectoryState.cc.
References construct().
◆ ~TwoBodyDecayTrajectoryState()
TwoBodyDecayTrajectoryState::~TwoBodyDecayTrajectoryState |
( |
void |
| ) |
|
|
inline |
◆ construct()
void TwoBodyDecayTrajectoryState::construct |
( |
const MagneticField * |
magField, |
|
|
bool |
propagateErrors |
|
) |
| |
|
private |
Definition at line 42 of file TwoBodyDecayTrajectoryState.cc.
45 pair<AlgebraicVector, AlgebraicVector> secondaryMomenta = tbdDecayModel.cartesianSecondaryMomenta(
theParameters);
51 GlobalVector p1(secondaryMomenta.first[0], secondaryMomenta.first[1], secondaryMomenta.first[2]);
53 GlobalVector p2(secondaryMomenta.second[0], secondaryMomenta.second[1], secondaryMomenta.second[2]);
74 if (propagateErrors) {
References TwoBodyDecayModel::cartesianSecondaryMomenta(), TwoBodyDecayDerivatives::derivatives(), derivatives(), TwoBodyDecayParameters::mass, p1, p2, propagateSingleState(), setError(), theDerivatives, theOriginalTsos, theParameters, theParticleMass, theRefittedTsos, theValidityFlag, extraflags_cff::vtx, TwoBodyDecayParameters::x, TwoBodyDecayParameters::y, and TwoBodyDecayParameters::z.
Referenced by TwoBodyDecayTrajectoryState().
◆ decayParameters()
◆ derivatives()
const Derivatives& TwoBodyDecayTrajectoryState::derivatives |
( |
void |
| ) |
const |
|
inline |
◆ isValid()
bool TwoBodyDecayTrajectoryState::isValid |
( |
void |
| ) |
const |
|
inline |
◆ particleMass()
double TwoBodyDecayTrajectoryState::particleMass |
( |
void |
| ) |
const |
|
inline |
◆ primaryMass()
double TwoBodyDecayTrajectoryState::primaryMass |
( |
void |
| ) |
const |
|
inline |
◆ primaryWidth()
double TwoBodyDecayTrajectoryState::primaryWidth |
( |
void |
| ) |
const |
|
inline |
◆ propagateSingleState()
Definition at line 91 of file TwoBodyDecayTrajectoryState.cc.
101 pair<TrajectoryStateOnSurface, double> tsosWithPath =
propagator.propagateWithPath(fts, surface);
104 if (!tsosWithPath.first.isValid())
113 gtp, tsosWithPath.first.globalPosition(), tsosWithPath.first.globalMomentum(), tsosWithPath.second);
125 tsos = tsosWithPath.first;
128 endDeriv = hepMatDeriv * startDeriv;
References AnalyticalPropagator_cfi::AnalyticalPropagator, asHepMatrix(), JacobianCartesianToCurvilinear::jacobian(), JacobianCurvilinearToLocal::jacobian(), AnalyticalCurvilinearJacobian::jacobian(), and TrackCandidateProducer_cfi::propagator.
Referenced by construct().
◆ rescaleError()
void TwoBodyDecayTrajectoryState::rescaleError |
( |
double |
scale | ) |
|
◆ setError()
◆ trajectoryStates()
const TsosContainer& TwoBodyDecayTrajectoryState::trajectoryStates |
( |
bool |
useRefittedState = true | ) |
const |
|
inline |
◆ nDecayParam
◆ nLocalParam
const unsigned int TwoBodyDecayTrajectoryState::nLocalParam = 5 |
|
staticprivate |
◆ theDerivatives
Derivatives TwoBodyDecayTrajectoryState::theDerivatives |
|
private |
◆ theOriginalTsos
◆ theParameters
◆ theParticleMass
double TwoBodyDecayTrajectoryState::theParticleMass |
|
private |
◆ thePrimaryMass
double TwoBodyDecayTrajectoryState::thePrimaryMass |
|
private |
◆ thePrimaryWidth
double TwoBodyDecayTrajectoryState::thePrimaryWidth |
|
private |
◆ theRefittedTsos
◆ theValidityFlag
bool TwoBodyDecayTrajectoryState::theValidityFlag |
|
private |
bool propagateSingleState(const FreeTrajectoryState &fts, const GlobalTrajectoryParameters >p, const AlgebraicMatrix &startDeriv, const Surface &surface, const MagneticField *magField, TrajectoryStateOnSurface &tsos, AlgebraicMatrix &endDeriv) const
static const unsigned int nLocalParam
TsosContainer theOriginalTsos
double primaryMass(void) const
Derivatives theDerivatives
TsosContainer theRefittedTsos
void construct(const MagneticField *magField, bool propagateErrors)
const TwoBodyDecayParameters & decayParameters(void) const
double primaryWidth(void) const
static const unsigned int nDecayParam
double particleMass(void) const
const Derivatives & derivatives(void) const
TwoBodyDecayParameters theParameters
void setError(FreeTrajectoryState &fts, AlgebraicMatrix &derivative) const
const AlgebraicSymMatrix & covariance(void) const
Get error matrix.
CLHEP::HepMatrix asHepMatrix(const ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > &rm)