CMS 3D CMS Logo

TransientTrackKinematicStateBuilder.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
5 
7  const ParticleMass& m, float m_sigma) const
8 {
9 // FreeTrajectoryState * recState = track.impactPointState().freeState();
10  return buildState(*(track.impactPointState().freeState()), m, m_sigma);
11 }
12 
13 //KinematicState
14 //TransientTrackKinematicStateBuilder::operator()(const KinematicParameters& par,
15 // const KinematicParametersError& er, const TrackCharge& ch,
16 // const MagneticField* field) const
17 //{
18 // return KinematicState(par, er, ch, field);
19 //}
20 
22  const GlobalPoint& point, const ParticleMass& m,float m_sigma) const
23 {
24 // FreeTrajectoryState recState = track.trajectoryStateClosestToPoint(point).theState();
25  return buildState( track.trajectoryStateClosestToPoint(point).theState(), m, m_sigma);
26 }
27 
29  const ParticleMass& mass,float m_sigma) const
30 {
31 //building initial kinematic state
32  return buildState(state,mass,m_sigma);
33 }
34 
36  const ParticleMass& mass,float m_sigma, const GlobalPoint& point) const
37 {
38 //building initial kinematic state
39  KinematicState res = buildState(state,mass,m_sigma);
40 
41 //and propagating it to given point if needed
42  GlobalPoint inPos = state.position();
43  if((inPos.x() != point.x())||(inPos.y() != point.y())||(inPos.z() != point.z()))
44  {res = propagator.propagateToTheTransversePCA(res,point);}
45  return res;
46 }
47 
49  const GlobalPoint& point)const
50 {
51  KinematicState nState = propagator.propagateToTheTransversePCA(state, point);
52  return PerigeeKinematicState(nState, point);
53 }
54 
57  const ParticleMass& mass, float m_sigma) const
58 {
59 
60  return KinematicState(state,mass, m_sigma);
61 }
const FreeTrajectoryState & theState() const
double ParticleMass
Definition: ParticleMass.h:5
T y() const
Definition: PV3DBase.h:63
Definition: Electron.h:6
FreeTrajectoryState const * freeState(bool withErrors=true) const
T z() const
Definition: PV3DBase.h:64
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
fixed size matrix
TrajectoryStateOnSurface impactPointState() const
T x() const
Definition: PV3DBase.h:62
*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