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  public:
11  Field(const MagneticField *f, double d);
12  ~Field() override;
13  void GetFieldValue(const G4double p[4], G4double b[3]) const override;
14 
15  private:
17  double theDelta;
18 
19  mutable double oldx[3];
20  mutable double oldb[3];
21  };
22 }; // namespace sim
23 #endif
const MagneticField * theCMSMagneticField
Definition: Field.h:16
void GetFieldValue(const G4double p[4], G4double b[3]) const override
Definition: Field.cc:19
double oldb[3]
Definition: Field.h:20
double f[11][100]
d
Definition: ztail.py:151
~Field() override
Definition: Field.cc:17
double b
Definition: hdecay.h:118
double theDelta
Definition: Field.h:17
double oldx[3]
Definition: Field.h:19
Field(const MagneticField *f, double d)
Definition: Field.cc:10