CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
TransientTrackKinematicStateBuilder Class Reference

#include <TransientTrackKinematicStateBuilder.h>

Public Member Functions

KinematicState operator() (const reco::TransientTrack &track, const ParticleMass &m, float m_sigma) const
 
KinematicState operator() (const reco::TransientTrack &track, const GlobalPoint &point, const ParticleMass &m, float m_sigma) const
 
KinematicState operator() (const FreeTrajectoryState &state, const ParticleMass &mass, float m_sigma) const
 
KinematicState operator() (const FreeTrajectoryState &state, const ParticleMass &mass, float m_sigma, const GlobalPoint &point) const
 
PerigeeKinematicState operator() (const KinematicState &state, const GlobalPoint &point) const
 
 TransientTrackKinematicStateBuilder ()
 
 ~TransientTrackKinematicStateBuilder ()
 

Private Member Functions

KinematicState buildState (const FreeTrajectoryState &state, const ParticleMass &mass, float m_sigma) const
 

Private Attributes

TrackKinematicStatePropagator propagator
 

Detailed Description

Kinematic State builder for TransientTrack based kinematic states. Uses TrackKinematicStatePropagator for state propagation.

Definition at line 16 of file TransientTrackKinematicStateBuilder.h.

Constructor & Destructor Documentation

◆ TransientTrackKinematicStateBuilder()

TransientTrackKinematicStateBuilder::TransientTrackKinematicStateBuilder ( )
inline

Definition at line 18 of file TransientTrackKinematicStateBuilder.h.

18 {}

◆ ~TransientTrackKinematicStateBuilder()

TransientTrackKinematicStateBuilder::~TransientTrackKinematicStateBuilder ( )
inline

Definition at line 20 of file TransientTrackKinematicStateBuilder.h.

20 {}

Member Function Documentation

◆ buildState()

KinematicState TransientTrackKinematicStateBuilder::buildState ( const FreeTrajectoryState state,
const ParticleMass mass,
float  m_sigma 
) const
private

◆ operator()() [1/5]

KinematicState TransientTrackKinematicStateBuilder::operator() ( const reco::TransientTrack track,
const ParticleMass m,
float  m_sigma 
) const

Operator creating a KinematcState at RecObj definition point with given mass guess and sigma

Definition at line 5 of file TransientTrackKinematicStateBuilder.cc.

References visualization-live-secondInstance_cfg::m, and HLT_2023v12_cff::track.

7  {
8  // FreeTrajectoryState * recState = track.impactPointState().freeState();
9  return buildState(*(track.impactPointState().freeState()), m, m_sigma);
10 }
KinematicState buildState(const FreeTrajectoryState &state, const ParticleMass &mass, float m_sigma) const

◆ operator()() [2/5]

KinematicState TransientTrackKinematicStateBuilder::operator() ( const reco::TransientTrack track,
const GlobalPoint point,
const ParticleMass m,
float  m_sigma 
) const

Operator creating a KinematicState directly out of 7 state parameters and their covariance matrix
Operator creating a KinematicState out of a RecObj and propagating it to the given point using propagator provided by user

Definition at line 20 of file TransientTrackKinematicStateBuilder.cc.

References visualization-live-secondInstance_cfg::m, point, and HLT_2023v12_cff::track.

23  {
24  // FreeTrajectoryState recState = track.trajectoryStateClosestToPoint(point).theState();
25  return buildState(track.trajectoryStateClosestToPoint(point).theState(), m, m_sigma);
26 }
KinematicState buildState(const FreeTrajectoryState &state, const ParticleMass &mass, float m_sigma) const
*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

◆ operator()() [3/5]

KinematicState TransientTrackKinematicStateBuilder::operator() ( const FreeTrajectoryState state,
const ParticleMass mass,
float  m_sigma 
) const

Operator to create a particle state at point using the FreeTrajectoryState, charge and mass guess for the particle. The state will be created with the reference point taken from the FTS

Definition at line 28 of file TransientTrackKinematicStateBuilder.cc.

References EgHLTOffHistBins_cfi::mass.

30  {
31  //building initial kinematic state
32  return buildState(state, mass, m_sigma);
33 }
KinematicState buildState(const FreeTrajectoryState &state, const ParticleMass &mass, float m_sigma) const

◆ operator()() [4/5]

KinematicState TransientTrackKinematicStateBuilder::operator() ( const FreeTrajectoryState state,
const ParticleMass mass,
float  m_sigma,
const GlobalPoint point 
) const

Operator to create a particle state at point using the FreeTrajectoryState, charge and mass guess for the particle. The state will be created by propagating FTS to the transvese point of closest approach to the given point

Definition at line 35 of file TransientTrackKinematicStateBuilder.cc.

References EgHLTOffHistBins_cfi::mass, point, TrackCandidateProducer_cfi::propagator, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

38  {
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())) {
46  }
47  return res;
48 }
T z() const
Definition: PV3DBase.h:61
Definition: Electron.h:6
T x() const
Definition: PV3DBase.h:59
T y() const
Definition: PV3DBase.h:60
KinematicState buildState(const FreeTrajectoryState &state, const ParticleMass &mass, float m_sigma) const
KinematicState propagateToTheTransversePCA(const KinematicState &state, const GlobalPoint &referencePoint) const override
*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

◆ operator()() [5/5]

PerigeeKinematicState TransientTrackKinematicStateBuilder::operator() ( const KinematicState state,
const GlobalPoint point 
) const

Definition at line 50 of file TransientTrackKinematicStateBuilder.cc.

References hcaldqm::flag::nState, point, and TrackCandidateProducer_cfi::propagator.

51  {
54 }
KinematicState propagateToTheTransversePCA(const KinematicState &state, const GlobalPoint &referencePoint) const override
*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

Member Data Documentation

◆ propagator

TrackKinematicStatePropagator TransientTrackKinematicStateBuilder::propagator
private

Definition at line 68 of file TransientTrackKinematicStateBuilder.h.