StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMagF.h
1 #ifndef StMagF_H
2 #define StMagF_H
3 #include "Rtypes.h"
4 #include "TNamed.h"
5 #include "StarMagField/StarMagField.h"
6 #if !defined(__CINT__) && !defined(__CLING__)
7 #include "StarCallf77.h"
8 #endif
9 class StMagF : public TNamed {
10 public:
11  static void Agufld(float *x, float *b);
12 ClassDef(StMagF,0) //mmmm
13 };
14 inline void StMagF::Agufld(float *x, float *b) {
15  static StarMagField *mag = StarMagField::Instance();
16  double xx[3]={x[0],x[1],x[2]}, bb[3];
17  mag->BField(xx,bb);
18  b[0]=bb[0]; b[1]=bb[1]; b[2]=bb[2];
19 }
20 #endif
Definition: StMagF.h:9