CMS 3D CMS Logo

KinematicRefittedTrackState.cc
Go to the documentation of this file.
5 
7  state = st;
8  momentumAtVertex = mv;
9 }
10 
13  return conv.extendedPerigeeFromKinematicParameters(state, state.globalPosition()).vector();
14 }
15 
17  throw VertexException("KinematicRefittedTrackState::Fishy covariance called");
18  return AlgebraicSymMatrix66();
19 }
20 
22  return state.kinematicParameters().vector();
23 }
24 
27 }
28 
30 
32 
36  mr[0] = mm.x();
37  mr[1] = mm.y();
38  mr[2] = mm.z();
39  mr[3] = state.mass();
40  return mr;
41 }
42 
44 
47  return thePropagator.propagate(freeTrajectoryState(), surface);
48 }
49 
51  const Propagator& propagator) const {
52  std::unique_ptr<Propagator> thePropagator(propagator.clone());
53  thePropagator->setPropagationDirection(anyDirection);
54  return thePropagator->propagate(freeTrajectoryState(), surface);
55 }
56 
57 double KinematicRefittedTrackState::weight() const { return 1.; }
58 
60  const double newWeight) const {
61  std::cout << "WARNING: Change weight for Kinematic state called, weigt will stay to be equal 1." << std::endl;
62  return RefCountedRefittedTrackState(const_cast<KinematicRefittedTrackState*>(this));
63 }
64 
65 std::vector<ReferenceCountingPointer<RefittedTrackState<6> > > KinematicRefittedTrackState::components() const {
66  std::vector<RefCountedRefittedTrackState> result;
67  result.reserve(1);
68  result.push_back(RefCountedRefittedTrackState(const_cast<KinematicRefittedTrackState*>(this)));
69  return result;
70 }
71 
73  throw VertexException("KinematicRefittedTrackState::Can Not write a TransientTrack");
74  // TransientTrackFromFTSFactory factory;
75  // return factory.build(freeTrajectoryState());
76 }
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Definition: Propagator.h:50
AlgebraicVector7 const & vector() const
The full vector (7 elements)
KinematicParametersError const & kinematicParametersError() const
T z() const
Definition: PV3DBase.h:61
Common base class.
ReferenceCountingPointer< RefittedTrackState< 6 > > stateWithNewWeight(const double newWeight) const override
AlgebraicVector4 momentumVector() const override
ROOT::Math::SVector< double, 7 > AlgebraicVector7
Definition: Matrices.h:8
GlobalPoint globalPosition() const
std::vector< ReferenceCountingPointer< RefittedTrackState< 6 > > > components() const override
AlgebraicVector4 kinematicMomentumVector() const
T x() const
Definition: PV3DBase.h:59
T y() const
Definition: PV3DBase.h:60
reco::TransientTrack transientTrack() const override
FreeTrajectoryState freeTrajectoryState() const override
KinematicParameters const & kinematicParameters() const
GlobalVector globalMomentum() const
FreeTrajectoryState freeTrajectoryState() const
ROOT::Math::SVector< double, 4 > AlgebraicVector4
TrajectoryStateOnSurface trajectoryStateOnSurface(const Surface &surface) const override
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
AlgebraicVector6 parameters() const override
KinematicRefittedTrackState(const KinematicState &st, const AlgebraicVector4 &mv)
EPOS::IO_EPOS conv
ROOT::Math::SMatrix< double, 7, 7, ROOT::Math::MatRepSym< double, 7 > > AlgebraicSymMatrix77
Definition: Matrices.h:9
GlobalPoint position() const override
AlgebraicVector7 kinematicParameters() const
ReferenceCountingPointer< RefittedTrackState< 6 > > RefCountedRefittedTrackState
ROOT::Math::SVector< double, 6 > AlgebraicVector6
ParticleMass mass() const
AlgebraicSymMatrix77 kinematicParametersCovariance() const
const MagneticField * magneticField() const
AlgebraicSymMatrix77 const & matrix() const
AlgebraicSymMatrix66 covariance() const override