ATLAS Offline Software
Loading...
Searching...
No Matches
JacobianCotThetaPtToThetaP.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
6// JacobianCotThetaPtToThetaP, (c) ATLAS Detector software
8
10#include <cmath>
11
12Trk::JacobianCotThetaPtToThetaP::JacobianCotThetaPtToThetaP(const double cotTheta, const double qpT):
13 AmgMatrix(5,5)()
14{
15
16 // initialize to identify matrix
17 this->setIdentity();
18
19 double onePlusCotTSq = 1 + cotTheta*cotTheta;
20 (*this)(3,3) = - 1./onePlusCotTSq;
21 (*this)(4,3) = -cotTheta/(onePlusCotTSq*std::sqrt(onePlusCotTSq)) * qpT;
22 (*this)(4,4) = 1./std::sqrt(onePlusCotTSq);
23}
24
25
26
27
28
JacobianCotThetaPtToThetaP(const double cotTheta, const double qpT)
AmgMatrix(3, 3) NeutralParticleParameterCalculator