VMC Examples
Version 6.6
Loading...
Searching...
No Matches
examples
A01
include
A01MagField.h
Go to the documentation of this file.
1
#ifndef A01_MAG_FIELD_H
2
#define A01_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 A01MagField.h
14
/// \brief Definition of the A01MagField 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
A01MagField
:
public
TVirtualMagField
30
{
31
public
:
32
A01MagField
(Double_t Bx, Double_t By, Double_t Bz);
33
A01MagField
();
34
virtual
~A01MagField
();
35
36
virtual
void
Field
(
const
Double_t*
/*x*/
, Double_t* B);
37
38
private
:
39
A01MagField
(
const
A01MagField
&);
40
A01MagField
&
operator=
(
const
A01MagField
&);
41
42
Double_t
fB
[3];
///< Magnetic field vector
43
44
ClassDef(
A01MagField
, 1)
// Uniform magnetic field
45
};
46
47
#endif
// A01_MAG_FIELD_H
A01MagField
Definition of a uniform magnetic field within a given region.
Definition
A01MagField.h:30
A01MagField::operator=
A01MagField & operator=(const A01MagField &)
A01MagField::Field
virtual void Field(const Double_t *, Double_t *B)
Definition
A01MagField.cxx:55
A01MagField::A01MagField
A01MagField(const A01MagField &)
A01MagField::fB
Double_t fB[3]
Magnetic field vector.
Definition
A01MagField.h:42
A01MagField::A01MagField
A01MagField()
Definition
A01MagField.cxx:40
A01MagField::~A01MagField
virtual ~A01MagField()
Definition
A01MagField.cxx:49
TVirtualMagField
Generated on Thu Oct 17 2024 08:29:51 for VMC Examples by
1.12.0