CMS 3D CMS Logo

MagVolume.cc

Go to the documentation of this file.
00001 // #include "Utilities/Configuration/interface/Architecture.h"
00002 
00003 #include "MagneticField/VolumeGeometry/interface/MagVolume.h"
00004 #include "MagneticField/VolumeGeometry/interface/MagneticFieldProvider.h"
00005 
00006 MagVolume::LocalVector MagVolume::fieldInTesla( const LocalPoint& lp) const 
00007 {
00008   return theProvider->valueInTesla(lp)*theScalingFactor;
00009 }
00010 
00011 MagVolume::GlobalVector MagVolume::fieldInTesla( const GlobalPoint& gp) const
00012 {
00013   return toGlobal( theProvider->valueInTesla( toLocal(gp)))*theScalingFactor;
00014 }

Generated on Tue Jun 9 17:40:38 2009 for CMSSW by  doxygen 1.5.4