Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4MagneticField.h
Go to the documentation of this file.
1#ifndef TG4_MAGNETIC_FIELD_H
2#define TG4_MAGNETIC_FIELD_H
3
4//-------------------------------------------------
5// The Geant4 Virtual Monte Carlo package
6// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7// All rights reserved.
8//
9// For the licensing terms see geant4_vmc/LICENSE.
10// Contact: root-vmc@cern.ch
11//-------------------------------------------------
12
17
18#include <G4MagneticField.hh>
19#include <globals.hh>
20
21class TVirtualMagField;
22
27
29{
30 public:
31 TG4MagneticField(TVirtualMagField* magField);
32 virtual ~TG4MagneticField();
33
34 virtual void GetFieldValue(const G4double point[3], G4double* bfield) const;
35
36 virtual void PrintStatistics() const {}
37
38 protected:
39 // data
41 TVirtualMagField* fVirtualMagField;
42};
43
44#endif // TG4_MAGNETIC_FIELD_H
The magnetic field defined via TVirtualMagField.
TVirtualMagField * fVirtualMagField
The associated TGeo magnetic field.
virtual void GetFieldValue(const G4double point[3], G4double *bfield) const
virtual void PrintStatistics() const
TG4MagneticField(TVirtualMagField *magField)