EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
BeastMagneticField
delphes_EIC
Doxygen_Assist
east
eic-smear
EicRoot
blob
master
base
cbmbase
cbmdata
dbase
eic
eventdisplay
examples
fairtools
field
gconfig
geane
genfit
GenfitTools
geobase
FairGeoAsciiIo.cxx
FairGeoAsciiIo.h
FairGeoAssembly.cxx
FairGeoAssembly.h
FairGeoBasicShape.cxx
FairGeoBasicShape.h
FairGeoBrik.cxx
FairGeoBrik.h
FairGeoBuilder.cxx
FairGeoBuilder.h
FairGeoCompositeVolume.cxx
FairGeoCompositeVolume.h
FairGeoCone.cxx
FairGeoCone.h
FairGeoCons.cxx
FairGeoCons.h
FairGeoEltu.cxx
FairGeoEltu.h
FairGeoInterface.cxx
FairGeoInterface.h
FairGeoIo.cxx
FairGeoIo.h
FairGeoLoader.cxx
FairGeoLoader.h
FairGeoMatrix.cxx
FairGeoMatrix.h
FairGeoMedia.cxx
FairGeoMedia.h
FairGeoMedium.cxx
FairGeoMedium.h
FairGeoNode.cxx
FairGeoNode.h
FairGeoOldAsciiIo.cxx
FairGeoOldAsciiIo.h
FairGeoPcon.cxx
FairGeoPcon.h
FairGeoPgon.cxx
FairGeoPgon.h
FairGeoRootBuilder.cxx
FairGeoRootBuilder.h
FairGeoRotation.cxx
FairGeoRotation.h
FairGeoSet.cxx
FairGeoSet.h
FairGeoShapes.cxx
FairGeoShapes.h
FairGeoSphe.cxx
FairGeoSphe.h
FairGeoTorus.cxx
FairGeoTorus.h
FairGeoTransform.cxx
FairGeoTransform.h
FairGeoTrap.cxx
FairGeoTrap.h
FairGeoTrd1.cxx
FairGeoTrd1.h
FairGeoTube.cxx
FairGeoTube.h
FairGeoTubs.cxx
FairGeoTubs.h
FairGeoVector.cxx
FairGeoVector.h
FairGeoVolume.cxx
FairGeoVolume.h
GeoBaseLinkDef.h
geometry
input
littrack
parbase
passive
pCDR-2018
pid
pnddata
PndTools
rich
trackbase
eicsmear-jetexample
eicsmeardetectors
EicToyModel
estarlight
Fun4All-lmon
fun4all_coresoftware
fun4all_eic_qa
fun4all_eic_tutorials
fun4all_eicdetectors
fun4all_eicmacros
fun4all_g4jleic
fun4all_GenFit
fun4all_macros
fun4all_tutorials
g4exampledetector
g4lblvtx
online_distribution
PEPSI
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
FairGeoBrik.cxx
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairGeoBrik.cxx
1
//*-- AUTHOR : Ilse Koenig
2
//*-- Modified : 11/11/2003 by Ilse Koenig
3
//*-- Modified : 14/05/99 by Ilse Koenig
4
6
//
7
// FairGeoBrik
8
//
9
// class for the GEANT shape BOX
10
//
11
// The intrisic coordinate system of a BOX in GEANT/ROOT has the
12
// same orientation as the volume described by its 8 points
13
// in the technical coordinate system
14
//
16
17
#include "
FairGeoBrik.h
"
18
19
#include "
FairGeoVolume.h
"
20
#include "
FairGeoVector.h
"
21
22
#include "TArrayD.h"
23
24
ClassImp
(
FairGeoBrik
)
25
26
FairGeoBrik
::
FairGeoBrik
()
27
:
FairGeoBasicShape
()
28
{
29
// constructor
30
fName=
"BOX "
;
31
nPoints=8;
32
nParam=3;
33
param=
new
TArrayD(nParam);
34
}
35
36
37
FairGeoBrik::~FairGeoBrik
()
38
{
39
// destructor
40
if
(
param
) {
41
delete
param
;
42
param
=0;
43
}
44
if
(
center
) {
45
delete
center
;
46
center
=0;
47
}
48
if
(
position
) {
49
delete
position
;
50
position
=0;
51
}
52
}
53
54
55
TArrayD*
FairGeoBrik::calcVoluParam
(
FairGeoVolume
* volu)
56
{
57
// calculates the parameters needed to create the shape
58
if
(!volu) {
return
0; }
59
FairGeoVector
v
=*(volu->
getPoint
(5)) - *(volu->
getPoint
(3));
60
v.
abs
();
61
v*=(1/20.);
62
for
(Int_t i=0; i<
nParam
; i++) {
param
->AddAt(
v
(i),i); }
63
return
param
;
64
}
65
66
67
void
FairGeoBrik::calcVoluPosition
(
FairGeoVolume
* volu,
68
const
FairGeoTransform
& dTC,
const
FairGeoTransform
& mTR)
69
{
70
// calls the function posInMother(...) to calculate the position of the
71
// volume in its mother
72
FairGeoVector
trans=*(volu->
getPoint
(5)) + *(volu->
getPoint
(3));
73
trans*=0.5;
74
center
->
clear
();
75
center
->
setTransVector
(trans);
76
posInMother
(dTC,mTR);
77
}
78
79
80
81
82
EicRoot
blob
master
geobase
FairGeoBrik.cxx
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:36
using
1.8.2 with
EIC GitHub integration