Main Page
Namespaces
Classes
Package Documentation
MagneticField
UniformEngine
src
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
:
public
MagneticField
{
15
public
:
16
18
UniformMagneticField
(
double
value
);
19
20
virtual
~UniformMagneticField
() {}
21
22
GlobalVector
inTesla
(
const
GlobalPoint
&
gp
)
const
;
23
24
GlobalVector
inTeslaUnchecked
(
const
GlobalPoint
& gp)
const
;
25
26
bool
isDefined
(
const
GlobalPoint
& gp)
const
{
return
true
;}
27
28
private
:
29
GlobalVector
theField
;
30
};
31
32
#endif
Vector3DBase< float, GlobalTag >
MagneticField
Definition:
MagneticField.h:17
UniformMagneticField::theField
GlobalVector theField
Definition:
UniformMagneticField.h:29
MagneticField.h
runTauDisplay.gp
gp
Definition:
runTauDisplay.py:428
UniformMagneticField::inTesla
GlobalVector inTesla(const GlobalPoint &gp) const
Field value ad specified global point, in Tesla.
Definition:
UniformMagneticField.cc:15
UniformMagneticField::inTeslaUnchecked
GlobalVector inTeslaUnchecked(const GlobalPoint &gp) const
Definition:
UniformMagneticField.cc:19
value
Definition:
value.py:1
UniformMagneticField
Definition:
UniformMagneticField.h:14
Point3DBase< float, GlobalTag >
UniformMagneticField::isDefined
bool isDefined(const GlobalPoint &gp) const
True if the point is within the region where the concrete field.
Definition:
UniformMagneticField.h:26
UniformMagneticField::UniformMagneticField
UniformMagneticField(double value)
Construct passing the Z field component in Tesla.
Definition:
UniformMagneticField.cc:11
UniformMagneticField::~UniformMagneticField
virtual ~UniformMagneticField()
Definition:
UniformMagneticField.h:20
Generated for CMSSW Reference Manual by
1.8.11