#include <ReferenceTrajectory.h>
Public Types | |
typedef SurfaceSideDefinition::SurfaceSide | SurfaceSide |
Public Types inherited from ReferenceTrajectoryBase | |
enum | MaterialEffects { none, multipleScattering, energyLoss, combined, breakPoints, brokenLinesCoarse, brokenLinesFine, localGBL, curvlinGBL } |
typedef ReferenceCountingPointer< ReferenceTrajectoryBase > | ReferenceTrajectoryPtr |
Protected Member Functions | |
virtual bool | addMaterialEffectsBp (const std::vector< AlgebraicMatrix > &allJacobians, const std::vector< AlgebraicMatrix > &allProjections, const std::vector< AlgebraicSymMatrix > &allCurvChanges, const std::vector< AlgebraicSymMatrix > &allDeltaParaCovs, const std::vector< AlgebraicMatrix > &allLocalToCurv) |
virtual bool | addMaterialEffectsBrl (const std::vector< AlgebraicMatrix > &allJacobians, const std::vector< AlgebraicMatrix > &allProjections, const std::vector< AlgebraicSymMatrix > &allCurvChanges, const std::vector< AlgebraicSymMatrix > &allDeltaParaCovs, const std::vector< AlgebraicMatrix > &allLocalToCurv, const GlobalTrajectoryParameters >p) |
virtual bool | addMaterialEffectsBrl (const std::vector< AlgebraicMatrix > &allProjections, const std::vector< AlgebraicSymMatrix > &allDeltaParaCovs, const std::vector< AlgebraicMatrix > &allLocalToCurv, const std::vector< double > &allSteps, const GlobalTrajectoryParameters >p, const double minStep=1.0) |
virtual bool | addMaterialEffectsCov (const std::vector< AlgebraicMatrix > &allJacobians, const std::vector< AlgebraicMatrix > &allProjections, const std::vector< AlgebraicSymMatrix > &allCurvChanges, const std::vector< AlgebraicSymMatrix > &allDeltaParaCovs) |
virtual bool | addMaterialEffectsCurvlinGbl (const std::vector< AlgebraicMatrix > &allJacobians, const std::vector< AlgebraicMatrix > &allProjections, const std::vector< AlgebraicSymMatrix > &allCurvChanges, const std::vector< AlgebraicSymMatrix > &allDeltaParaCovs, const std::vector< AlgebraicMatrix > &allLocalToCurv) |
virtual bool | addMaterialEffectsLocalGbl (const std::vector< AlgebraicMatrix > &allJacobians, const std::vector< AlgebraicMatrix > &allProjections, const std::vector< AlgebraicSymMatrix > &allCurvatureChanges, const std::vector< AlgebraicSymMatrix > &allDeltaParameterCovs) |
virtual bool | construct (const TrajectoryStateOnSurface &referenceTsos, const TransientTrackingRecHit::ConstRecHitContainer &recHits, const MagneticField *magField, const reco::BeamSpot &beamSpot) |
MaterialEffectsUpdator * | createUpdator (MaterialEffects materialEffects, double mass) const |
virtual void | fillDerivatives (const AlgebraicMatrix &projection, const AlgebraicMatrix &fullJacobian, unsigned int iRow) |
virtual void | fillMeasurementAndError (const TransientTrackingRecHit::ConstRecHitPointer &hitPtr, unsigned int iRow, const TrajectoryStateOnSurface &updatedTsos) |
virtual void | fillTrajectoryPositions (const AlgebraicMatrix &projection, const AlgebraicVector &mixedLocalParams, unsigned int iRow) |
AlgebraicMatrix | getHitProjectionMatrix (const TransientTrackingRecHit::ConstRecHitPointer &recHit) const |
template<unsigned int N> | |
AlgebraicMatrix | getHitProjectionMatrixT (const TransientTrackingRecHit::ConstRecHitPointer &recHit) const |
virtual bool | propagate (const Plane &previousSurface, const TrajectoryStateOnSurface &previousTsos, const Plane &newSurface, TrajectoryStateOnSurface &newTsos, AlgebraicMatrix &newJacobian, AlgebraicMatrix &newCurvlinJacobian, double &nextStep, const MagneticField *magField) const |
ReferenceTrajectory (unsigned int nPar, unsigned int nHits, const ReferenceTrajectoryBase::Config &config) | |
SurfaceSide | surfaceSide (const PropagationDirection dir) const |
Protected Member Functions inherited from ReferenceTrajectoryBase | |
unsigned int | numberOfUsedRecHits (const TransientTrackingRecHit::ConstRecHitContainer &recHits) const |
ReferenceTrajectoryBase (unsigned int nPar, unsigned int nHits, unsigned int nVirtualPar, unsigned int nVirtualMeas) | |
bool | useRecHit (const TransientTrackingRecHit::ConstRecHitPointer &hitPtr) const |
Private Member Functions | |
template<typename Derived > | |
void | clhep2eigen (const AlgebraicVector &in, Eigen::MatrixBase< Derived > &out) |
template<typename Derived > | |
void | clhep2eigen (const AlgebraicMatrix &in, Eigen::MatrixBase< Derived > &out) |
template<typename Derived > | |
void | clhep2eigen (const AlgebraicSymMatrix &in, Eigen::MatrixBase< Derived > &out) |
Private Attributes | |
const bool | allowZeroMaterial_ |
const bool | includeAPEs_ |
const double | mass_ |
const MaterialEffects | materialEffects_ |
const PropagationDirection | propDir_ |
const bool | useBeamSpot_ |
Definition at line 55 of file ReferenceTrajectory.h.
Definition at line 57 of file ReferenceTrajectory.h.
ReferenceTrajectory::ReferenceTrajectory | ( | const TrajectoryStateOnSurface & | referenceTsos, |
const TransientTrackingRecHit::ConstRecHitContainer & | recHits, | ||
const MagneticField * | magField, | ||
const reco::BeamSpot & | beamSpot, | ||
const ReferenceTrajectoryBase::Config & | config | ||
) |
Constructor with Tsos at first hit (in physical order) and list of hits [if (hitsAreReverse) ==> order of hits is in opposite direction compared to the flight of particle, but note that ReferenceTrajectory::recHits() returns the hits always in order of flight], the material effects to be considered and a particle mass, the magnetic field and beamSpot of the event are needed for propagations etc.
Definition at line 52 of file ReferenceTrajectory.cc.
References pwdgSkimBPark_cfi::beamSpot, construct(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, TrajectoryStateOnSurface::localParameters(), LocalTrajectoryParameters::mixedFormatVector(), ReferenceTrajectoryBase::recHits(), ReferenceTrajectoryBase::theParameters, and ReferenceTrajectoryBase::theValidityFlag.
Referenced by clone().
|
inlineoverride |
Definition at line 72 of file ReferenceTrajectory.h.
|
protected |
Definition at line 95 of file ReferenceTrajectory.cc.
|
protectedvirtual |
internal method to add material effects using break points
Definition at line 558 of file ReferenceTrajectory.cc.
References dqmdumpme::k, MainPageGenerator::l, ReferenceTrajectoryBase::nMeasPerHit, ReferenceTrajectoryBase::theDerivatives, ReferenceTrajectoryBase::theMeasurementsCov, and ReferenceTrajectoryBase::theNumberOfPars.
Referenced by construct().
|
protectedvirtual |
internal methods to add material effects using broken lines (fine version)
Definition at line 620 of file ReferenceTrajectory.cc.
References dqmdumpme::k, MainPageGenerator::l, GlobalTrajectoryParameters::momentum(), dqmiodumpmetadata::n, ReferenceTrajectoryBase::nMeasPerHit, AlCaHLTBitMon_ParallelJobs::p, mathSSE::sqrt(), ReferenceTrajectoryBase::theDerivatives, ReferenceTrajectoryBase::theInnerLocalToTrajectory, ReferenceTrajectoryBase::theInnerTrajectoryToCurvilinear, ReferenceTrajectoryBase::theMeasurementsCov, and ReferenceTrajectoryBase::theNumberOfPars.
Referenced by construct().
|
protectedvirtual |
internal methods to add material effects using broken lines (coarse version)
Definition at line 798 of file ReferenceTrajectory.cc.
References dumpMFGeometry_cfg::delta, dqmdumpme::first, mps_fire::i, dqmdumpme::k, MainPageGenerator::l, dqmdumpme::last, mag(), GlobalTrajectoryParameters::magneticFieldInInverseGeV(), GlobalTrajectoryParameters::momentum(), dqmiodumpmetadata::n, ReferenceTrajectoryBase::nMeasPerHit, AlCaHLTBitMon_ParallelJobs::p, GlobalTrajectoryParameters::position(), mathSSE::sqrt(), ReferenceTrajectoryBase::theDerivatives, ReferenceTrajectoryBase::theInnerLocalToTrajectory, ReferenceTrajectoryBase::theInnerTrajectoryToCurvilinear, ReferenceTrajectoryBase::theMeasurementsCov, ReferenceTrajectoryBase::theNumberOfPars, ReferenceTrajectoryBase::theNumberOfVirtualMeas, and ReferenceTrajectoryBase::theNumberOfVirtualPars.
|
protectedvirtual |
internal method to add material effects to measurments covariance matrix
Definition at line 492 of file ReferenceTrajectory.cc.
References dqmdumpme::k, MainPageGenerator::l, ReferenceTrajectoryBase::nMeasPerHit, and ReferenceTrajectoryBase::theMeasurementsCov.
Referenced by construct().
|
protectedvirtual |
internal methods to add material effects using broken lines (fine version, curvilinear system)
Definition at line 1040 of file ReferenceTrajectory.cc.
References funct::abs(), allowZeroMaterial_, clhep2eigen(), geometryDiff::epsilon, Exception, infinity, dqmdumpme::k, ReferenceTrajectoryBase::theGblInput, ReferenceTrajectoryBase::theMeasurements, ReferenceTrajectoryBase::theMeasurementsCov, and ReferenceTrajectoryBase::theTrajectoryPositions.
Referenced by construct().
|
protectedvirtual |
internal methods to add material effects using broken lines (fine version, local system)
Definition at line 952 of file ReferenceTrajectory.cc.
References funct::abs(), allowZeroMaterial_, clhep2eigen(), geometryDiff::epsilon, Exception, identity(), dqmdumpme::k, ReferenceTrajectoryBase::theGblInput, ReferenceTrajectoryBase::theMeasurements, ReferenceTrajectoryBase::theMeasurementsCov, and ReferenceTrajectoryBase::theTrajectoryPositions.
Referenced by construct().
|
private |
Definition at line 1146 of file ReferenceTrajectory.cc.
References recoMuon::in, and MillePedeFileConverter_cfg::out.
Referenced by addMaterialEffectsCurvlinGbl(), and addMaterialEffectsLocalGbl().
|
private |
Definition at line 1154 of file ReferenceTrajectory.cc.
References cuy::col, recoMuon::in, and MillePedeFileConverter_cfg::out.
|
private |
Definition at line 1163 of file ReferenceTrajectory.cc.
References cuy::col, recoMuon::in, and MillePedeFileConverter_cfg::out.
|
inlineoverridevirtual |
Implements ReferenceTrajectoryBase.
Definition at line 74 of file ReferenceTrajectory.h.
References ReferenceTrajectory().
|
protectedvirtual |
internal method to calculate members
Definition at line 115 of file ReferenceTrajectory.cc.
References addMaterialEffectsBp(), addMaterialEffectsBrl(), addMaterialEffectsCov(), addMaterialEffectsCurvlinGbl(), addMaterialEffectsLocalGbl(), alongMomentum, AnalyticalPropagator_cfi::AnalyticalPropagator, pwdgSkimBPark_cfi::beamSpot, ReferenceTrajectoryBase::breakPoints, ReferenceTrajectoryBase::brokenLinesCoarse, ReferenceTrajectoryBase::brokenLinesFine, cms::cuda::bs, Plane::build(), ReferenceTrajectoryBase::combined, createUpdator(), Vector3DBase< T, FrameTag >::cross(), ReferenceTrajectoryBase::curvlinGBL, ReferenceTrajectoryBase::energyLoss, fillDerivatives(), fillMeasurementAndError(), fillTrajectoryPositions(), TrajectoryStateOnSurface::freeState(), getHitProjectionMatrix(), TrajectoryStateOnSurface::globalParameters(), TrajectoryStateOnSurface::hasError(), TrajectoryStateOnSurface::localError(), ReferenceTrajectoryBase::localGBL, TrajectoryStateOnSurface::localParameters(), mass_, materialEffects_, LocalTrajectoryError::matrix(), FreeTrajectoryState::momentum(), ReferenceTrajectoryBase::multipleScattering, ReferenceTrajectoryBase::nMeasPerHit, MagneticField::nominalValue(), ReferenceTrajectoryBase::none, PV3DBase< T, PVType, FrameType >::phi(), propagate(), TrackCandidateProducer_cfi::propagator, propDir_, ReferenceTrajectoryBase::recHits(), idealTransformation::rotation, LocalTrajectoryParameters::signedInverseMomentum(), GeomDet::surface(), TrajectoryStateOnSurface::surface(), surfaceSide(), ReferenceTrajectoryBase::theDerivatives, ReferenceTrajectoryBase::theInnerLocalToTrajectory, ReferenceTrajectoryBase::theInnerTrajectoryToCurvilinear, ReferenceTrajectoryBase::theNomField, ReferenceTrajectoryBase::theNumberOfHits, ReferenceTrajectoryBase::theNumberOfVirtualPars, ReferenceTrajectoryBase::theParameters, ReferenceTrajectoryBase::theRecHits, ReferenceTrajectoryBase::theTrajectoryPositionCov, ReferenceTrajectoryBase::theTsosVec, TSCBLBuilderNoMaterial_cfi::TSCBLBuilderNoMaterial, useBeamSpot_, and ReferenceTrajectoryBase::useRecHit().
Referenced by BzeroReferenceTrajectory::BzeroReferenceTrajectory(), and ReferenceTrajectory().
|
protected |
internal method to get apropriate updator
Definition at line 350 of file ReferenceTrajectory.cc.
References ReferenceTrajectoryBase::breakPoints, ReferenceTrajectoryBase::brokenLinesCoarse, ReferenceTrajectoryBase::brokenLinesFine, ReferenceTrajectoryBase::combined, ReferenceTrajectoryBase::curvlinGBL, ReferenceTrajectoryBase::energyLoss, HLT_2024v11_cff::EnergyLossUpdator, ReferenceTrajectoryBase::localGBL, EgHLTOffHistBins_cfi::mass, ReferenceTrajectoryBase::multipleScattering, HLT_2024v11_cff::MultipleScatteringUpdator, and ReferenceTrajectoryBase::none.
Referenced by construct().
|
protectedvirtual |
internal method to fill derivatives for hit iRow/2
Definition at line 466 of file ReferenceTrajectory.cc.
References mps_fire::i, dqmiolumiharvest::j, ReferenceTrajectoryBase::parameters(), and ReferenceTrajectoryBase::theDerivatives.
Referenced by construct().
|
protectedvirtual |
internal method to fill measurement and error matrix for hit iRow/2
Definition at line 428 of file ReferenceTrajectory.cc.
References includeAPEs_, TrackerGeomDet::localAlignmentError(), ReferenceTrajectoryBase::theMeasurements, ReferenceTrajectoryBase::theMeasurementsCov, PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), and LocalError::yy().
Referenced by construct().
|
protectedvirtual |
internal method to fill the trajectory positions for hit iRow/2
Definition at line 480 of file ReferenceTrajectory.cc.
References mps_fire::i, and ReferenceTrajectoryBase::theTrajectoryPositions.
Referenced by construct().
|
protected |
first (generic) helper to get the projection matrix
Definition at line 1173 of file ReferenceTrajectory.cc.
References Exception, and ReferenceTrajectoryBase::useRecHit().
Referenced by construct().
|
protected |
second helper (templated on the dimension) to get the projection matrix
Definition at line 1200 of file ReferenceTrajectory.cc.
References N, packedPFCandidateRefMixer_cfi::pf, KfComponentsHolder::projection(), alignCSCRings::r, KfComponentsHolder::setup(), and cms::cuda::V.
|
protectedvirtual |
internal method to calculate jacobian
From TrackingTools/ GeomPropagators/ interface/ AnalyticalPropagator.h NB: this propagator assumes constant, non-zero magnetic field parallel to the z-axis!
Definition at line 375 of file ReferenceTrajectory.cc.
References TrajectoryStateOnSurface::globalParameters(), TrajectoryStateOnSurface::localParameters(), Propagator::propagateWithPath(), defaultRKPropagator::Product::propagator, and propDir_.
Referenced by construct().
|
inlineprotected |
Don't care for propagation direction 'anyDirection' - in that case the material effects are anyway not updated ...
Definition at line 169 of file ReferenceTrajectory.h.
References SurfaceSideDefinition::afterSurface, alongMomentum, SurfaceSideDefinition::beforeSurface, and DeadROC_duringRun::dir.
Referenced by BzeroReferenceTrajectory::BzeroReferenceTrajectory(), and construct().
|
private |
Definition at line 195 of file ReferenceTrajectory.h.
Referenced by addMaterialEffectsCurvlinGbl(), and addMaterialEffectsLocalGbl().
|
private |
Definition at line 194 of file ReferenceTrajectory.h.
Referenced by fillMeasurementAndError().
|
private |
Definition at line 190 of file ReferenceTrajectory.h.
Referenced by construct().
|
private |
Definition at line 191 of file ReferenceTrajectory.h.
Referenced by construct().
|
private |
Definition at line 192 of file ReferenceTrajectory.h.
Referenced by construct(), and propagate().
|
private |
Definition at line 193 of file ReferenceTrajectory.h.
Referenced by construct().