RecoVertex
KinematicFit
interface
MassKinematicConstraint.h
Go to the documentation of this file.
1
#ifndef MassKinematicConstraint_H
2
#define MassKinematicConstraint_H
3
4
#include "
RecoVertex/KinematicFitPrimitives/interface/KinematicConstraint.h
"
5
#include "
RecoVertex/KinematicFitPrimitives/interface/ParticleMass.h
"
6
17
class
MassKinematicConstraint
:
public
KinematicConstraint
{
18
public
:
22
MassKinematicConstraint
(
const
ParticleMass
&
m
,
const
float
sigma);
23
28
std::pair<AlgebraicVector, AlgebraicVector>
value
(
const
AlgebraicVector
& exPoint)
const override
;
29
30
std::pair<AlgebraicMatrix, AlgebraicVector>
derivative
(
const
AlgebraicVector
& exPoint)
const override
;
31
36
std::pair<AlgebraicVector, AlgebraicVector>
value
(
const
std::vector<RefCountedKinematicParticle>& par)
const override
;
37
38
std::pair<AlgebraicMatrix, AlgebraicVector>
derivative
(
39
const
std::vector<RefCountedKinematicParticle>& par)
const override
;
40
46
int
numberOfEquations
()
const override
;
47
48
AlgebraicVector
deviations
(
int
nStates)
const override
;
49
50
MassKinematicConstraint
*
clone
()
const override
{
return
new
MassKinematicConstraint
(*
this
); }
51
52
private
:
53
ParticleMass
mass
;
54
AlgebraicVector
dd
;
55
};
56
57
#endif
KinematicConstraint.h
MassKinematicConstraint::derivative
std::pair< AlgebraicMatrix, AlgebraicVector > derivative(const AlgebraicVector &exPoint) const override
Definition:
MassKinematicConstraint.cc:30
ParticleMass
double ParticleMass
Definition:
ParticleMass.h:4
MassKinematicConstraint::deviations
AlgebraicVector deviations(int nStates) const override
Definition:
MassKinematicConstraint.cc:75
MassKinematicConstraint
Definition:
MassKinematicConstraint.h:17
MassKinematicConstraint::dd
AlgebraicVector dd
Definition:
MassKinematicConstraint.h:54
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition:
AlgebraicObjects.h:13
MassKinematicConstraint::mass
ParticleMass mass
Definition:
MassKinematicConstraint.h:53
visualization-live-secondInstance_cfg.m
m
Definition:
visualization-live-secondInstance_cfg.py:72
KinematicConstraint
Definition:
KinematicConstraint.h:21
MassKinematicConstraint::clone
MassKinematicConstraint * clone() const override
Definition:
MassKinematicConstraint.h:50
MassKinematicConstraint::numberOfEquations
int numberOfEquations() const override
Definition:
MassKinematicConstraint.cc:84
ParticleMass.h
MassKinematicConstraint::MassKinematicConstraint
MassKinematicConstraint(const ParticleMass &m, const float sigma)
Definition:
MassKinematicConstraint.cc:4
MassKinematicConstraint::value
std::pair< AlgebraicVector, AlgebraicVector > value(const AlgebraicVector &exPoint) const override
Definition:
MassKinematicConstraint.cc:11
Generated for CMSSW Reference Manual by
1.8.16