VMC Examples
Version 6.6
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
};
46
47
#endif
// A01_LOCAL_MAG_FIELD_H
A01LocalMagField
Definition of a uniform magnetic field within a given region.
Definition
A01LocalMagField.h:30
A01LocalMagField::~A01LocalMagField
virtual ~A01LocalMagField()
Definition
A01LocalMagField.cxx:49
A01LocalMagField::Field
virtual void Field(const Double_t *, Double_t *B)
Definition
A01LocalMagField.cxx:55
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 Thu Oct 17 2024 08:29:51 for VMC Examples by
1.12.0