CMS 3D CMS Logo

TransientTrackKinematicStateBuilder.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
6  const ParticleMass& m,
7  float m_sigma) const {
8  // FreeTrajectoryState * recState = track.impactPointState().freeState();
9  return buildState(*(track.impactPointState().freeState()), m, m_sigma);
10 }
11 
12 //KinematicState
13 //TransientTrackKinematicStateBuilder::operator()(const KinematicParameters& par,
14 // const KinematicParametersError& er, const TrackCharge& ch,
15 // const MagneticField* field) const
16 //{
17 // return KinematicState(par, er, ch, field);
18 //}
19 
21  const GlobalPoint& point,
22  const ParticleMass& m,
23  float m_sigma) const {
24  // FreeTrajectoryState recState = track.trajectoryStateClosestToPoint(point).theState();
25  return buildState(track.trajectoryStateClosestToPoint(point).theState(), m, m_sigma);
26 }
27 
29  const ParticleMass& mass,
30  float m_sigma) const {
31  //building initial kinematic state
32  return buildState(state, mass, m_sigma);
33 }
34 
36  const ParticleMass& mass,
37  float m_sigma,
38  const GlobalPoint& point) const {
39  //building initial kinematic state
40  KinematicState res = buildState(state, mass, m_sigma);
41 
42  //and propagating it to given point if needed
43  GlobalPoint inPos = state.position();
44  if ((inPos.x() != point.x()) || (inPos.y() != point.y()) || (inPos.z() != point.z())) {
45  res = propagator.propagateToTheTransversePCA(res, point);
46  }
47  return res;
48 }
49 
51  const GlobalPoint& point) const {
52  KinematicState nState = propagator.propagateToTheTransversePCA(state, point);
54 }
55 
57  const ParticleMass& mass,
58  float m_sigma) const {
59  return KinematicState(state, mass, m_sigma);
60 }
TransientTrackKinematicStateBuilder::operator()
KinematicState operator()(const reco::TransientTrack &track, const ParticleMass &m, float m_sigma) const
Definition: TransientTrackKinematicStateBuilder.cc:5
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11776
hcaldqm::flag::nState
Definition: Flag.h:21
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
ParticleMass
double ParticleMass
Definition: ParticleMass.h:4
PerigeeKinematicState
Definition: PerigeeKinematicState.h:21
KinematicState
Definition: KinematicState.h:17
TransientTrackKinematicStateBuilder.h
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
TrackCandidateProducer_cfi.propagator
propagator
Definition: TrackCandidateProducer_cfi.py:17
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
TransientTrackKinematicStateBuilder::buildState
KinematicState buildState(const FreeTrajectoryState &state, const ParticleMass &mass, float m_sigma) const
Definition: TransientTrackKinematicStateBuilder.cc:56
Point3DBase< float, GlobalTag >
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
res
Definition: Electron.h:6
reco::TransientTrack
Definition: TransientTrack.h:19
RunInfoPI::state
state
Definition: RunInfoPayloadInspectoHelper.h:16
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
EgHLTOffHistBins_cfi.mass
mass
Definition: EgHLTOffHistBins_cfi.py:34
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5