CMS 3D CMS Logo

KinematicRefittedTrackState.cc
Go to the documentation of this file.
5 
6 
8  const AlgebraicVector4& mv)
9 {
10  state = st;
11  momentumAtVertex = mv;
12 }
13 
15 {
18 }
19 
21 {
22  throw VertexException("KinematicRefittedTrackState::Fishy covariance called");
23  return AlgebraicSymMatrix66();
24 }
25 
27 {return state.kinematicParameters().vector();}
28 
31 
32 
34 {
35  return state.freeTrajectoryState();
36 }
37 
39 {return state.globalPosition();}
40 
42 {
45  mr[0] = mm.x();
46  mr[1] = mm.y();
47  mr[2] = mm.z();
48  mr[3] = state.mass();
49  return mr;
50 }
51 
53 {
54  return momentumAtVertex;
55 }
56 
57 
59 {
61  return thePropagator.propagate(freeTrajectoryState(), surface);
62 }
63 
65  const Propagator & propagator) const
66 {
67  std::unique_ptr<Propagator> thePropagator( propagator.clone());
68  thePropagator->setPropagationDirection(anyDirection);
69  return thePropagator->propagate(freeTrajectoryState(), surface);
70 }
71 
73 { return 1.;}
74 
76  (const double newWeight) const
77 {
78  std::cout<<"WARNING: Change weight for Kinematic state called, weigt will stay to be equal 1."<<std::endl;
80  const_cast<KinematicRefittedTrackState*>(this));
81 }
82 
83 std::vector< ReferenceCountingPointer<RefittedTrackState<6> > > KinematicRefittedTrackState::components() const
84 {
85  std::vector<RefCountedRefittedTrackState> result; result.reserve(1);
86  result.push_back(RefCountedRefittedTrackState(
87  const_cast<KinematicRefittedTrackState*>(this)));
88  return result;
89 }
90 
91 
92 
94 {
95  throw VertexException("KinematicRefittedTrackState::Can Not write a TransientTrack");
96 // TransientTrackFromFTSFactory factory;
97 // return factory.build(freeTrajectoryState());
98 }
AlgebraicVector6 parameters() const override
AlgebraicVector4 kinematicMomentumVector() const
AlgebraicVector7 const & vector() const
The full vector (7 elements)
std::vector< ReferenceCountingPointer< RefittedTrackState< 6 > > > components() const override
virtual Propagator * clone() const =0
FreeTrajectoryState freeTrajectoryState() const override
static HepMC::IO_HEPEVT conv
Common base class.
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
T y() const
Definition: PV3DBase.h:63
GlobalVector globalMomentum() const
AlgebraicSymMatrix77 const & matrix() const
AlgebraicSymMatrix77 kinematicParametersCovariance() const
AlgebraicSymMatrix66 covariance() const override
ROOT::Math::SVector< double, 6 > AlgebraicVector6
ParticleMass mass() const
ROOT::Math::SMatrix< double, 7, 7, ROOT::Math::MatRepSym< double, 7 > > AlgebraicSymMatrix77
Definition: Matrices.h:9
ReferenceCountingPointer< RefittedTrackState< 6 > > stateWithNewWeight(const double newWeight) const override
ROOT::Math::SVector< double, 7 > AlgebraicVector7
Definition: Matrices.h:8
T z() const
Definition: PV3DBase.h:64
KinematicParametersError const & kinematicParametersError() const
TrajectoryStateOnSurface trajectoryStateOnSurface(const Surface &surface) const override
GlobalPoint position() const override
KinematicParameters const & kinematicParameters() const
const MagneticField * magneticField() const
ExtendedPerigeeTrajectoryParameters extendedPerigeeFromKinematicParameters(const KinematicState &state, const GlobalPoint &point) const
KinematicRefittedTrackState(const KinematicState &st, const AlgebraicVector4 &mv)
AlgebraicVector7 kinematicParameters() const
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Definition: Propagator.h:53
ReferenceCountingPointer< RefittedTrackState< 6 > > RefCountedRefittedTrackState
AlgebraicVector4 momentumVector() const override
FreeTrajectoryState freeTrajectoryState() const
ROOT::Math::SVector< double, 4 > AlgebraicVector4
T x() const
Definition: PV3DBase.h:62
GlobalPoint globalPosition() const
reco::TransientTrack transientTrack() const override