#include <MultiTrajectoryStateMode.h>
Public Member Functions | |
int | chargeFromMode (const TrajectoryStateOnSurface tsos) const |
bool | momentumFromModeCartesian (const TrajectoryStateOnSurface tsos, GlobalVector &momentum) const |
bool | momentumFromModeLocal (const TrajectoryStateOnSurface tsos, GlobalVector &momentum) const |
bool | momentumFromModeP (const TrajectoryStateOnSurface tsos, double &momentum) const |
bool | momentumFromModePPhiEta (const TrajectoryStateOnSurface tsos, GlobalVector &momentum) const |
bool | momentumFromModeQP (const TrajectoryStateOnSurface tsos, double &momentum) const |
bool | positionFromModeCartesian (const TrajectoryStateOnSurface tsos, GlobalPoint &position) const |
bool | positionFromModeLocal (const TrajectoryStateOnSurface tsos, GlobalPoint &position) const |
Definition at line 11 of file MultiTrajectoryStateMode.h.
int MultiTrajectoryStateMode::chargeFromMode | ( | const TrajectoryStateOnSurface | tsos | ) | const |
Charge from 1D mode calculation in q/p. Q=0 in case of failure.
Definition at line 331 of file MultiTrajectoryStateMode.cc.
References TrajectoryStateOnSurface::isValid(), SingleGaussianState1D::mean(), GaussianSumUtilities1D::mean(), GaussianSumUtilities1D::mode(), GaussianSumUtilities1D::modeIsValid(), MultiGaussianStateTransform::multiState1D(), and query::result.
bool MultiTrajectoryStateMode::momentumFromModeCartesian | ( | const TrajectoryStateOnSurface | tsos, |
GlobalVector & | momentum | ||
) | const |
Cartesian momentum from 1D mode calculation in cartesian co-ordinates. Return value true for success.
Definition at line 13 of file MultiTrajectoryStateMode.cc.
References makeMuonMisalignmentScenario::components, TrajectoryStateOnSurface::components(), TrajectoryStateOnSurface::isValid(), SingleGaussianState1D::mean(), and GaussianSumUtilities1D::mode().
Referenced by PFTrackTransformer::addPointsAndBrems(), GsfElectronAlgo::ElectronData::calculateMode(), MultiTrajectoryStateTransform::innerMomentumFromMode(), MultiTrajectoryStateTransform::outerMomentumFromMode(), EgammaHLTPixelMatchElectronAlgo::process(), and PFElecTkProducer::resolveGsfTracks().
bool MultiTrajectoryStateMode::momentumFromModeLocal | ( | const TrajectoryStateOnSurface | tsos, |
GlobalVector & | momentum | ||
) | const |
Cartesian momentum from 1D mode calculation in local co-ordinates (q/p, dx/dz, dy/dz). Return value true for success.
Definition at line 107 of file MultiTrajectoryStateMode.cc.
References TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localParameters(), SingleGaussianState1D::mean(), GaussianSumUtilities1D::mean(), GaussianSumUtilities1D::mode(), GaussianSumUtilities1D::modeIsValid(), MultiGaussianStateTransform::multiState1D(), LocalTrajectoryParameters::pzSign(), query::result, mathSSE::sqrt(), TrajectoryStateOnSurface::surface(), and Surface::toGlobal().
bool MultiTrajectoryStateMode::momentumFromModeP | ( | const TrajectoryStateOnSurface | tsos, |
double & | momentum | ||
) | const |
Momentum from 1D mode calculation in p. Return value true for sucess.
Definition at line 178 of file MultiTrajectoryStateMode.cc.
References MultiGaussianState1D::components(), i, TrajectoryStateOnSurface::isValid(), SingleGaussianState1D::mean(), GaussianSumUtilities1D::mean(), GaussianSumUtilities1D::mode(), GaussianSumUtilities1D::modeIsValid(), MultiGaussianStateTransform::multiState1D(), AlCaHLTBitMon_ParallelJobs::p, SingleGaussianState1D::variance(), and SingleGaussianState1D::weight().
bool MultiTrajectoryStateMode::momentumFromModePPhiEta | ( | const TrajectoryStateOnSurface | tsos, |
GlobalVector & | momentum | ||
) | const |
Cartesian momentum from 1D mode calculation in p, phi, eta. Return value true for success.
Definition at line 252 of file MultiTrajectoryStateMode.cc.
References makeMuonMisalignmentScenario::components, TrajectoryStateOnSurface::components(), funct::cos(), eta(), create_public_lumi_plots::exp, TrajectoryStateOnSurface::isValid(), SingleGaussianState1D::mean(), GaussianSumUtilities1D::mean(), GaussianSumUtilities1D::mode(), GaussianSumUtilities1D::modeIsValid(), AlCaHLTBitMon_ParallelJobs::p, phi, funct::sin(), and PV3DBase< T, PVType, FrameType >::x().
bool MultiTrajectoryStateMode::momentumFromModeQP | ( | const TrajectoryStateOnSurface | tsos, |
double & | momentum | ||
) | const |
Momentum from 1D mode calculation in q/p. Return value true for sucess.
Definition at line 148 of file MultiTrajectoryStateMode.cc.
References TrajectoryStateOnSurface::isValid(), SingleGaussianState1D::mean(), GaussianSumUtilities1D::mean(), GaussianSumUtilities1D::mode(), GaussianSumUtilities1D::modeIsValid(), and MultiGaussianStateTransform::multiState1D().
bool MultiTrajectoryStateMode::positionFromModeCartesian | ( | const TrajectoryStateOnSurface | tsos, |
GlobalPoint & | position | ||
) | const |
Cartesian position from 1D mode calculation in cartesian co-ordinates. Return value true for success.
Definition at line 60 of file MultiTrajectoryStateMode.cc.
References makeMuonMisalignmentScenario::components, TrajectoryStateOnSurface::components(), TrajectoryStateOnSurface::isValid(), SingleGaussianState1D::mean(), GaussianSumUtilities1D::mode(), and pos.
Referenced by PFTrackTransformer::addPointsAndBrems(), and GsfElectronAlgo::ElectronData::calculateMode().
bool MultiTrajectoryStateMode::positionFromModeLocal | ( | const TrajectoryStateOnSurface | tsos, |
GlobalPoint & | position | ||
) | const |
Cartesian position from 1D mode calculation in local co-ordinates (x, y). Return value true for success.
Definition at line 215 of file MultiTrajectoryStateMode.cc.
References TrajectoryStateOnSurface::isValid(), SingleGaussianState1D::mean(), GaussianSumUtilities1D::mean(), GaussianSumUtilities1D::mode(), GaussianSumUtilities1D::modeIsValid(), MultiGaussianStateTransform::multiState1D(), query::result, TrajectoryStateOnSurface::surface(), and Surface::toGlobal().