Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
PhysicsAnalysis
HiggsPhys
Run2
HZZ
Tools
ZMassConstraint
Root
ConstraintFitInput.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// A C++ implementation of Mass constraint fitting
7
// 23/09/2006
8
// K. Nikolopoulos
9
// --- * --- * --- * --- * ---* --- * --- * --- * ---
10
//
11
//
12
//
13
//
14
// #include "ZMassConstraint/ConstraintFitInput.h"
15
16
// ZMassConstraint::ConstraintFitInput::ConstraintFitInput():
17
// m_isOK(true)
18
// {
19
// }
20
21
// void ZMassConstraint::ConstraintFitInput::addConstituent_FourVector_d0z0PhiThetaP(const TLorentzVector& vector,
22
// const AmgMatrix(5,5)& covar,
23
// bool isOK)
24
// {
25
// m_particles.push_back(vector);
26
// m_covariances.push_back(covar);
27
// if (m_isOK) m_isOK = isOK; // do not reset isOK if it has already been set to false!
28
29
// //going from d0,z0,phi,theta,P --> d0,z0,px,py,pz
30
// double phi = vector.Phi();
31
// double theta = vector.Theta();
32
// double P = vector.P();
33
// //std::cout << ":::::L \t"<<P<<"\t"<< phi<<"\t"<<theta<<std::endl;
34
// AmgMatrix(5,5) jacobian;
35
// jacobian.setZero();
36
// jacobian(0,0) = 1.;
37
// jacobian(1,1) = 1.;
38
// jacobian(2,2) = -P * TMath::Sin(theta) * TMath::Sin(phi);
39
// jacobian(2,3) = P * TMath::Sin(theta) * TMath::Cos(phi);
40
// jacobian(3,2) = P * TMath::Cos(theta) * TMath::Cos(phi);
41
// jacobian(3,3) = P * TMath::Cos(theta) * TMath::Sin(phi);
42
// jacobian(3,4) = -P * TMath::Sin(theta);
43
// jacobian(4,2) = TMath::Sin(theta) * TMath::Cos(phi);
44
// jacobian(4,3) = TMath::Sin(theta) * TMath::Sin(phi);
45
// jacobian(4,4) = TMath::Cos(theta);
46
47
// AmgMatrix(5,5) newcovariance = jacobian.transpose() * covar * jacobian;
48
// m_cartCovariances.push_back(newcovariance);
49
50
// // std::cout << "initial\n"<< covar << "final \n" << newcovariance << "jac\n"
51
// // << jacobian << std::endl;
52
53
// }
54
55
56
57
Generated on Sat Apr 5 2025 21:08:52 for ATLAS Offline Software by
1.8.18