VMC Examples
Version 6.7
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
1
2
3
6
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
~
Functions
1
2
3
6
a
b
c
d
e
f
g
h
i
m
o
p
r
s
t
u
~
Variables
c
f
n
Enumerations
Enumerator
Files
File List
File Members
All
3
b
c
e
f
g
h
i
l
m
n
o
r
s
t
u
v
Functions
b
c
g
h
i
l
m
n
o
r
s
t
u
v
Variables
Typedefs
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Modules
Pages
Loading...
Searching...
No Matches
examples
A01
include
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
29
class
A01LocalMagField
:
public
TVirtualMagField
30
{
31
public
:
32
A01LocalMagField
(Double_t Bx, Double_t By, Double_t Bz);
33
A01LocalMagField
();
34
virtual
~A01LocalMagField
();
35
36
virtual
void
Field
(
const
Double_t*
/*x*/
, Double_t* B);
37
38
private
:
39
A01LocalMagField
(
const
A01LocalMagField
&);
40
A01LocalMagField
&
operator=
(
const
A01LocalMagField
&);
41
42
Double_t
fB
[3];
///< Magnetic field vector
43
44
ClassDef(
A01LocalMagField
, 1)
// Uniform magnetic field
45
};
29
class
A01LocalMagField
:
public
TVirtualMagField
{
…
};
46
47
#endif
// A01_LOCAL_MAG_FIELD_H
A01LocalMagField::~A01LocalMagField
virtual ~A01LocalMagField()
Definition
A01LocalMagField.cxx:49
A01LocalMagField::Field
virtual void Field(const Double_t *, Double_t *B)
Definition
A01LocalMagField.cxx:55
A01LocalMagField::A01LocalMagField
A01LocalMagField(Double_t Bx, Double_t By, Double_t Bz)
Definition
A01LocalMagField.cxx:26
A01LocalMagField::fB
Double_t fB[3]
Magnetic field vector.
Definition
A01LocalMagField.h:42
A01LocalMagField::operator=
A01LocalMagField & operator=(const A01LocalMagField &)
A01LocalMagField::A01LocalMagField
A01LocalMagField()
Definition
A01LocalMagField.cxx:40
A01LocalMagField::A01LocalMagField
A01LocalMagField(const A01LocalMagField &)
TVirtualMagField
Generated on Tue Apr 1 2025 13:04:57 for VMC Examples by
1.13.2