Main Page
Namespaces
Classes
Package Documentation
MagneticField
UniformEngine
interface
UniformMagneticField.h
Go to the documentation of this file.
1
#ifndef MagneticField_UniformMagneticField_h
2
#define MagneticField_UniformMagneticField_h
3
12
#include "
MagneticField/Engine/interface/MagneticField.h
"
13
14
class
UniformMagneticField
final :
public
MagneticField
{
15
public
:
16
18
UniformMagneticField
(
float
value
) :
theField
(0.
f
,0.
f
,value) {}
19
20
UniformMagneticField
(
GlobalVector
value
) :
theField
(value) {}
21
22
void
set
(
GlobalVector
value
) {
theField
=
value
;}
23
void
set
(
float
value
) {
set
(
GlobalVector
(0.
f
,0.
f
,
value
)); }
24
25
26
virtual
~UniformMagneticField
() {}
27
28
GlobalVector
inTesla
(
const
GlobalPoint
&)
const override
{
return
theField
;}
29
30
GlobalVector
inTeslaUnchecked
(
const
GlobalPoint
&
gp
)
const override
{
return
theField
;}
31
32
bool
isDefined
(
const
GlobalPoint
&
gp
)
const override
{
return
true
;}
33
34
private
:
35
GlobalVector
theField
;
36
};
37
38
#endif
Vector3DBase< float, GlobalTag >
UniformMagneticField::isDefined
bool isDefined(const GlobalPoint &gp) const override
True if the point is within the region where the concrete field.
Definition:
UniformMagneticField.h:32
MagneticField
Definition:
MagneticField.h:17
UniformMagneticField::theField
GlobalVector theField
Definition:
UniformMagneticField.h:35
UniformMagneticField::UniformMagneticField
UniformMagneticField(float value)
Construct passing the Z field component in Tesla.
Definition:
UniformMagneticField.h:18
MagneticField.h
runTauDisplay.gp
gp
Definition:
runTauDisplay.py:428
UniformMagneticField::UniformMagneticField
UniformMagneticField(GlobalVector value)
Definition:
UniformMagneticField.h:20
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
value
Definition:
value.py:1
relativeConstraints.value
value
Definition:
relativeConstraints.py:52
UniformMagneticField
Definition:
UniformMagneticField.h:14
UniformMagneticField::inTesla
GlobalVector inTesla(const GlobalPoint &) const override
Field value ad specified global point, in Tesla.
Definition:
UniformMagneticField.h:28
Point3DBase< float, GlobalTag >
UniformMagneticField::inTeslaUnchecked
GlobalVector inTeslaUnchecked(const GlobalPoint &gp) const override
Definition:
UniformMagneticField.h:30
UniformMagneticField::~UniformMagneticField
virtual ~UniformMagneticField()
Definition:
UniformMagneticField.h:26
GlobalVector
Global3DVector GlobalVector
Definition:
GlobalVector.h:10
Generated for CMSSW Reference Manual by
1.8.11