CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::auto_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 }
TrajectoryStateOnSurface trajectoryStateOnSurface(const Surface &surface) const
AlgebraicVector4 kinematicMomentumVector() const
tuple propagator
AlgebraicVector7 const & vector() const
The full vector (7 elements)
virtual std::vector< ReferenceCountingPointer< RefittedTrackState< 6 > > > components() const
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
virtual Propagator * clone() const =0
GlobalVector globalMomentum() const
AlgebraicSymMatrix77 const & matrix() const
AlgebraicSymMatrix77 kinematicParametersCovariance() const
FreeTrajectoryState freeTrajectoryState() const
ROOT::Math::SVector< double, 6 > AlgebraicVector6
AlgebraicVector6 parameters() const
AlgebraicVector4 momentumVector() const
ParticleMass mass() const
ROOT::Math::SMatrix< double, 7, 7, ROOT::Math::MatRepSym< double, 7 > > AlgebraicSymMatrix77
Definition: Matrices.h:9
ROOT::Math::SVector< double, 7 > AlgebraicVector7
Definition: Matrices.h:8
AlgebraicSymMatrix66 covariance() const
T z() const
Definition: PV3DBase.h:64
tuple result
Definition: query.py:137
KinematicParametersError const & kinematicParametersError() const
KinematicParameters const & kinematicParameters() const
virtual reco::TransientTrack transientTrack() const
const MagneticField * magneticField() const
ExtendedPerigeeTrajectoryParameters extendedPerigeeFromKinematicParameters(const KinematicState &state, const GlobalPoint &point) const
virtual ReferenceCountingPointer< RefittedTrackState< 6 > > stateWithNewWeight(const double newWeight) 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
FreeTrajectoryState freeTrajectoryState() const
tuple cout
Definition: gather_cfg.py:145
ROOT::Math::SVector< double, 4 > AlgebraicVector4
T x() const
Definition: PV3DBase.h:62
GlobalPoint globalPosition() const