CMS 3D CMS Logo

LocalMagneticField Class Reference

A MagneticField engine that returns a constant programmable field value. More...

#include <FastSimulation/TrajectoryManager/interface/LocalMagneticField.h>

Inheritance diagram for LocalMagneticField:

MagneticField

List of all members.

Public Member Functions

GlobalVector inTesla (const GlobalPoint &gp) const
 Field value ad specified global point, in Tesla.
 LocalMagneticField (double value)
 Construct passing the Z field component in Tesla.
virtual ~LocalMagneticField ()

Private Attributes

GlobalVector theField


Detailed Description

A MagneticField engine that returns a constant programmable field value.

Date
2007/04/19 14:20:25
Revision
1.1
Author:
Patrick Janot, copied from N. Amapane - CERN

Definition at line 16 of file LocalMagneticField.h.


Constructor & Destructor Documentation

LocalMagneticField::LocalMagneticField ( double  value  ) 

Construct passing the Z field component in Tesla.

Definition at line 11 of file LocalMagneticField.cc.

00012   : theField(0.,0.,value) {}

virtual LocalMagneticField::~LocalMagneticField (  )  [inline, virtual]

Definition at line 22 of file LocalMagneticField.h.

00022 {}


Member Function Documentation

GlobalVector LocalMagneticField::inTesla ( const GlobalPoint gp  )  const [virtual]

Field value ad specified global point, in Tesla.

Implements MagneticField.

Definition at line 15 of file LocalMagneticField.cc.

References theField.

00015                                                                      {
00016   return theField;
00017 }


Member Data Documentation

GlobalVector LocalMagneticField::theField [private]

Definition at line 27 of file LocalMagneticField.h.

Referenced by inTesla().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:27:55 2009 for CMSSW by  doxygen 1.5.4