Main Page
Namespaces
Classes
Package Documentation
TrackPropagation
RungeKutta
src
RKLocalFieldProvider.cc
Go to the documentation of this file.
1
#include "
RKLocalFieldProvider.h
"
2
#include "
MagneticField/Engine/interface/MagneticField.h
"
3
#include "
MagneticField/VolumeGeometry/interface/MagVolume.h
"
4
#include "
FWCore/Utilities/interface/Likely.h
"
5
6
RKLocalFieldProvider::RKLocalFieldProvider
(
const
MagVolume
& vol) :
7
theVolume( vol), theFrame(vol), transform_(
false
) {}
8
9
RKLocalFieldProvider::RKLocalFieldProvider
(
const
MagVolume
& vol,
const
Frame
&
frame
) :
10
theVolume
( vol),
theFrame
(frame),
transform_
(
true
) {}
11
12
RKLocalFieldProvider::Vector
RKLocalFieldProvider::inTesla
(
const
LocalPoint
& lp)
const
13
{
14
if
UNLIKELY
(
transform_
) {
15
LocalPoint
vlp(
theVolume
.
toLocal
(
theFrame
.
toGlobal
( lp)));
16
return
theFrame
.
toLocal
(
theVolume
.
toGlobal
(
theVolume
.
fieldInTesla
( vlp))).
basicVector
();
17
}
18
return
theVolume
.
fieldInTesla
( lp).
basicVector
();
19
20
}
21
frame
Definition:
G4muDarkBremsstrahlungModel.h:27
funct::false
false
Definition:
Factorize.h:36
RKLocalFieldProvider.h
MagVolume.h
RKLocalFieldProvider::transform_
bool transform_
Definition:
RKLocalFieldProvider.h:45
MagneticField.h
funct::true
true
Definition:
Factorize.h:185
MagVolume
Definition:
MagVolume.h:13
Basic3DVector
Definition:
extBasic3DVector.h:24
GloballyPositioned::toLocal
LocalPoint toLocal(const GlobalPoint &gp) const
Definition:
GloballyPositioned.h:125
RKLocalFieldProvider::RKLocalFieldProvider
RKLocalFieldProvider(const MagVolume &vol)
Local field access to the MagVolume field, in the MagVolume frame.
Definition:
RKLocalFieldProvider.cc:6
GloballyPositioned::toGlobal
GlobalPoint toGlobal(const LocalPoint &lp) const
Definition:
GloballyPositioned.h:89
GloballyPositioned< float >
MagVolume::fieldInTesla
LocalVector fieldInTesla(const LocalPoint &lp) const
Definition:
MagVolume.cc:11
Point3DBase< float, LocalTag >
RKLocalFieldProvider::theVolume
const MagVolume & theVolume
Definition:
RKLocalFieldProvider.h:43
UNLIKELY
#define UNLIKELY(x)
Definition:
Likely.h:21
Likely.h
PV3DBase::basicVector
const BasicVectorType & basicVector() const
Definition:
PV3DBase.h:56
RKLocalFieldProvider::theFrame
const Frame & theFrame
Definition:
RKLocalFieldProvider.h:44
RKLocalFieldProvider::inTesla
Vector inTesla(const LocalPoint &lp) const
the argument lp is in the local frame specified in the constructor
Definition:
RKLocalFieldProvider.cc:12
Generated for CMSSW Reference Manual by
1.8.11