Garfield++ 4.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
Heed::absref Class Reference

#include <vec.h>

+ Inheritance diagram for Heed::absref:

Public Member Functions

virtual ~absref ()
 Destructor.
 
virtual void down (const abssyscoor *fasc)
 Convert numbering representation of object to basical system of fasc.
 
virtual void up (const abssyscoor *fasc)
 Convert numbering representation of objects to new system.
 
virtual void turn (const vec &dir, vfloat angle)
 Turn around axis doing via center of coordinate system along dir.
 
virtual void shift (const vec &dir)
 

Detailed Description

Abstract reference, base class for any geometrical vector object. Used for arranging of shift, turn and shange of coordinate system of vector objects. Four functions down(), up(), turn(), and shift() do that by calling of the same functions for any vector objects which are parts of this class. Address of parts lets known by virtual function get_components() which is reloaded in any derivative class. Class vec represents three-vectors and reloads the functions down(), up(), turn() with proper functions manipulating with three-vectors. Function shift() is also reloaded and does nothing for 3-vector vec, since it is assumed that 3-vector is characteristic of direction only, not point in space. We can not shift direction. For this reason, class point representing point in space reloads functions down and up again, and, of course, reloads shift. To make proper shift at switch to coordinate system with shifted center the point::down() and point::up() functions apply point::shift() function after or before vec::down() and vec::up().

Definition at line 83 of file vec.h.

Constructor & Destructor Documentation

◆ ~absref()

virtual Heed::absref::~absref ( )
inlinevirtual

Destructor.

Definition at line 86 of file vec.h.

86{}

Member Function Documentation

◆ down()

void Heed::absref::down ( const abssyscoor fasc)
virtual

Convert numbering representation of object to basical system of fasc.

Reimplemented in Heed::vec, and Heed::point.

Definition at line 43 of file vec.cpp.

43 {
44 if (fasc == NULL) return; // considered to be unchanged
46}
virtual void down(const abssyscoor *fasc)
Convert numbering representation of object to basical system of fasc.
Definition: vec.cpp:43
#define ApplyAnyFunctionToVecElements(func)
Definition: vec.h:157

Referenced by down(), and Heed::manip_absvol::down_absref().

◆ shift()

void Heed::absref::shift ( const vec dir)
virtual

Reimplemented in Heed::vec, and Heed::point.

Definition at line 57 of file vec.cpp.

57 {
59}
virtual void shift(const vec &dir)
Definition: vec.cpp:57

Referenced by shift().

◆ turn()

void Heed::absref::turn ( const vec dir,
vfloat  angle 
)
virtual

Turn around axis doing via center of coordinate system along dir.

Reimplemented in Heed::vec.

Definition at line 53 of file vec.cpp.

53 {
55}
virtual void turn(const vec &dir, vfloat angle)
Turn around axis doing via center of coordinate system along dir.
Definition: vec.cpp:53

Referenced by turn().

◆ up()

void Heed::absref::up ( const abssyscoor fasc)
virtual

Convert numbering representation of objects to new system.

Reimplemented in Heed::vec, and Heed::point.

Definition at line 48 of file vec.cpp.

48 {
49 if (fasc == NULL) return; // considered to be unchanged
51}
virtual void up(const abssyscoor *fasc)
Convert numbering representation of objects to new system.
Definition: vec.cpp:48

Referenced by up(), Heed::manip_absvol::up_absref(), and Heed::straight::vecdistance().


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