RecoVertex
KinematicFit
interface
FourMomentumKinematicConstraint.h
Go to the documentation of this file.
1
#ifndef FourMomentumKinematicConstraint_H
2
#define FourMomentumKinematicConstraint_H
3
4
#include "
RecoVertex/KinematicFitPrimitives/interface/KinematicConstraint.h
"
5
#include "
RecoVertex/KinematicFitPrimitives/interface/ParticleMass.h
"
6
17
class
FourMomentumKinematicConstraint
:
public
KinematicConstraint
{
18
public
:
24
FourMomentumKinematicConstraint
(
const
AlgebraicVector
& momentum,
const
AlgebraicVector
& deviation);
25
30
std::pair<AlgebraicVector, AlgebraicVector>
value
(
const
AlgebraicVector
& exPoint)
const override
;
31
32
std::pair<AlgebraicMatrix, AlgebraicVector>
derivative
(
const
AlgebraicVector
& exPoint)
const override
;
33
38
std::pair<AlgebraicMatrix, AlgebraicVector>
derivative
(
39
const
std::vector<RefCountedKinematicParticle>& par)
const override
;
40
41
std::pair<AlgebraicVector, AlgebraicVector>
value
(
const
std::vector<RefCountedKinematicParticle>& par)
const override
;
42
47
int
numberOfEquations
()
const override
;
48
49
AlgebraicVector
deviations
(
int
nStates)
const override
;
50
51
FourMomentumKinematicConstraint
*
clone
()
const override
{
return
new
FourMomentumKinematicConstraint
(*
this
); }
52
53
private
:
54
AlgebraicVector
mm
;
55
AlgebraicVector
dd
;
56
};
57
#endif
FourMomentumKinematicConstraint
Definition:
FourMomentumKinematicConstraint.h:17
KinematicConstraint.h
FourMomentumKinematicConstraint::FourMomentumKinematicConstraint
FourMomentumKinematicConstraint(const AlgebraicVector &momentum, const AlgebraicVector &deviation)
Definition:
FourMomentumKinematicConstraint.cc:4
FourMomentumKinematicConstraint::clone
FourMomentumKinematicConstraint * clone() const override
Definition:
FourMomentumKinematicConstraint.h:51
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition:
AlgebraicObjects.h:13
KinematicConstraint
Definition:
KinematicConstraint.h:21
FourMomentumKinematicConstraint::value
std::pair< AlgebraicVector, AlgebraicVector > value(const AlgebraicVector &exPoint) const override
Definition:
FourMomentumKinematicConstraint.cc:29
FourMomentumKinematicConstraint::derivative
std::pair< AlgebraicMatrix, AlgebraicVector > derivative(const AlgebraicVector &exPoint) const override
Definition:
FourMomentumKinematicConstraint.cc:51
FourMomentumKinematicConstraint::dd
AlgebraicVector dd
Definition:
FourMomentumKinematicConstraint.h:55
FourMomentumKinematicConstraint::deviations
AlgebraicVector deviations(int nStates) const override
Definition:
FourMomentumKinematicConstraint.cc:110
FourMomentumKinematicConstraint::mm
AlgebraicVector mm
Definition:
FourMomentumKinematicConstraint.h:54
ParticleMass.h
FourMomentumKinematicConstraint::numberOfEquations
int numberOfEquations() const override
Definition:
FourMomentumKinematicConstraint.cc:119
Generated for CMSSW Reference Manual by
1.8.16