HYDRA_development_version
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
hgeomvector.cc
Go to the documentation of this file.
1
//*-- AUTHOR : Ilse Koenig
2
//*-- Modified : 16/06/99
3
4
//_HADES_CLASS_DESCRIPTION
5
///////////////////////////////////////////////////////////////////////////////
6
//
7
// HGeomVector
8
//
9
// This class defines a vector with 3 Double_t components.
10
// Instantiations of this class are e.g geometry points and
11
// translation vectors in the geometry transformations.
12
//
13
// All functions and operators are defined inline.
14
//
15
// Constructors:
16
// HGeomVector(Double_t dx=0,Double_t dy=0,Double_t dz=0)
17
// HGeomVector(const HGeomVector& v)
18
//
19
// Access to the components:
20
// void setVector(const Double_t* a);
21
// void setX(const Double_t a)
22
// void setY(const Double_t a)
23
// void setZ(const Double_t a)
24
// Double_t getX() const
25
// Double_t getY() const
26
// Double_t getZ() const
27
// Double_t operator() (const Int_t i) const;
28
//
29
// Check for the size of all components:
30
// Bool_t operator < (const Double_t a)
31
// Bool_t operator <= (const Double_t a)
32
// Bool_t operator > (const Double_t a)
33
// Bool_t operator >= (const Double_t a)
34
//
35
// Check for equality/inequality;
36
// Bool_t operator == (const HGeomVector& v) const
37
// Bool_t operator != (const HGeomVector& v) const
38
//
39
// Addition/Substraction of a vector;
40
// HGeomVector& operator += (const Double_t a)
41
// HGeomVector& operator -= (const Double_t a)
42
//
43
// Addition/Substraction of two vectors;
44
// HGeomVector operator + (const HGeomVector& v) const
45
// HGeomVector operator - (const HGeomVector& v) const
46
//
47
// Multiplication/Division of each components with/by a factor
48
// HGeomVector& operator *= (const Double_t a)
49
// HGeomVector& operator /= (const Double_t a)
50
//
51
//
52
// HGeomVector operator - () const
53
// changes the sign of all components
54
//
55
// HGeomVector& operator = (const HGeomVector& v)
56
// assignment
57
//
58
// HGeomVector& abs()
59
// builds absolute value of each components
60
//
61
// Double_t scalarProduct(const HGeomVector& v) const;
62
// returns the scalar product
63
//
64
// HGeomVector vectorProduct(const HGeomVector& v) const;
65
// returns the vector product
66
//
67
// Double_t length() const {return sqrt(x*x+y*y+z*z);}
68
// returns the length
69
//
70
// void clear()
71
// sets all components to 0.0
72
//
73
// void print()
74
// prints the components
75
//
76
// void round(Int_t n)
77
// rounds all components to a precision with n digits
78
//
79
// friend ostream& operator << (ostream& put,const HGeomVector& v);
80
// output to stream
81
//
82
// friend istream& operator >> (istream& get,HGeomVector& v);
83
// input from stream
84
//
85
///////////////////////////////////////////////////////////////////////////////
86
87
#include "
hgeomvector.h
"
88
89
ClassImp
(
HGeomVector
)
hgeomvector.h
ClassImp
ClassImp(HDbColumn) HDbColumn
Definition:
hdbcolumn.cc:18
HGeomVector
Definition:
hgeomvector.h:10
base
geometry
hgeomvector.cc
Generated on Fri Oct 9 2020 14:30:02 for HYDRA_development_version by
1.8.8