CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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);
53  return PerigeeKinematicState(nState, point);
54 }
55 
57  const ParticleMass& mass,
58  float m_sigma) const {
59  return KinematicState(state, mass, m_sigma);
60 }
tuple propagator
const FreeTrajectoryState & theState() const
double ParticleMass
Definition: ParticleMass.h:4
T y() const
Definition: PV3DBase.h:60
FreeTrajectoryState const * freeState(bool withErrors=true) const
T z() const
Definition: PV3DBase.h:61
GlobalPoint position() const
KinematicState operator()(const reco::TransientTrack &track, const ParticleMass &m, float m_sigma) const
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint(const GlobalPoint &point) const
KinematicState buildState(const FreeTrajectoryState &state, const ParticleMass &mass, float m_sigma) const
TrajectoryStateOnSurface impactPointState() const
T x() const
Definition: PV3DBase.h:59
*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