CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
KinematicRefittedTrackState.cc
Go to the documentation of this file.
5 
7  state = st;
8  momentumAtVertex = mv;
9 }
10 
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 }
AlgebraicVector4 kinematicMomentumVector() const
tuple propagator
AlgebraicVector7 const & vector() const
The full vector (7 elements)
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
T y() const
Definition: PV3DBase.h:60
virtual Propagator * clone() const =0
GlobalVector globalMomentum() const
AlgebraicSymMatrix77 const & matrix() const
AlgebraicSymMatrix77 kinematicParametersCovariance() const
std::vector< ReferenceCountingPointer< RefittedTrackState< 6 > > > components() const override
tuple result
Definition: mps_fire.py:311
ParticleMass mass() const
reco::TransientTrack transientTrack() const override
FreeTrajectoryState freeTrajectoryState() const override
T z() const
Definition: PV3DBase.h:61
KinematicParametersError const & kinematicParametersError() 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
KinematicParameters const & kinematicParameters() const
const MagneticField * magneticField() const
ExtendedPerigeeTrajectoryParameters extendedPerigeeFromKinematicParameters(const KinematicState &state, const GlobalPoint &point) const
AlgebraicVector6 parameters() const override
KinematicRefittedTrackState(const KinematicState &st, const AlgebraicVector4 &mv)
AlgebraicVector7 kinematicParameters() const
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Definition: Propagator.h:50
EPOS::IO_EPOS conv
ROOT::Math::SMatrix< double, 7, 7, ROOT::Math::MatRepSym< double, 7 > > AlgebraicSymMatrix77
Definition: Matrices.h:9
GlobalPoint position() const override
ReferenceCountingPointer< RefittedTrackState< 6 > > RefCountedRefittedTrackState
ROOT::Math::SVector< double, 6 > AlgebraicVector6
FreeTrajectoryState freeTrajectoryState() const
tuple cout
Definition: gather_cfg.py:144
T x() const
Definition: PV3DBase.h:59
GlobalPoint globalPosition() const
AlgebraicSymMatrix66 covariance() const override