CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
LocalMagneticField Class Referencefinal

#include <LocalMagneticField.h>

Inheritance diagram for LocalMagneticField:
MagneticField

Public Member Functions

GlobalVector inTesla (const GlobalPoint &gp) const override
 Field value ad specified global point, in Tesla. More...
 
 LocalMagneticField (double value)
 Construct passing the Z field component in Tesla. More...
 
 ~LocalMagneticField () override
 
- Public Member Functions inherited from MagneticField
virtual MagneticFieldclone () const
 
GlobalVector inInverseGeV (const GlobalPoint &gp) const
 Field value ad specified global point, in 1/Gev. More...
 
GlobalVector inKGauss (const GlobalPoint &gp) const
 Field value ad specified global point, in KGauss. More...
 
virtual GlobalVector inTeslaUnchecked (const GlobalPoint &gp) const
 
float inverseBzAtOriginInGeV () const
 The inverse of field z component for this map in GeV. More...
 
virtual bool isDefined (const GlobalPoint &) const
 True if the point is within the region where the concrete field. More...
 
 MagneticField ()
 
 MagneticField (const MagneticField &orig)
 
int nominalValue () const
 The nominal field value for this map in kGauss. More...
 
virtual ~MagneticField ()
 

Private Attributes

GlobalVector theField
 

Additional Inherited Members

- Protected Member Functions inherited from MagneticField
void setNominalValue ()
 

Detailed Description

A MagneticField engine that returns a constant programmable field value.

Date:
2006/05/31 13:43:26
Revision:
1.1
Author
Patrick Janot, copied from N. Amapane - CERN

Definition at line 15 of file LocalMagneticField.h.

Constructor & Destructor Documentation

LocalMagneticField::LocalMagneticField ( double  value)

Construct passing the Z field component in Tesla.

Definition at line 10 of file LocalMagneticField.cc.

References MagneticField::setNominalValue().

10 : theField(0., 0., value) { setNominalValue(); }
void setNominalValue()
LocalMagneticField::~LocalMagneticField ( )
inlineoverride

Definition at line 20 of file LocalMagneticField.h.

20 {}

Member Function Documentation

GlobalVector LocalMagneticField::inTesla ( const GlobalPoint gp) const
overridevirtual

Field value ad specified global point, in Tesla.

Implements MagneticField.

Definition at line 12 of file LocalMagneticField.cc.

References theField.

12 { return theField; }

Member Data Documentation

GlobalVector LocalMagneticField::theField
private

Definition at line 25 of file LocalMagneticField.h.

Referenced by inTesla().