class description - source file - inheritance tree

class Magnet : public Detector

Magnet Magnet(char* name, Vector& field, Vector& dimension) Magnet Magnet(Magnet&) void ~Magnet() TClass* Class() virtual int Interact(Particle& p, Vector& r, double& t) virtual TClass* IsA() const virtual void Print(ostream& o) const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

Vector fField Magnetetic field vector

Class Description

 Class Magnet

 Specific Detector class. Represents a magnet in mini-geant. A
 Magnet object is initialized with a name, a field Vector, and a
 geomerty (a Vector object).

 Developed as a part of the HEHI C++ programming course.

Magnet(char* name, Vector& field, Vector& dimension) : Detector(name, dimension,0)
 Magnet constructor ctor. Sets various fields in the
 object. Please notice the message to the Detector Abstract Base

 This detector doesn't have any sub-detectors.

Interact(Particle& particle, Vector& r, double& t)
 Magnet::Act() method. This method takes a partcle as input,
 operates on it according to the field of the Magnet and momentum
 of the Particle. It returns non-zero value, in case the the
 particle is spiraling inside the Magnet.

Print(ostream& o) const

Inline Functions

            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
             Magnet Magnet(Magnet&)
               void ~Magnet()

Author: cholm $
Last update: 1999/11/25 15:58:47 $

ROOT page - Home page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.