Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
MagneticField
Engine
src
MagneticField.cc
Go to the documentation of this file.
1
6
#include "
MagneticField/Engine/interface/MagneticField.h
"
7
8
MagneticField::MagneticField
() =
default
;
9
10
MagneticField::MagneticField
(
const
MagneticField
& orig) =
default
;
11
12
MagneticField::~MagneticField
() =
default
;
13
14
void
MagneticField::setNominalValue
() {
15
auto
const
at0z =
inTesla
(
GlobalPoint
(0.
f
, 0.
f
, 0.
f
)).
z
();
16
theNominalValue
= int(at0z * 10.
f
+ 0.5
f
);
17
theInverseBzAtOriginInGeV
= 1.f / (at0z * 2.99792458e-3
f
);
18
}
MagneticField::theInverseBzAtOriginInGeV
float theInverseBzAtOriginInGeV
Definition:
MagneticField.h:61
MagneticField::~MagneticField
virtual ~MagneticField()
MagneticField::inTesla
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
GlobalPoint
Global3DPoint GlobalPoint
Definition:
GlobalPoint.h:10
MagneticField
Definition:
MagneticField.h:19
MagneticField.h
PV3DBase::z
T z() const
Definition:
PV3DBase.h:61
MagneticField::theNominalValue
int theNominalValue
Definition:
MagneticField.h:60
MagneticField::setNominalValue
void setNominalValue()
Definition:
MagneticField.cc:14
MagneticField::MagneticField
MagneticField()
validate-o2o-wbm.f
tuple f
Definition:
validate-o2o-wbm.py:27
Generated for CMSSW Reference Manual by
1.8.5