Main Page
Namespaces
Classes
Package Documentation
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
{
9
public
:
10
ExtendedPerigeeTrajectoryError
():
weightAvailable
(
false
),
vl
(
false
)
11
{}
12
13
ExtendedPerigeeTrajectoryError
(
const
AlgebraicSymMatrix66
& covariance):
14
cov
(covariance),
weightAvailable
(
false
),
15
vl
(
true
)
16
{}
17
18
23
bool
isValid
()
const
24
{
return
vl
;}
25
26
bool
weightIsAvailable
()
const
27
{
return
weightAvailable
;}
28
29
const
AlgebraicSymMatrix66
&
covarianceMatrix
()
const
30
{
return
cov
;}
31
32
const
AlgebraicSymMatrix66
&
weightMatrix
(
int
&
error
)
const
33
{
34
error = 0;
35
if
(!
weightIsAvailable
()) {
36
weight
=
cov
.Inverse(error);
37
if
(error != 0)
LogDebug
(
"RecoVertex/ExtendedPerigeeTrajectoryError"
)
38
<<
"unable to invert covariance matrix\n"
;
39
weightAvailable
=
true
;
40
}
41
return
weight
;
42
}
43
44
private
:
45
AlgebraicSymMatrix66
cov
;
46
mutable
AlgebraicSymMatrix66
weight
;
47
mutable
bool
weightAvailable
;
48
mutable
bool
vl
;
49
};
50
#endif
LogDebug
#define LogDebug(id)
Definition:
MessageLogger.h:601
MessageLogger.h
ExtendedPerigeeTrajectoryError::covarianceMatrix
const AlgebraicSymMatrix66 & covarianceMatrix() const
Definition:
ExtendedPerigeeTrajectoryError.h:29
relativeConstraints.error
error
Definition:
relativeConstraints.py:52
ExtendedPerigeeTrajectoryError::ExtendedPerigeeTrajectoryError
ExtendedPerigeeTrajectoryError()
Definition:
ExtendedPerigeeTrajectoryError.h:10
ExtendedPerigeeTrajectoryError::weightIsAvailable
bool weightIsAvailable() const
Definition:
ExtendedPerigeeTrajectoryError.h:26
funct::false
false
Definition:
Factorize.h:35
ExtendedPerigeeTrajectoryError::ExtendedPerigeeTrajectoryError
ExtendedPerigeeTrajectoryError(const AlgebraicSymMatrix66 &covariance)
Definition:
ExtendedPerigeeTrajectoryError.h:13
AlgebraicSymMatrix66
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
Definition:
AlgebraicROOTObjects.h:24
weight
Definition:
weight.py:1
ExtendedPerigeeTrajectoryError::weightAvailable
bool weightAvailable
Definition:
ExtendedPerigeeTrajectoryError.h:47
funct::true
true
Definition:
Factorize.h:184
ExtendedPerigeeTrajectoryError
Definition:
ExtendedPerigeeTrajectoryError.h:7
ExtendedPerigeeTrajectoryError::cov
AlgebraicSymMatrix66 cov
Definition:
ExtendedPerigeeTrajectoryError.h:45
ExtendedPerigeeTrajectoryError::weight
AlgebraicSymMatrix66 weight
Definition:
ExtendedPerigeeTrajectoryError.h:46
AlgebraicObjects.h
ExtendedPerigeeTrajectoryError::weightMatrix
const AlgebraicSymMatrix66 & weightMatrix(int &error) const
Definition:
ExtendedPerigeeTrajectoryError.h:32
ExtendedPerigeeTrajectoryError::isValid
bool isValid() const
Definition:
ExtendedPerigeeTrajectoryError.h:23
ExtendedPerigeeTrajectoryError::vl
bool vl
Definition:
ExtendedPerigeeTrajectoryError.h:48
Generated for CMSSW Reference Manual by
1.8.11