22 Float_t minEta = -1.5;
23 Float_t maxEta = +1.5;
26 void geometry( TString tag, Bool_t agml=
true )
28 TString cmd =
"DETP GEOM "; cmd += tag;
29 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
30 geant_maker -> LoadGeometry(cmd);
34 void command( TString cmd )
36 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
37 geant_maker -> Do( cmd );
40 void trig( Int_t n=0 )
42 for ( Int_t i=0; i<n+1; i++ ) {
45 if (kinematics) kinematics->
Kine( 1,
"D0", minPt, maxPt, minEta, maxEta );
54 _primary -> AddGenerator(kinematics);
60 hijing->SetTitle(
"Hijing 1.383");
85 _primary -> AddGenerator(hijing);
86 _primary -> SetCuts( 1.0E-6 , -1., -2.5, +2.5 );
92 void starsim( Int_t nevents=1, Int_t rngSeed=4321 )
95 gROOT->ProcessLine(
".L bfc.C");
97 TString simple =
"y2014a geant gstar usexgeom agml ";
101 gSystem->Load(
"libVMC.so");
103 gSystem->Load(
"StarGeneratorUtil.so" );
104 gSystem->Load(
"StarGeneratorEvent.so" );
105 gSystem->Load(
"StarGeneratorBase.so" );
106 gSystem->Load(
"libMathMore.so" );
107 gSystem->Load(
"libHijing1_383.so");
108 gSystem->Load(
"libKinematics.so");
109 gSystem->Load(
"xgeometry.so" );
112 gSystem->Load(
"gstar.so" );
113 command(
"call gstar");
125 _primary -> SetFileName(
"hijing.starsim.root");
126 chain -> AddBefore(
"geant", _primary );
132 _primary -> SetVertex( 0., 0., 0. );
133 _primary -> SetSigma( 0.3, 0.3, 60.0 );
159 command(
"gkine -4 0");
160 command(
"gfile o hijing.starsim.fzd");
171 command(
"call agexit");
HIJING /HIPARNT/ common block/.
void SetFrame(const Char_t *frame, const Double_t val)
void Print(const Option_t *opts="head") const
Star Simple Kinematics Generator.
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.
Int_t Init()
Initialize generator.
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.
StarGenEvent * event()
Return a pointer to the event.
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.
Sparse class to hold track kinematics.
void Kine(Int_t ntrack, const Char_t *type="pi+,pi-,K+,K-,proton,antiproton", Double_t ptlow=0.0, Double_t pthigh=500.0, Double_t ylow=-10.0, Double_t yhigh=+10.0, Double_t philow=0.0, Double_t phihigh=TMath::TwoPi())