ATLAS Offline Software
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 Mon Dec 23 2024 21:08:36 for ATLAS Offline Software by
1.8.18