Class Reference for E1039 Core & Analysis Software
GFField.h
Go to the documentation of this file.
1 #ifndef _GFFIELD_H
2 #define _GFFIELD_H
3 
4 #include <GenFit/AbsBField.h>
5 #include <TVector3.h>
6 
7 #include <phfield/PHField.h>
8 
9 namespace SQGenFit
10 {
11 class GFField: public genfit::AbsBField
12 {
13 public:
14  GFField(const PHField* field);
15  virtual ~GFField() {}
16 
17  TVector3 get(const TVector3& pos) const;
18  void get(const double& posX, const double& posY, const double& posZ, double& Bx, double& By, double& Bz) const;
19 
20  void setScale(double scale = 1.) { _scale = scale; }
21  void setOffset(double offset = 0.) { _offset = offset; }
22  void disable() { _disable = true; }
23 
24 private:
25  const PHField* _field;
26  double _scale;
27  double _offset;
28  bool _disable;
29 
30 };
31 }
32 
33 #endif
transient DST object for field storage and access
Definition: PHField.h:14
TVector3 get(const TVector3 &pos) const
Definition: GFField.cxx:18
void disable()
Definition: GFField.h:22
void setScale(double scale=1.)
Definition: GFField.h:20
GFField(const PHField *field)
Definition: GFField.cxx:9
void setOffset(double offset=0.)
Definition: GFField.h:21
virtual ~GFField()
Definition: GFField.h:15