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 }
Vector3DBase
Definition: Vector3DBase.h:8
KinematicRefittedTrackState::parameters
AlgebraicVector6 parameters() const override
Definition: KinematicRefittedTrackState.cc:11
KinematicPerigeeConversions.h
KinematicRefittedTrackState::kinematicMomentumVector
AlgebraicVector4 kinematicMomentumVector() const
Definition: KinematicRefittedTrackState.cc:33
KinematicRefittedTrackState::covariance
AlgebraicSymMatrix66 covariance() const override
Definition: KinematicRefittedTrackState.cc:16
anyDirection
Definition: PropagationDirection.h:4
KinematicRefittedTrackState::position
GlobalPoint position() const override
Definition: KinematicRefittedTrackState.cc:31
VertexException
Common base class.
Definition: VertexException.h:12
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
conv
static HepMC::IO_HEPEVT conv
Definition: BeamHaloProducer.cc:48
KinematicPerigeeConversions
Definition: KinematicPerigeeConversions.h:17
KinematicRefittedTrackState::components
std::vector< ReferenceCountingPointer< RefittedTrackState< 6 > > > components() const override
Definition: KinematicRefittedTrackState.cc:65
KinematicState
Definition: KinematicState.h:17
gather_cfg.cout
cout
Definition: gather_cfg.py:144
KinematicState::globalMomentum
GlobalVector globalMomentum() const
Definition: KinematicState.h:67
AlgebraicSymMatrix77
ROOT::Math::SMatrix< double, 7, 7, ROOT::Math::MatRepSym< double, 7 > > AlgebraicSymMatrix77
Definition: Matrices.h:9
KinematicRefittedTrackState::state
KinematicState state
Definition: KinematicRefittedTrackState.h:78
Surface
Definition: Surface.h:36
KinematicRefittedTrackState::kinematicParameters
AlgebraicVector7 kinematicParameters() const
Definition: KinematicRefittedTrackState.cc:21
ReferenceCountingPointer
Definition: ReferenceCounted.h:60
KinematicRefittedTrackState::stateWithNewWeight
ReferenceCountingPointer< RefittedTrackState< 6 > > stateWithNewWeight(const double newWeight) const override
Definition: KinematicRefittedTrackState.cc:59
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
KinematicRefittedTrackState::weight
double weight() const override
Definition: KinematicRefittedTrackState.cc:57
Propagator
Definition: Propagator.h:44
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
TrackCandidateProducer_cfi.propagator
propagator
Definition: TrackCandidateProducer_cfi.py:17
KinematicRefittedTrackState::trajectoryStateOnSurface
TrajectoryStateOnSurface trajectoryStateOnSurface(const Surface &surface) const override
Definition: KinematicRefittedTrackState.cc:45
AlgebraicSymMatrix66
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
Definition: AlgebraicROOTObjects.h:24
KinematicState::kinematicParametersError
KinematicParametersError const & kinematicParametersError() const
Definition: KinematicState.h:63
KinematicRefittedTrackState::RefCountedRefittedTrackState
ReferenceCountingPointer< RefittedTrackState< 6 > > RefCountedRefittedTrackState
Definition: KinematicRefittedTrackState.h:23
Point3DBase< float, GlobalTag >
KinematicRefittedTrackState::momentumVector
AlgebraicVector4 momentumVector() const override
Definition: KinematicRefittedTrackState.cc:43
KinematicParametersError::matrix
AlgebraicSymMatrix77 const & matrix() const
Definition: KinematicParametersError.h:36
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
KinematicRefittedTrackState::KinematicRefittedTrackState
KinematicRefittedTrackState(const KinematicState &st, const AlgebraicVector4 &mv)
Definition: KinematicRefittedTrackState.cc:6
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
KinematicRefittedTrackState::momentumAtVertex
AlgebraicVector4 momentumAtVertex
Definition: KinematicRefittedTrackState.h:79
AlgebraicVector7
ROOT::Math::SVector< double, 7 > AlgebraicVector7
Definition: Matrices.h:8
AnalyticalPropagator.h
AlgebraicVector6
ROOT::Math::SVector< double, 6 > AlgebraicVector6
Definition: AlgebraicROOTObjects.h:15
PropagationDirection.h
KinematicState::mass
ParticleMass mass() const
Definition: KinematicState.h:54
AnalyticalPropagator
Definition: AnalyticalPropagator.h:22
AlgebraicVector4
ROOT::Math::SVector< double, 4 > AlgebraicVector4
Definition: AlgebraicROOTObjects.h:13
KinematicRefittedTrackState::freeTrajectoryState
FreeTrajectoryState freeTrajectoryState() const override
Definition: KinematicRefittedTrackState.cc:29
reco::TransientTrack
Definition: TransientTrack.h:19
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
KinematicParameters::vector
AlgebraicVector7 const & vector() const
The full vector (7 elements)
Definition: KinematicParameters.h:31
KinematicRefittedTrackState.h
KinematicState::magneticField
const MagneticField * magneticField() const
Definition: KinematicState.h:86
mps_fire.result
result
Definition: mps_fire.py:311
KinematicState::kinematicParameters
KinematicParameters const & kinematicParameters() const
Definition: KinematicState.h:61
KinematicRefittedTrackState::transientTrack
reco::TransientTrack transientTrack() const override
Definition: KinematicRefittedTrackState.cc:72
HLTObjectMonitor_cfi.mr
mr
Definition: HLTObjectMonitor_cfi.py:366
KinematicState::freeTrajectoryState
FreeTrajectoryState freeTrajectoryState() const
Definition: KinematicState.h:77
AnalyticalPropagator::propagate
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Definition: Propagator.h:50
KinematicRefittedTrackState::kinematicParametersCovariance
AlgebraicSymMatrix77 kinematicParametersCovariance() const
Definition: KinematicRefittedTrackState.cc:25
KinematicState::globalPosition
GlobalPoint globalPosition() const
Definition: KinematicState.h:69