src
RecoVertex
KinematicFitPrimitives
src
TransientTrackKinematicStateBuilder.cc
Go to the documentation of this file.
1
#include "
RecoVertex/KinematicFitPrimitives/interface/TransientTrackKinematicStateBuilder.h
"
2
3
using namespace
reco
;
4
5
KinematicState
TransientTrackKinematicStateBuilder::operator()
(
const
TransientTrack
&
track
,
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
20
KinematicState
TransientTrackKinematicStateBuilder::operator()
(
const
TransientTrack
&
track
,
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
28
KinematicState
TransientTrackKinematicStateBuilder::operator()
(
const
FreeTrajectoryState
&
state
,
29
const
ParticleMass
&
mass
,
30
float
m_sigma)
const
{
31
//building initial kinematic state
32
return
buildState(
state
,
mass
, m_sigma);
33
}
34
35
KinematicState
TransientTrackKinematicStateBuilder::operator()
(
const
FreeTrajectoryState
&
state
,
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
50
PerigeeKinematicState
TransientTrackKinematicStateBuilder::operator()
(
const
KinematicState
&
state
,
51
const
GlobalPoint
&
point
)
const
{
52
KinematicState
nState
=
propagator
.propagateToTheTransversePCA(
state
,
point
);
53
return
PerigeeKinematicState
(
nState
,
point
);
54
}
55
56
KinematicState
TransientTrackKinematicStateBuilder::buildState
(
const
FreeTrajectoryState
&
state
,
57
const
ParticleMass
&
mass
,
58
float
m_sigma)
const
{
59
return
KinematicState
(
state
,
mass
, m_sigma);
60
}
hcaldqm::flag::nState
Definition:
Flag.h:21
PV3DBase::z
T z() const
Definition:
PV3DBase.h:61
TrackCandidateProducer_cfi.propagator
propagator
Definition:
TrackCandidateProducer_cfi.py:17
ParticleMass
double ParticleMass
Definition:
ParticleMass.h:4
TransientTrackKinematicStateBuilder.h
HLT_2024v14_cff.track
track
Definition:
HLT_2024v14_cff.py:9567
res
Definition:
Electron.h:6
PV3DBase::x
T x() const
Definition:
PV3DBase.h:59
PV3DBase::y
T y() const
Definition:
PV3DBase.h:60
FreeTrajectoryState
Definition:
FreeTrajectoryState.h:27
visualization-live-secondInstance_cfg.m
m
Definition:
visualization-live-secondInstance_cfg.py:84
TransientTrackKinematicStateBuilder::buildState
KinematicState buildState(const FreeTrajectoryState &state, const ParticleMass &mass, float m_sigma) const
Definition:
TransientTrackKinematicStateBuilder.cc:56
RunInfoPI::state
state
Definition:
RunInfoPayloadInspectoHelper.h:21
reco::TransientTrack
Definition:
TransientTrack.h:19
EgHLTOffHistBins_cfi.mass
mass
Definition:
EgHLTOffHistBins_cfi.py:34
KinematicState
Definition:
KinematicState.h:17
Point3DBase< float, GlobalTag >
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
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
PerigeeKinematicState
Definition:
PerigeeKinematicState.h:21
TransientTrackKinematicStateBuilder::operator()
KinematicState operator()(const reco::TransientTrack &track, const ParticleMass &m, float m_sigma) const
Definition:
TransientTrackKinematicStateBuilder.cc:5
Generated for CMSSW Reference Manual by
1.8.14