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
starsim.C
1
// macro to instantiate the Geant3 from within
2
// STAR C++ framework and get the starsim prompt
3
// To use it do
4
// root4star starsim.C
5
class
St_geant_Maker
;
6
void
starsim() {
7
gROOT->Macro(
"Load.C"
);
8
gSystem->Load(
"libSt_g2t"
);
9
gSystem->Load(
"libStarMagField.so"
);
10
gSystem->Load(
"St_geant_Maker"
);
11
(
new
St_geant_Maker
())->Init();
12
printf (
"\n\n . . . . Switching to the starsim interactive session:\n"
);
13
TGiant3::Geant3()->GetKuipPrompt();
14
printf (
"\n----------\nRestore the ROOT interactive session\n"
);
15
}
St_geant_Maker
Definition:
St_geant_Maker.h:156
Generated by
1.8.5