StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
macros
graphics
MakeStiGeometry.C
1
// Create the Sti "drawable" geometry view from the current STAR "chain"
2
TVolume
*MakeStiGeometry()
3
{
4
StMaker
*starChain = StMaker::GetChain();
5
StiDetectorVolume
*v =0;
6
if
(starChain) {
7
// Find the StiMaker
8
StiMaker
*stiMk = starChain->Maker(
"Sti"
);
9
if
(stiMk) {
10
StiToolkit
*t = stiMk->getToolkit();
11
if
(t) {
12
StiMasterDetectorBuilder
*b = t->getDetectorBuilder();
13
if
(b) v =
new
StiDetectorVolume
(*b);
14
}
15
}
16
}
17
return
v;
18
}
StiMaker
Definition:
StiMaker.h:30
StMaker
Definition:
StMaker.h:57
TVolume
Definition:
TVolume.h:36
StiDetectorVolume
Definition:
StiDetectorVolume.h:21
StiToolkit
Definition of toolkit.
Definition:
StiToolkit.h:55
StiMasterDetectorBuilder
Definition:
StiMasterDetectorBuilder.h:6
Generated by
1.8.5