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 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
 
KinematicState operator() (const reco::TransientTrack &track, const GlobalPoint &point, const ParticleMass &m, float m_sigma) const
 
KinematicState operator() (const reco::TransientTrack &track, const ParticleMass &m, float m_sigma) 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

Definition at line 56 of file TransientTrackKinematicStateBuilder.cc.

58  {
59  return KinematicState(state, mass, m_sigma);
60 }

References EgHLTOffHistBins_cfi::mass.

◆ operator()() [1/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.

30  {
31  //building initial kinematic state
32  return buildState(state, mass, m_sigma);
33 }

References EgHLTOffHistBins_cfi::mass.

◆ operator()() [2/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.

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 }

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

◆ operator()() [3/5]

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

◆ operator()() [4/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.

23  {
24  // FreeTrajectoryState recState = track.trajectoryStateClosestToPoint(point).theState();
25  return buildState(track.trajectoryStateClosestToPoint(point).theState(), m, m_sigma);
26 }

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

◆ operator()() [5/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.

7  {
8  // FreeTrajectoryState * recState = track.impactPointState().freeState();
9  return buildState(*(track.impactPointState().freeState()), m, m_sigma);
10 }

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

Member Data Documentation

◆ propagator

TrackKinematicStatePropagator TransientTrackKinematicStateBuilder::propagator
private

Definition at line 68 of file TransientTrackKinematicStateBuilder.h.

HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11713
hcaldqm::flag::nState
Definition: Flag.h:21
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
PerigeeKinematicState
Definition: PerigeeKinematicState.h:21
KinematicState
Definition: KinematicState.h:17
TransientTrackKinematicStateBuilder::propagator
TrackKinematicStatePropagator propagator
Definition: TransientTrackKinematicStateBuilder.h:68
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
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
RunInfoPI::state
state
Definition: RunInfoPayloadInspectoHelper.h:16
TrackKinematicStatePropagator::propagateToTheTransversePCA
KinematicState propagateToTheTransversePCA(const KinematicState &state, const GlobalPoint &referencePoint) const override
Definition: TrackKinematicStatePropagator.cc:11
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