src
RecoVertex
KinematicFitPrimitives
interface
ExtendedPerigeeTrajectoryError.h
Go to the documentation of this file.
1
#ifndef ExtendedPerigeeTrajectoryError_H
2
#define ExtendedPerigeeTrajectoryError_H
3
4
#include "
DataFormats/CLHEP/interface/AlgebraicObjects.h
"
5
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
6
7
class
ExtendedPerigeeTrajectoryError
{
8
public
:
9
ExtendedPerigeeTrajectoryError
() :
weightAvailable
(
false
),
vl
(
false
) {}
10
11
ExtendedPerigeeTrajectoryError
(
const
AlgebraicSymMatrix66
& covariance)
12
:
cov
(covariance),
weightAvailable
(
false
),
vl
(
true
) {}
13
18
bool
isValid
()
const
{
return
vl
; }
19
20
bool
weightIsAvailable
()
const
{
return
weightAvailable
; }
21
22
const
AlgebraicSymMatrix66
&
covarianceMatrix
()
const
{
return
cov
; }
23
24
const
AlgebraicSymMatrix66
&
weightMatrix
(
int
&
error
)
const
{
25
error
= 0;
26
if
(!
weightIsAvailable
()) {
27
weight
=
cov
.Inverse(
error
);
28
if
(
error
!= 0)
29
LogDebug
(
"RecoVertex/ExtendedPerigeeTrajectoryError"
) <<
"unable to invert covariance matrix\n"
;
30
weightAvailable
=
true
;
31
}
32
return
weight
;
33
}
34
35
private
:
36
AlgebraicSymMatrix66
cov
;
37
mutable
AlgebraicSymMatrix66
weight
;
38
mutable
bool
weightAvailable
;
39
mutable
bool
vl
;
40
};
41
#endif
relativeConstraints.error
error
Definition:
relativeConstraints.py:53
ExtendedPerigeeTrajectoryError::ExtendedPerigeeTrajectoryError
ExtendedPerigeeTrajectoryError()
Definition:
ExtendedPerigeeTrajectoryError.h:9
MessageLogger.h
funct::false
false
Definition:
Factorize.h:29
ExtendedPerigeeTrajectoryError::ExtendedPerigeeTrajectoryError
ExtendedPerigeeTrajectoryError(const AlgebraicSymMatrix66 &covariance)
Definition:
ExtendedPerigeeTrajectoryError.h:11
weight
Definition:
weight.py:1
ExtendedPerigeeTrajectoryError::weightMatrix
const AlgebraicSymMatrix66 & weightMatrix(int &error) const
Definition:
ExtendedPerigeeTrajectoryError.h:24
ExtendedPerigeeTrajectoryError::weightAvailable
bool weightAvailable
Definition:
ExtendedPerigeeTrajectoryError.h:38
funct::true
true
Definition:
Factorize.h:173
ExtendedPerigeeTrajectoryError
Definition:
ExtendedPerigeeTrajectoryError.h:7
ExtendedPerigeeTrajectoryError::isValid
bool isValid() const
Definition:
ExtendedPerigeeTrajectoryError.h:18
ExtendedPerigeeTrajectoryError::cov
AlgebraicSymMatrix66 cov
Definition:
ExtendedPerigeeTrajectoryError.h:36
ExtendedPerigeeTrajectoryError::weight
AlgebraicSymMatrix66 weight
Definition:
ExtendedPerigeeTrajectoryError.h:37
AlgebraicObjects.h
AlgebraicSymMatrix66
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
Definition:
AlgebraicROOTObjects.h:24
ExtendedPerigeeTrajectoryError::covarianceMatrix
const AlgebraicSymMatrix66 & covarianceMatrix() const
Definition:
ExtendedPerigeeTrajectoryError.h:22
ExtendedPerigeeTrajectoryError::weightIsAvailable
bool weightIsAvailable() const
Definition:
ExtendedPerigeeTrajectoryError.h:20
ExtendedPerigeeTrajectoryError::vl
bool vl
Definition:
ExtendedPerigeeTrajectoryError.h:39
LogDebug
#define LogDebug(id)
Definition:
MessageLogger.h:241
Generated for CMSSW Reference Manual by
1.8.14