Project
Loading...
Searching...
No Matches
FairGeoVector.cxx
Go to the documentation of this file.
1
/********************************************************************************
2
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3
* *
4
* This software is distributed under the terms of the *
5
* GNU Lesser General Public Licence (LGPL) version 3, *
6
* copied verbatim in the file "LICENSE" *
7
********************************************************************************/
8
//*-- AUTHOR : Ilse Koenig
9
//*-- Modified : 16/06/99
10
12
//
13
// FairGeoVector
14
//
15
// This class defines a vector with 3 Double_t components.
16
// Instantiations of this class are e.g geometry points and
17
// translation vectors in the geometry transformations.
18
//
19
// All functions and operators are defined inline.
20
//
21
// Constructors:
22
// FairGeoVector(Double_t dx=0,Double_t dy=0,Double_t dz=0)
23
// FairGeoVector(const FairGeoVector& v)
24
//
25
// Access to the components:
26
// void setVector(const Double_t* a);
27
// void setX(const Double_t a)
28
// void setY(const Double_t a)
29
// void setZ(const Double_t a)
30
// Double_t getX() const
31
// Double_t getY() const
32
// Double_t getZ() const
33
// Double_t operator() (const Int_t i) const;
34
//
35
// Check for the size of all components:
36
// Bool_t operator < (const Double_t a)
37
// Bool_t operator <= (const Double_t a)
38
// Bool_t operator > (const Double_t a)
39
// Bool_t operator >= (const Double_t a)
40
//
41
// Check for equality/inequality;
42
// Bool_t operator == (const FairGeoVector& v) const
43
// Bool_t operator != (const FairGeoVector& v) const
44
//
45
// Addition/Substraction of a vector;
46
// FairGeoVector& operator += (const Double_t a)
47
// FairGeoVector& operator -= (const Double_t a)
48
//
49
// Addition/Substraction of two vectors;
50
// FairGeoVector operator + (const FairGeoVector& v) const
51
// FairGeoVector operator - (const FairGeoVector& v) const
52
//
53
// Multiplication/Division of each components with/by a factor
54
// FairGeoVector& operator *= (const Double_t a)
55
// FairGeoVector& operator /= (const Double_t a)
56
//
57
//
58
// FairGeoVector operator - () const
59
// changes the sign of all components
60
//
61
// FairGeoVector& operator = (const FairGeoVector& v)
62
// assignment
63
//
64
// FairGeoVector& abs()
65
// builds absolute value of each components
66
//
67
// Double_t scalarProduct(const FairGeoVector& v) const;
68
// returns the scalar product
69
//
70
// FairGeoVector vectorProduct(const FairGeoVector& v) const;
71
// returns the vector product
72
//
73
// Double_t length() const {return sqrt(x*x+y*y+z*z);}
74
// returns the length
75
//
76
// void clear()
77
// sets all components to 0.0
78
//
79
// void print()
80
// prints the components
81
//
82
// void round(Int_t n)
83
// rounds all components to a precision with n digits
84
//
85
// friend ostream& operator << (ostream& put,const FairGeoVector& v);
86
// output to stream
87
//
88
// friend istream& operator >> (istream& get,FairGeoVector& v);
89
// input from stream
90
//
92
93
#include "
FairGeoVector.h
"
94
95
ClassImp
(
FairGeoVector
);
ClassImp
ClassImp(FairGeoVector)
FairGeoVector.h
FairGeoVector
Definition
FairGeoVector.h:20
Detectors
3rdparty
FairRootBase
src
FairGeoVector.cxx
Generated on Sat Nov 7 2026 19:53:07 for Project by
1.9.8