CMS 3D CMS Logo

Field.h
Go to the documentation of this file.
1 #ifndef SimG4Core_Field_H
2 #define SimG4Core_Field_H
3 
4 #include "G4MagneticField.hh"
5 
6 class MagneticField;
7 
8 namespace sim {
9  class Field : public G4MagneticField
10  {
11  public:
12  Field(const MagneticField * f, double d);
13  virtual ~Field();
14  virtual void GetFieldValue(const G4double p[4], G4double b[3]) const;
15 
16  private:
18  double theDelta;
19 
20  mutable double oldx[3];
21  mutable double oldb[3];
22  };
23 };
24 #endif
const MagneticField * theCMSMagneticField
Definition: Field.h:17
virtual ~Field()
Definition: Field.cc:20
double oldb[3]
Definition: Field.h:21
double f[11][100]
Definition: RunManager.h:32
double b
Definition: hdecay.h:120
double theDelta
Definition: Field.h:18
virtual void GetFieldValue(const G4double p[4], G4double b[3]) const
Definition: Field.cc:22
double oldx[3]
Definition: Field.h:20
Field(const MagneticField *f, double d)
Definition: Field.cc:11