VMC Examples Version 6.6
Loading...
Searching...
No Matches
A01LocalMagField.h
Go to the documentation of this file.
1#ifndef A01_LOCAL_MAG_FIELD_H
2#define A01_LOCAL_MAG_FIELD_H
3
4//------------------------------------------------
5// The Virtual Monte Carlo examples
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
13/// \file A01LocalMagField.h
14/// \brief Definition of the A01LocalMagField class
15///
16/// Geant4 ExampleA01 adapted to Virtual Monte Carlo
17///
18/// \date 12/05/2012
19/// \author I. Hrivnacova; IPN, Orsay
20
21#include <TVirtualMagField.h>
22
23/// \ingroup A01
24/// \brief Definition of a uniform magnetic field within a given region
25///
26/// \date
27/// \author I. Hrivnacova; IPN, Orsay
28
30{
31 public:
32 A01LocalMagField(Double_t Bx, Double_t By, Double_t Bz);
34 virtual ~A01LocalMagField();
35
36 virtual void Field(const Double_t* /*x*/, Double_t* B);
37
38 private:
41
42 Double_t fB[3]; ///< Magnetic field vector
43
44 ClassDef(A01LocalMagField, 1) // Uniform magnetic field
45};
46
47#endif // A01_LOCAL_MAG_FIELD_H
Definition of a uniform magnetic field within a given region.
virtual void Field(const Double_t *, Double_t *B)
Double_t fB[3]
Magnetic field vector.
A01LocalMagField & operator=(const A01LocalMagField &)
A01LocalMagField(const A01LocalMagField &)