|
|
#include <PFGsfHelper.h>
Definition at line 29 of file PFGsfHelper.h.
◆ PFGsfHelper()
Definition at line 32 of file PFGsfHelper.cc.
51 std::vector<SingleGaussianState1D> pxStates;
52 pxStates.reserve(numb);
53 std::vector<SingleGaussianState1D> pyStates;
54 pyStates.reserve(numb);
55 std::vector<SingleGaussianState1D> pzStates;
56 pzStates.reserve(numb);
71 mode_Px = pxUtils.mode().mean();
72 mode_Py = pyUtils.mode().mean();
73 mode_Pz = pzUtils.mode().mean();
90 if (tm.
recHit()->isValid()) {
91 hitPos = tm.
recHit()->localPosition();
92 hitErr = tm.
recHit()->localPositionError();
100 if (!collinearFit.
fit(fwdPars, fwdCov, bwdPars, bwdCov, hitPos, hitErr,
fitParameters, fitCovariance,
fitChi2))
105 double sig2In = fitCovariance(0, 0);
107 double sig2Out = fitCovariance(1, 1);
108 double corrInOut = fitCovariance(0, 1);
109 double pIn = 1. / fabs(qpIn);
110 double pOut = 1. / fabs(qpOut);
111 double sig2DeltaP = pIn / qpIn * pIn / qpIn * sig2In - 2 * pIn / qpIn *
pOut / qpOut * corrInOut +
112 pOut / qpOut *
pOut / qpOut * sig2Out;
References TrajectoryMeasurement::backwardPredictedState(), makeMuonMisalignmentScenario::components, Calorimetry_cff::dp, CollinearFitAtTM::fit(), fitChi2(), L1TRate_cfi::fitParameters, TrajectoryMeasurement::forwardPredictedState(), SingleGaussianState1D::mean(), GaussianSumUtilities1D::mode(), L1TrackObjectNtupleMaker_cfg::pOut, TrajectoryMeasurement::recHit(), mathSSE::sqrt(), and TrajectoryMeasurement::updatedState().
◆ ~PFGsfHelper()
PFGsfHelper::~PFGsfHelper |
( |
| ) |
|
◆ computeP()
GlobalVector PFGsfHelper::computeP |
( |
bool |
ComputeMode | ) |
const |
◆ computeQpMode()
Definition at line 134 of file PFGsfHelper.cc.
147 if (!qpGS.modeIsValid())
149 double qp = qpGS.mode().mean();
150 double varQp = qpGS.mode().variance();
155 double VarQpRatio =
sqrt(varQp / covariance(0, 0));
157 covariance(0, 0) = varQp;
158 for (
int i = 1;
i < 5; ++
i)
159 covariance(
i, 0) *= VarQpRatio;
References mps_fire::i, TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localParameters(), LocalTrajectoryError::matrix(), SingleGaussianState1D::mean(), GaussianSumUtilities1D::mode(), GaussianSumUtilities1D::modeIsValid(), MultiGaussianStateTransform::multiState1D(), mathSSE::sqrt(), SingleGaussianState1D::variance(), and LocalTrajectoryParameters::vector().
◆ fittedDP()
double PFGsfHelper::fittedDP |
( |
| ) |
const |
◆ isValid()
bool PFGsfHelper::isValid |
( |
void |
| ) |
const |
◆ sigmafittedDP()
double PFGsfHelper::sigmafittedDP |
( |
| ) |
const |
◆ dp
◆ mode_Px
float PFGsfHelper::mode_Px |
|
private |
◆ mode_Py
float PFGsfHelper::mode_Py |
|
private |
◆ mode_Pz
float PFGsfHelper::mode_Pz |
|
private |
◆ sigmaDp
double PFGsfHelper::sigmaDp |
|
private |
◆ theBackwardState
◆ theForwardState
◆ theUpdateState
◆ Valid
TrajectoryStateOnSurface const & updatedState() const
const AlgebraicSymMatrix55 & matrix() const
Global3DVector GlobalVector
void computeQpMode(const TrajectoryStateOnSurface tsos, AlgebraicVector5 ¶meters, AlgebraicSymMatrix55 &covariance) const
TrajectoryStateOnSurface const & backwardPredictedState() const
Access to backward predicted state (from smoother)
TrajectoryStateOnSurface const & forwardPredictedState() const
Access to forward predicted state (from fitter or builder)
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
AlgebraicVector5 vector() const
const LocalTrajectoryParameters & localParameters() const
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > ResultMatrix
ROOT::Math::SVector< double, 5 > AlgebraicVector5
ConstRecHitPointer const & recHit() const
GlobalVector globalMomentum() const
TrajectoryStateOnSurface theForwardState
bool fit(const TrajectoryMeasurement &tm, ResultVector ¶meters, ResultMatrix &covariance, double &chi2)
Fit for one TM. Return value "true" for success.
TrajectoryStateOnSurface theUpdateState
static double fitChi2(const CachingVertex< 5 > &vtx)
fitParameters
Offline oracleDB = cms.string("oracle://cms_orcon_adg/CMS_COND_31X_L1T"), # For offline pathCondDB = ...
const LocalTrajectoryError & localError() const
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
ROOT::Math::SVector< double, 6 > ResultVector
TrajectoryStateOnSurface theBackwardState