ATLAS Offline Software
Loading...
Searching...
No Matches
cfPEst.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8namespace Trk {
9
10void cfpest(int ntrk, double *xyz, long int *ich, double (*parst)[5],
11 double (*parf)[3]) {
12 /* --------------------------------------------------- */
13 /* Subroutine for primary estimation of Theta,Phi */
14 /* and 1/R at point XYZ if they aren't known */
15 /* Author: V.Kostyukhin */
16 /* --------------------------------------------------- */
17
18 double partmp[5];
19 double Ref0[3] = {0., 0., 0.};
20
21 for (int i = 0; i < ntrk; ++i) {
22
23 long int TrkID = i;
24 Trk::vkalPropagator::Propagate(TrkID, ich[i], &parst[i][0], nullptr, Ref0,
25 xyz, partmp, nullptr);
26
27 parf[i][0] = partmp[2];
28 parf[i][1] = partmp[3];
29 parf[i][2] = partmp[4];
30 }
31}
32
33} // namespace Trk
#define xyz
static void Propagate(long int TrkID, long int Charge, double *ParOld, double *CovOld, double *RefStart, double *RefEnd, double *ParNew, double *CovNew, VKalVrtControlBase *FitControl=0)
Ensure that the ATLAS eigen extensions are properly loaded.
void cfpest(int ntrk, double *xyz, long int *ich, double(*parst)[5], double(*parf)[3])
Definition cfPEst.cxx:10