Geant4
10.02.p03
F04FocusSolenoid.hh
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
// $Id: F04FocusSolenoid.hh 68021 2013-03-13 13:36:07Z gcosmo $
27
//
30
//
31
32
#ifndef F04FocusSolenoid_h
33
#define F04FocusSolenoid_h 1
34
35
#include "
G4LogicalVolume.hh
"
36
37
#include "
F04SimpleSolenoid.hh
"
38
39
// F04FocusSolenoid implements a solenoid magnet with an increased
40
// cylindrical magnetic field in +/- z-direction (or half focusing)
41
42
class
F04FocusSolenoid
:
public
F04SimpleSolenoid
43
{
44
public
:
45
47
F04FocusSolenoid
(
G4double
,
G4double
,
G4double
,
48
G4LogicalVolume
*,
G4ThreeVector
);
49
51
virtual
~F04FocusSolenoid
() {}
52
54
void
SetHalf
(
G4bool
h) {
fHalf
= h; }
55
58
virtual
void
AddFieldValue
(
const
G4double
point[4],
G4double
field[6])
const
;
59
60
private
:
61
62
G4bool
fHalf
;
63
64
G4double
fB1
;
65
G4double
fB2
;
66
67
};
68
69
#endif
CLHEP::Hep3Vector
Definition:
ThreeVector.h:41
F04FocusSolenoid
Definition:
F04FocusSolenoid.hh:42
F04FocusSolenoid::fB1
G4double fB1
Definition:
F04FocusSolenoid.hh:64
F04FocusSolenoid::~F04FocusSolenoid
virtual ~F04FocusSolenoid()
Destructor.
Definition:
F04FocusSolenoid.hh:51
F04FocusSolenoid::AddFieldValue
virtual void AddFieldValue(const G4double point[4], G4double field[6]) const
Definition:
F04FocusSolenoid.cc:55
F04FocusSolenoid::fB2
G4double fB2
Definition:
F04FocusSolenoid.hh:65
G4bool
bool G4bool
Definition:
G4Types.hh:79
G4LogicalVolume
Definition:
G4LogicalVolume.hh:189
F04FocusSolenoid::SetHalf
void SetHalf(G4bool h)
Set F04FocusSolenoid to only half-focusing (default negative z)
Definition:
F04FocusSolenoid.hh:54
G4LogicalVolume.hh
F04FocusSolenoid::fHalf
G4bool fHalf
Definition:
F04FocusSolenoid.hh:62
F04SimpleSolenoid.hh
Definition of the F04SimpleSolenoid class.
F04FocusSolenoid::F04FocusSolenoid
F04FocusSolenoid(G4double, G4double, G4double, G4LogicalVolume *, G4ThreeVector)
Default constructor.
Definition:
F04FocusSolenoid.cc:43
G4double
double G4double
Definition:
G4Types.hh:76
F04SimpleSolenoid
Definition:
F04SimpleSolenoid.hh:44
Geant4
Geant4.10.02.p03
examples
extended
field
field04
include
F04FocusSolenoid.hh
Generated by
1.8.13