EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PndGenfitField.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PndGenfitField.cxx
1 #include "PndGenfitField.h"
2 #include "FairRunAna.h"
3 #include "FairField.h"
4 
6 {
7 }
8 
9 TVector3 PndGenfitField::get(const TVector3& pos) const
10 {
11  double x[3] = {pos.X(), pos.Y(), pos.Z()};
12  double B[3] = {0,0,0};
13  FairRunAna::Instance()->GetField()->Field(x,B);
14  return TVector3(B[0], B[1], B[2]);
15 }