ATLAS Offline Software
Loading...
Searching...
No Matches
P5Jacobiand0z0PhiThetaqOverP2d0z0PhiEtaP.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
7#include <cmath>
8#include <algorithm>
9
11 CLHEP::HepMatrix(5,5,1)
12{
13
14 double sinp = sin(phi);
15
16 (*this)[3][0] = 0.; // deta/dd0
17 (*this)[3][1] = 0.; // deta/dz0
18 (*this)[3][2] = 0.; // deta/dphi
19 (*this)[3][3] =-1*(1./sinp); // deta/dtheta
20 (*this)[3][4] = 0.; // deta/d(q/p)
21
22 (*this)[4][0] = 0.; // dp/dd0
23 (*this)[4][1] = 0.; // dp/dz0
24 (*this)[4][2] = 0.; // dp/dphi
25 (*this)[4][3] = 0.; // dp/theeta
26 (*this)[4][4] = -1*charge*(momentum*momentum); // dp/d(q/p)
27
28}
Scalar phi() const
phi method
double charge(const T &p)
Definition AtlasPID.h:997
P5Jacobiand0z0PhiThetaqOverP2d0z0PhiEtaP(const double phi, const int charge, const double momentum)