16 void geometry( TString tag, Bool_t agm1=
true )
18 TString cmd =
"DETP GEOM "; cmd += tag;
19 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
20 geant_maker -> LoadGeometry(cmd);
23 void command( TString cmd )
25 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
26 geant_maker -> Do( cmd );
29 void trig( Int_t n=1 )
31 for ( Int_t i=0; i<n; i++ )
41 void STARlight( TString mode=
"pp" )
44 gSystem->Load(
"libStarLight.so" );
59 void starsim( Int_t nevents=1, Int_t rngSeed=1234 )
62 gROOT->ProcessLine(
".L bfc.C" );
64 TString simple =
"y2012 geant gstar usexgeom agml ";
68 gSystem->Load(
"libVMC.so" );
70 gSystem->Load(
"StarGeneratorUtil.so" );
71 gSystem->Load(
"StarGeneratorEvent.so" );
72 gSystem->Load(
"StarGeneratorBase.so" );
74 gSystem->Load(
"libMathMore.so" );
75 gSystem->Load(
"xgeometry.so" );
85 chain->AddBefore(
"geant",_primary);
93 command(
"gkine -4 0" );
94 command(
"gfile o StarLight.starsim.fzd" );
98 command(
"call agexit");
void SetFileName(const Char_t *name)
Set the filename of the output TTree.
void Print(const Option_t *opts="head") const
virtual void Clear(Option_t *option="")
User defined functions.
void AddGenerator(StarGenerator *gener)
Interface to the StarLightGen (c++ version) event generator.
static void seed(UInt_t s)
Base class for event records.
StarGenEvent * event()
Return a pointer to the event.
Main steering class for event generation.
static void capture()
Capture gRandom random number generator.