AMSDST
Public Member Functions | Protected Attributes | List of all members
myPoint Class Reference

#include <myPoint.h>

Inheritance diagram for myPoint:
myDir

Public Member Functions

 myPoint (float x=0, float y=0, float z=0, bool ignstream=true)
 Constructor.
 
 myPoint (const myPoint &pt, bool ignstream=true)
 Copy constructor.
 
 ~myPoint ()
 Default destructor.
 
void setp (float x=0, float y=0, float z=0)
 
float x () const
 
float y () const
 
float z () const
 
float & operator[] (int i)
 it allows the use of the array notation for an AMSPoint
 
float operator[] (int i) const
 it allow the use of the array notation for an AMSPoint
 
void Print (Option_t *option="") const
 
 ClassDef (myPoint, 5)
 

Protected Attributes

Float_t _x
 
Float_t _y
 
Float_t _z
 

Detailed Description

Definition at line 14 of file myPoint.h.

Constructor & Destructor Documentation

myPoint::myPoint ( float  x = 0,
float  y = 0,
float  z = 0,
bool  ignstream = true 
)

Constructor.

Definition at line 14 of file myPoint.cxx.

References PRINTDEBUG.

myPoint::myPoint ( const myPoint pt,
bool  ignstream = true 
)

Copy constructor.

Definition at line 26 of file myPoint.cxx.

References PRINTDEBUG, x(), y(), and z().

myPoint::~myPoint ( )

Default destructor.

Definition at line 34 of file myPoint.cxx.

References PRINTDEBUG.

Member Function Documentation

myPoint::ClassDef ( myPoint  ,
 
)
float& myPoint::operator[] ( int  i)
inline

it allows the use of the array notation for an AMSPoint

Definition at line 46 of file myPoint.h.

References _x, _y, and _z.

float myPoint::operator[] ( int  i) const
inline

it allow the use of the array notation for an AMSPoint

Definition at line 49 of file myPoint.h.

References _x, _y, and _z.

void myPoint::Print ( Option_t *  option = "") const

Definition at line 72 of file myPoint.cxx.

void myPoint::setp ( float  x = 0,
float  y = 0,
float  z = 0 
)

Definition at line 65 of file myPoint.cxx.

Referenced by myEvent::GetRTIdL1L9().

float myPoint::x ( ) const
inline

Definition at line 41 of file myPoint.h.

References _x.

Referenced by myDir::myDir(), and myPoint().

float myPoint::y ( ) const
inline

Definition at line 42 of file myPoint.h.

References _y.

Referenced by myDir::myDir(), and myPoint().

float myPoint::z ( ) const
inline

Definition at line 43 of file myPoint.h.

References _z.

Referenced by myDir::myDir(), and myPoint().

Member Data Documentation

Float_t myPoint::_x
protected

Definition at line 16 of file myPoint.h.

Referenced by operator[](), and x().

Float_t myPoint::_y
protected

Definition at line 17 of file myPoint.h.

Referenced by operator[](), and y().

Float_t myPoint::_z
protected

Definition at line 18 of file myPoint.h.

Referenced by operator[](), and z().


The documentation for this class was generated from the following files: