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
E02
include
Ex02MagField.h
Go to the documentation of this file.
1
#ifndef EX02_MAG_FIELD_H
2
#define EX02_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 Ex02MagField.h
14
/// \brief Definition of the Ex02MagField class
15
///
16
/// Geant4 ExampleN02 adapted to Virtual Monte Carlo
17
///
18
/// \date 18/09/2009
19
/// \author I. Hrivnacova; IPN, Orsay
20
21
#include <TVirtualMagField.h>
22
23
/// \ingroup E02
24
/// \brief Definition of a uniform magnetic field
25
///
26
/// This class demonstrates definition of a user magnetic field
27
/// via the TVirtualMagField interface.
28
/// In case of a uniform magnetic field, it is also possible to use
29
/// directly the TGeoUniformMagField class in the VMC application.
30
///
31
/// \date
32
/// \author I. Hrivnacova; IPN, Orsay
33
34
class
Ex02MagField
:
public
TVirtualMagField
35
{
36
public
:
37
Ex02MagField
(Double_t Bx, Double_t By, Double_t Bz);
38
Ex02MagField
();
39
virtual
~Ex02MagField
();
40
41
virtual
void
Field
(
const
Double_t* x, Double_t* B);
42
43
private
:
44
Ex02MagField
(
const
Ex02MagField
&);
45
Ex02MagField
&
operator=
(
const
Ex02MagField
&);
46
47
Double_t
fB
[3];
///< Magnetic field vector
48
49
ClassDef(
Ex02MagField
, 1)
// Uniform magnetic field
50
};
34
class
Ex02MagField
:
public
TVirtualMagField
{
…
};
51
52
#endif
// EX02_MAG_FIELD_H
Ex02MagField::Field
virtual void Field(const Double_t *x, Double_t *B)
Definition
Ex02MagField.cxx:53
Ex02MagField::fB
Double_t fB[3]
Magnetic field vector.
Definition
Ex02MagField.h:47
Ex02MagField::Ex02MagField
Ex02MagField(const Ex02MagField &)
Ex02MagField::operator=
Ex02MagField & operator=(const Ex02MagField &)
Ex02MagField::Ex02MagField
Ex02MagField(Double_t Bx, Double_t By, Double_t Bz)
Definition
Ex02MagField.cxx:24
Ex02MagField::Ex02MagField
Ex02MagField()
Definition
Ex02MagField.cxx:38
Ex02MagField::~Ex02MagField
virtual ~Ex02MagField()
Definition
Ex02MagField.cxx:47
TVirtualMagField
Generated on Tue Apr 1 2025 13:04:57 for VMC Examples by
1.13.2