RecoVertex
KinematicFitPrimitives
src
KinematicState.cc
Go to the documentation of this file.
1
#include "
RecoVertex/KinematicFitPrimitives/interface/KinematicState.h
"
2
#include "
RecoVertex/KinematicFitPrimitives/interface/Matrices.h
"
3
4
KinematicState::KinematicState
(
const
KinematicParameters
&
parameters
,
5
const
KinematicParametersError
&
error
,
6
const
TrackCharge
&
charge
,
7
const
MagneticField
* field)
8
: fts(
GlobalTrajectoryParameters
(
parameters
.
position
(),
parameters
.momentum(),
charge
, field),
9
CartesianTrajectoryError
(
error
.
matrix
().Sub<
AlgebraicSymMatrix66
>(0, 0))),
10
param(
parameters
),
11
err
(
error
),
12
vl(
true
) {}
13
14
bool
KinematicState::operator==
(
const
KinematicState
&
other
)
const
{
15
return
(
kinematicParameters
().
vector
() ==
other
.kinematicParameters().vector()) &&
16
(
kinematicParametersError
().
matrix
() ==
other
.kinematicParametersError().matrix());
17
}
18
19
/*
20
void KinematicState::setFreeTrajectoryState() const {
21
GlobalTrajectoryParameters globalPar(globalPosition(), globalMomentum(),
22
particleCharge(), theField);
23
AlgebraicSymMatrix66 cError =
24
kinematicParametersError().matrix().Sub<AlgebraicSymMatrix66>(0,0);
25
CartesianTrajectoryError cartError(cError);
26
// cout<<"conversion called"<<endl;
27
// cout<<"parameters::position"<<globalPosition()<<endl;
28
// cout<<"parameters::momentum"<<globalMomentum()<<endl;
29
// cout<<"parameters::error"<<cError<<endl;
30
fts = FreeTrajectoryState(globalPar,cartError);
31
}
32
*/
makeMuonMisalignmentScenario.matrix
list matrix
Definition:
makeMuonMisalignmentScenario.py:141
relativeConstraints.error
error
Definition:
relativeConstraints.py:53
KinematicState::kinematicParametersError
KinematicParametersError const & kinematicParametersError() const
Definition:
KinematicState.h:63
KinematicState::KinematicState
KinematicState()
Definition:
KinematicState.h:24
GlobalTrajectoryParameters
Definition:
GlobalTrajectoryParameters.h:15
KinematicParametersError
Definition:
KinematicParametersError.h:20
MagneticField
Definition:
MagneticField.h:19
BeamSpotPI::parameters
parameters
Definition:
BeamSpotPayloadInspectorHelper.h:33
KinematicParameters
Definition:
KinematicParameters.h:15
funct::true
true
Definition:
Factorize.h:173
submitPVResolutionJobs.err
err
Definition:
submitPVResolutionJobs.py:85
TrackCharge
int TrackCharge
Definition:
TrackCharge.h:4
trackingPlots.other
other
Definition:
trackingPlots.py:1464
KinematicState::kinematicParameters
KinematicParameters const & kinematicParameters() const
Definition:
KinematicState.h:61
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition:
ALCARECOTkAlJpsiMuMu_cff.py:47
AlgebraicSymMatrix66
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
Definition:
AlgebraicROOTObjects.h:24
KinematicState
Definition:
KinematicState.h:17
CartesianTrajectoryError
Definition:
CartesianTrajectoryError.h:15
trackerHitRTTI::vector
Definition:
trackerHitRTTI.h:21
position
static int position[264][3]
Definition:
ReadPGInfo.cc:289
KinematicState::operator==
bool operator==(const KinematicState &other) const
Definition:
KinematicState.cc:14
Matrices.h
KinematicParametersError::matrix
AlgebraicSymMatrix77 const & matrix() const
Definition:
KinematicParametersError.h:36
KinematicState.h
Generated for CMSSW Reference Manual by
1.8.14