StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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 }
Definition of toolkit.
Definition: StiToolkit.h:55