Class Reference for E1039 Core & Analysis Software
PHField.h
Go to the documentation of this file.
1 #ifndef __PHFIELD_H__
2 #define __PHFIELD_H__
3 
4 #include <phool/PHObject.h>
5 
6 // units of this class. To convert internal value to Geant4/CLHEP units for fast access
7 //#include <CLHEP/Units/SystemOfUnits.h>
8 #include <Geant4/G4SystemOfUnits.hh>
9 
10 #include <vector>
11 
13 class PHField : public PHObject
14 {
15  public:
17  explicit PHField(const int verb = 0)
18  : verb_(verb)
19  {
20  }
21  virtual ~PHField() {}
26  virtual void GetFieldValue(
27  const double Point[4],
28  double *Bfield) const = 0;
29 
30  virtual void identify(std::ostream& os = std::cout) const {std::cout << "I am a PHField object!" << std::endl;}
31 
32  void Verbosity(const int i) { verb_ = i; }
33  protected:
34  unsigned verb_;
35 
36 };
37 
38 #endif
transient DST object for field storage and access
Definition: PHField.h:14
PHField(const int verb=0)
constructor
Definition: PHField.h:17
virtual ~PHField()
Definition: PHField.h:21
unsigned verb_
Definition: PHField.h:34
virtual void identify(std::ostream &os=std::cout) const
Definition: PHField.h:30
void Verbosity(const int i)
Definition: PHField.h:32
virtual void GetFieldValue(const double Point[4], double *Bfield) const =0