CMS 3D CMS Logo

Public Member Functions | Private Attributes

LocalMagneticField Class Reference

#include <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.

  : theField(0.,0.,value) {}
virtual LocalMagneticField::~LocalMagneticField ( ) [inline, virtual]

Definition at line 22 of file LocalMagneticField.h.

{}

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.

                                                                     {
  return theField;
}

Member Data Documentation

Definition at line 27 of file LocalMagneticField.h.

Referenced by inTesla().