18 void geometry( TString tag,
bool agml=
true )
20 TString cmd =
"DETP GEOM "; cmd += tag;
21 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
22 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 );
35 for (
int i=0; i<n+1; i++ ) {
38 _primary -> event() -> Print();
45 hijing->SetTitle(
"Hijing 1.383");
55 _primary -> AddGenerator(hijing);
56 _primary -> SetCuts( 1.0E-6 , -1., -2.5, +2.5 );
62 void starsim(
int nevents=10,
int rngSeed=1234,
const char* tag=
"y2018" )
65 gROOT->ProcessLine(
".L bfc.C");
67 TString simple = Form(
"%s geant gstar usexgeom agml ",tag);
71 gSystem->Load(
"libVMC.so");
73 gSystem->Load(
"StarGeneratorUtil.so" );
74 gSystem->Load(
"StarGeneratorEvent.so" );
75 gSystem->Load(
"StarGeneratorBase.so" );
76 gSystem->Load(
"libMathMore.so" );
77 gSystem->Load(
"libHijing1_383.so");
78 gSystem->Load(
"xgeometry.so" );
90 _primary -> SetFileName(
"hijing.starsim.root");
91 chain -> AddBefore(
"geant", _primary );
108 hiparnt.
ihpr2(4) = 0;
109 hiparnt.
ihpr2(3) = 0;
111 hiparnt.
ihpr2(8) = 10;
112 hiparnt.
ihpr2(11) = 1;
113 hiparnt.
ihpr2(12) = 1;
114 hiparnt.
ihpr2(18) = 0;
115 hiparnt.
hipr1(7) = 5.35;
124 command(
"gkine -4 0");
125 command(
"gfile o hijing.starsim.fzd");
131 command(
"gprint kine");
133 if ( gROOT->IsBatch() ) {
134 command(
"call agexit");
137 std::cout <<
"Interactive mode. Please call AgExit() before .q" << std::endl;
142 void AgExit() { command(
"call agexit"); }
HIJING /HIPARNT/ common block/.
void SetFrame(const Char_t *frame, const Double_t val)
void SetImpact(Double_t bmin, Double_t bmax)
Set the minimum and maximum impact parameters for the collision (HI generators)
virtual void Clear(Option_t *option="")
User defined functions.
void SetBlue(const Char_t *b)
Sets the particle species for the blue beam.
HiParnt_t & hiparnt()
Returns a reference to the hijing parameters.
Interface to the HIJING event generator.
static void seed(UInt_t s)
Base class for event records.
Main steering class for event generation.
void SetYell(const Char_t *y)
Sets the particle species for the yellow beam.
static void capture()
Capture gRandom random number generator.