19 void geometry( TString tag, Bool_t agml=
true )
21 TString cmd =
"DETP GEOM "; cmd += tag;
22 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
23 geant_maker -> LoadGeometry(cmd);
27 void command( TString cmd )
29 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
30 geant_maker -> Do( cmd );
33 void trig( Int_t n=1 )
35 for ( Int_t i=0; i<n; i++ ) {
44 void Herwig6( TString mode=
"pp" )
47 gSystem->Load(
"libHerwig6_5_20.so");
53 Double_t pblue[]={0.,0.,320.0};
54 Double_t pyell[]={0.,0.,-320.0};
55 herwig6->SetFrame(
"3MOM", pblue, pyell );
56 herwig6->SetBlue(
"proton");
57 herwig6->SetYell(
"proton");
58 herwig6->SetProcess(1000);
66 void starsim( Int_t nevents=1, Int_t rngSeed=1234 )
69 gROOT->ProcessLine(
".L bfc.C");
71 TString simple =
"y2012 geant gstar usexgeom agml ";
75 gSystem->Load(
"libVMC.so");
77 gSystem->Load(
"StarGeneratorUtil.so" );
78 gSystem->Load(
"StarGeneratorEvent.so" );
79 gSystem->Load(
"StarGeneratorBase.so" );
81 gSystem->Load(
"libMathMore.so" );
82 gSystem->Load(
"xgeometry.so" );
96 chain -> AddBefore(
"geant", _primary );
113 command(
"gkine -4 0");
114 command(
"gfile o herwig6.starsim.fzd");
122 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)
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.