HYDRA_development_version
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
hgeomtransform.h
Go to the documentation of this file.
1
#ifndef HGEOMTRANSFORM_H
2
#define HGEOMTRANSFORM_H
3
4
#include "
hgeomvector.h
"
5
#include "
hgeomrotation.h
"
6
7
class
HGeomTransform
:
public
TObject {
8
protected
:
9
HGeomRotation
rot
;
// rotation matrix, describing the orientation
10
HGeomVector
trans
;
// translation vector, describing the position
11
public
:
12
HGeomTransform
() {}
13
inline
HGeomTransform
(
const
HGeomTransform
& t);
14
~HGeomTransform
() {}
15
HGeomTransform
&
operator=
(
const
HGeomTransform
& t);
16
const
HGeomRotation
&
getRotMatrix
()
const
{
return
rot
; }
17
const
HGeomVector
&
getTransVector
()
const
{
return
trans
; }
18
void
setRotMatrix
(
const
HGeomRotation
& r) { rot=r; }
19
void
setRotMatrix
(
const
Double_t* a) { rot.
setMatrix
(a); }
20
void
setRotMatrix
(
const
Float_t* a) { rot.
setMatrix
(a); }
21
void
setTransVector
(
const
HGeomVector
& t) { trans=t; }
22
void
setTransVector
(
const
Double_t* a) { trans.
setVector
(a); }
23
void
setTransVector
(
const
Float_t* a) { trans.
setVector
(a); }
24
HGeomVector
transFrom
(
const
HGeomVector
& p)
const
;
25
HGeomVector
transTo
(
const
HGeomVector
& p)
const
;
26
void
transFrom
(
const
HGeomTransform
&);
27
void
transTo
(
const
HGeomTransform
&);
28
void
invert
(
void
);
29
void
clear
();
30
void
print
()
const
;
31
inline
void
setTransform
(
const
HGeomTransform
& t);
32
ClassDef(
HGeomTransform
,1)
// basic geometry transformation class
33
};
34
35
inline
HGeomTransform::HGeomTransform
(
const
HGeomTransform
& t): TObject(t) {
36
rot
=t.
getRotMatrix
();
37
trans
=t.
getTransVector
();
38
}
39
40
41
inline
void
HGeomTransform::setTransform
(
const
HGeomTransform
& t) {
42
rot
=t.
getRotMatrix
();
43
trans
=t.
getTransVector
();
44
}
45
46
#endif
/* !HGEOMTRANSFORM_H */
HGeomTransform::setRotMatrix
void setRotMatrix(const Double_t *a)
Definition:
hgeomtransform.h:19
HGeomTransform::setRotMatrix
void setRotMatrix(const Float_t *a)
Definition:
hgeomtransform.h:20
HGeomTransform::~HGeomTransform
~HGeomTransform()
Definition:
hgeomtransform.h:14
HGeomTransform::setTransVector
void setTransVector(const Double_t *a)
Definition:
hgeomtransform.h:22
HGeomTransform::operator=
HGeomTransform & operator=(const HGeomTransform &t)
HGeomTransform::getRotMatrix
const HGeomRotation & getRotMatrix() const
Definition:
hgeomtransform.h:16
HGeomTransform::setTransform
void setTransform(const HGeomTransform &t)
Definition:
hgeomtransform.h:41
hgeomvector.h
HGeomTransform::clear
void clear()
Definition:
hgeomtransform.cc:104
HGeomTransform
Definition:
hgeomtransform.h:7
HGeomTransform::trans
HGeomVector trans
Definition:
hgeomtransform.h:10
HGeomTransform::invert
void invert(void)
Definition:
hgeomtransform.cc:114
HGeomVector::setVector
void setVector(const Double_t *a)
Definition:
hgeomvector.h:64
HGeomTransform::getTransVector
const HGeomVector & getTransVector() const
Definition:
hgeomtransform.h:17
HGeomRotation::setMatrix
void setMatrix(const Double_t *)
Definition:
hgeomrotation.h:61
HGeomTransform::print
void print() const
Definition:
hgeomtransform.cc:109
HGeomVector
Definition:
hgeomvector.h:10
HGeomTransform::setTransVector
void setTransVector(const HGeomVector &t)
Definition:
hgeomtransform.h:21
HGeomTransform::setRotMatrix
void setRotMatrix(const HGeomRotation &r)
Definition:
hgeomtransform.h:18
HGeomTransform::transFrom
HGeomVector transFrom(const HGeomVector &p) const
Definition:
hgeomtransform.cc:56
HGeomTransform::rot
HGeomRotation rot
Definition:
hgeomtransform.h:9
HGeomTransform::HGeomTransform
HGeomTransform()
Definition:
hgeomtransform.h:12
hgeomrotation.h
HGeomRotation
Definition:
hgeomrotation.h:10
HGeomTransform::setTransVector
void setTransVector(const Float_t *a)
Definition:
hgeomtransform.h:23
HGeomTransform::transTo
HGeomVector transTo(const HGeomVector &p) const
Definition:
hgeomtransform.cc:66
base
geometry
hgeomtransform.h
Generated on Fri Oct 9 2020 14:30:02 for HYDRA_development_version by
1.8.8